R Dataset / Package MASS / nlschools
Documentation |
---|
On this R-data statistics page, you will find information about the nlschools data set which pertains to Eighth-Grade Pupils in the Netherlands. The nlschools data set is found in the MASS R package. You can load the nlschools data set in R by issuing the following command at the console data("nlschools"). This will load the data into a variable called nlschools. If R says the nlschools data set is not found, you can try installing the package by issuing this command install.packages("MASS") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the nlschools R data set. The size of this file is about 56,037 bytes. Eighth-Grade Pupils in the NetherlandsDescriptionSnijders and Bosker (1999) use as a running example a study of 2287 eighth-grade pupils (aged about 11) in 132 classes in 131 schools in the Netherlands. Only the variables used in our examples are supplied. Usagenlschools FormatThis data frame contains 2287 rows and the following columns:
SourceSnijders, T. A. B. and Bosker, R. J. (1999) Multilevel Analysis. An Introduction to Basic and Advanced Multilevel Modelling. London: Sage. ReferencesVenables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer. Examplesnl1 <- within(nlschools, { IQave <- tapply(IQ, class, mean)[as.character(class)] IQ <- IQ - IQave }) cen <- c("IQ", "IQave", "SES") nl1[cen] <- scale(nl1[cen], center = TRUE, scale = FALSE)nl.lme <- nlme::lme(lang ~ IQ*COMB + IQave + SES, random = ~ IQ | class, data = nl1) summary(nl.lme) -- Dataset imported from https://www.r-project.org. |
Title | Authored on | Content type |
---|---|---|
OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |
OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |
R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |
Attachment | Size |
---|---|
dataset-53083.csv | 54.72 KB |