| nzmaths | R Documentation |
Data on maths performance, gender, some problem-solving variables and some school resource variables.
data("nzmaths")
A data frame with 4291 observations on the following 26 variables.
SCHOOLIDSchool ID
CNTCountry id: a factor with levels New Zealand
STRATUMa factor with levels NZL0101 NZL0102 NZL0202 NZL0203
OECDIs the country in the OECD?
STIDSTDStudent ID
ST04Q01Gender: a factor with levels Female Male
ST14Q02Mother has university qualifications No Yes
ST18Q02Father has university qualifications No Yes
MATHEFFMathematics Self-Efficacy: numeric vector
OPENPSMathematics Self-Efficacy: numeric vector
PV1MATH,PV2MATH,PV3MATH,PV4MATH,PV5MATH 'Plausible values' (multiple imputations) for maths performance
W_FSTUWTDesign weight for student
SC35Q02Proportion of maths teachers with professional development in maths in past year
PCGIRLSProportion of girls at the school
PROPMA5AProportion of maths teachers with ISCED 5A (math major)
ABGMATHDoes the school group maths students: a factor with levels No ability grouping between any classes One of these forms of ability grouping between classes for s One of these forms of ability grouping for all classes
SMRATIONumber of students per maths teacher
W_FSCHWTDesign weight for school
condwtDesign weight for student given school
A subset extracted from the PISA2012lite R package, https://github.com/pbiecek/PISA2012lite
OECD (2013) PISA 2012 Assessment and Analytical Framework: Mathematics, Reading, Science, Problem Solving and Financial Literacy. OECD Publishing.
data(nzmaths)
oo<-options(survey.lonely.psu="average") ## only one PSU in one of the strata
des<-svydesign(id=~SCHOOLID+STIDSTD, strata=~STRATUM, nest=TRUE,
weights=~W_FSCHWT+condwt, data=nzmaths)
## This example works, but it takes more than five seconds to run, so it
## has been commented out
## m1<-svy2lme(PV1MATH~ (1+ ST04Q01 |SCHOOLID)+ST04Q01*(PCGIRLS+SMRATIO)+MATHEFF+OPENPS, design=des)
options(oo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.