xc1 | R Documentation |
A dataset of examination scores of 16-year olds in Fife, Scotland, in which the secondary school the pupil attended is cross-classified by the primary school the pupil attended.
xc1
A data frame with 3435 observations on the following 11 variables:
A verbal reasoning score resulting from tests pupils took when they entered secondary school.
Attainment score of pupils at age sixteen.
Primary school identifying code.
Pupils' gender: a factor with levels Male
and
Female
.
Pupils' social class (scaled from low to high).
Secondary school identifying code.
Fathers' education.
Choice number of secondary school attended (where 1 is first choice, etc.)
Mothers' education.
A column of ones. If included as an explanatory variable in a regression model (e.g. in MLwiN), its coefficient is the intercept.
Pupil identifying code.
The xc1
dataset is one of the sample datasets provided with the
multilevel-modelling software package MLwiN (Rasbash et al., 2009), analysed
by Paterson (1991). The data are cross-classified in that not all children
who attended the same primary school subsequently entered the same secondary
school. See also Browne (2012).
Browne, W. J. (2012) MCMC Estimation in MLwiN Version 2.26. University of Bristol: Centre for Multilevel Modelling.
Paterson, L. (1991) Socio economic status and educational attainment: a multidimensional and multilevel study. Evaluation and Research in Education, 5, 97-121.
Rasbash, J., Charlton, C., Browne, W.J., Healy, M. and Cameron, B. (2009) MLwiN Version 2.1. Centre for Multilevel Modelling, University of Bristol.
See mlmRev
package for an alternative format of the same
dataset.
## Not run:
data(xc1, package = "R2MLwiN")
(mymodel <- runMLwiN(attain ~ 1 + (1 | sid) + (1 | pid) + (1 | pupil),
estoptions = list(xc = TRUE, EstM = 1), data = xc1))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.