instruction {rlme} | R Documentation |
A data frame on school instruction results.
A data frame with 1190 observations on the following 13 variables.
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector
a numeric vector identifying the class within school
a numeric vector identifying the school
a numeric vector
West, B., Welch, K. B., & Galecki, A. T. (2006). Linear mixed models: a practical guide using statistical software. Chapman & Hall/CRC.
# The following code takes a few minutes to run.
# In the interest of saving CRAN's example testing time,
# it has been commented out. If you want to use it,
# just uncomment and run.
# data(instruction)
# attach(instruction)
# data = data.frame(
# y = mathgain,
# mathkind = mathkind,
# girl = girl,
# minority = minority,
# ses = ses,
# school = factor(schoolid),
# section = factor(classid))
# fit.rlme = rlme(y ~ 1 + mathkind + girl + minority + ses + (1 | school) + (1 | school:section),
# data = data,
# method = "gr")
# summary(fit.rlme)