A questionnaire is randomly administered to 11 students from State School X and to 15 students from State School Y (the results have been ordered and stored in the data frame Stschool). Data are used in Example 9.11.

Format

A data frame with 26 observations on the following 4 variables:

X

satisfaction score

Y

satisfaction score

Satisfaction

combined satisfaction scores

School

a factor with levels X and Y

Source

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. (2008) Probability and Statistics with R. Chapman & Hall/CRC.

Examples

with(data = Stschool, t.test(X, Y, var.equal = TRUE))
#> #> Two Sample t-test #> #> data: X and Y #> t = 2.0798, df = 24, p-value = 0.0484 #> alternative hypothesis: true difference in means is not equal to 0 #> 95 percent confidence interval: #> 0.05691592 14.85217499 #> sample estimates: #> mean of x mean of y #> 83.45455 76.00000 #>