powered by
Data used in Exercise 8.57
Ability
A data frame with 2 observations on the following 6 variables.
gender
a factor with levels boys girls
boys
girls
hopeless
a numeric vector
belowavg
average
aboveavg
superior
# NOT RUN { X <- as.matrix(Ability[1:2,2:6]) chisq.test(X) # }
Run the code above in your browser using DataLab