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.

STSCHOOL

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)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. 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 
#>