STSCHOOL: School Satisfaction

Description Usage Format References Examples


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.




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


Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.


with(data = STSCHOOL, t.test(x, y, var.equal=TRUE))

Example output

Loading required package: lattice
Loading required package: ggplot2

	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 

PASWR2 documentation built on Sept. 5, 2021, 5:44 p.m.