Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

R2MLwiN (version 0.8-6)

gcsecomp1: Pupils' marks from GCSE exams (UK, 1989); complete cases only.

Description

Pupils' marks from GCSE exams, consisting of 1523 pupils across 73 schools. See Browne (2012) for further details.

Arguments

Format

A data frame with 1523 observations on the following 6 variables:

school

Identifying code for each school (level 2 unit).

student

Identifying code for each pupil (level 1 unit).

female

Gender of pupil: a factor with levels Male and Female.

written

Exam score.

csework

Coursework score.

cons

Constant (=1).

Details

The gcsecomp1 dataset is one of the sample datasets provided with the multilevel-modelling software package MLwiN (Rasbash et al., 2009).

Examples

Run this code
# NOT RUN {
data(gcsecomp1, package="R2MLwiN")

(mymodel <- runMLwiN(c(written, csework) ~ 1 + female + (1 | school) + (1 | student), 
  D = "Multivariate Normal", estoptions = list(EstM = 1), data = gcsecomp1))

# }

Run the code above in your browser using DataLab