nlschools(MASS)
nlschools()所属R语言包:MASS
Eighth-Grade Pupils in the Netherlands
在荷兰的八年级学生
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Snijders 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.
斯奈德斯和Bosker的(1999)作为一个运行实例研究了2287八年级学生在荷兰的131所学校的132类(约11岁)使用。只有在我们的例子中使用的变量提供。
用法----------Usage----------
nlschools
格式----------Format----------
This data frame contains 2287 rows and the following columns:
此数据框包含2287行和以下的列:
language test score.
语言测试成绩。
verbal IQ.
言语智商。
class ID.
类ID。
class size: number of eighth-grade pupils recorded in the class (there may be others: see COMB, and some may have been omitted with missing values).
每班人数:八年级学生在课堂上记录的数量(有可能是别人见COMB,有的可能已被省略遗漏值)。
social-economic status of pupil's family.
学生的家庭的社会经济地位。
were the pupils taught in a multi-grade class (0/1)? Classes which contained pupils from grades 7 and 8 are coded 1, but only eighth-graders were tested.
教导学生在一个多级的类(0/1)?类,载有从7年级和8年级的学生编码1,但只有八年级学生进行了测试。
源----------Source----------
Snijders, T. A. B. and Bosker, R. J. (1999) Multilevel Analysis. An Introduction to Basic and Advanced Multilevel Modelling. London: Sage.
斯奈德斯,TAB和Bosker,RJ(1999)多层次分析。一个基本的和先进的多级建模的介绍。伦敦:贤哲。
参考文献----------References----------
Modern Applied Statistics with S. Fourth edition. Springer.
举例----------Examples----------
library(nlme)
nl1 <- nlschools
attach(nl1)
classMeans <- tapply(IQ, class, mean)
nl1$IQave <- classMeans[as.character(class)]
nl1$IQ <- nl1$IQ - nl1$IQave
detach()
cen <- c("IQ", "IQave", "SES")
nl1[cen] <- scale(nl1[cen], center = TRUE, scale = FALSE)
nl.lme <- lme(lang ~ IQ*COMB + IQave + SES,
random = ~ IQ | class, data = nl1)
summary(nl.lme)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|