schoolclass {asuR} | R Documentation |
A data set for studying nested random factors.
data(schoolclass)
A data frame with 300 observations on the following 4 variables.
school
class
gender
female
male
score
A simulated data set with the parameters: variance among schools (100), variance among classes (50), residual variance (10), factor gender: level female (200), level male (100).
thomas.fabbro@unibas.ch
data(schoolclass) str(schoolclass) # #with library(lme4) # (m0 <- lmer(y ~ gender + (1|school/class), data=schoolclass))