school23 data contains information on students' performance on a math test, as well as several explanatory variables. These data are subset of the NELS-88 data (National Education Longitudinal Study of 1988). Both a selected number of variables and a selected number of observations are given here.
school.IDSESmean.SEShomeworkNone, Less than 1 hour, 1 hour, 2 hours, 3 hours, 4-6 hours, 7-9 hours, and 10 or moreparentedDod not finish H.S., H.S. grad or GED, GT H.S. and LT 4yr degree, College graduate, M.A. or equivalent, and Ph.D., M.D., otherratioperc.minorNone, 1-5, 6-10, 11-20, 21-40, 41-60, 61-90, and 91-100mathsexMale and FemaleraceAsian, Hispanic, Black, White, and American Indianschool.typePublic school, Catholic school, Private, other religious affiliation, and Private, no religious affiliationstructureschool.size1-199 Students, 200-399, 400-599, 600-799, 800-999, 1000-1199, and 1200+urbanUrban, Suburban, and RuralregionNortheast, North Central, South, and Westregion). This is probably due to the fact that this is only a subsample from the full NELS-88 data.Also, some of the variable names were changed.
data(school23)
model <- lmer(math ~ structure + (1 | school.ID), data=school23)
summary(model)
Run the code above in your browser using DataLab