Learn R Programming

R2MLwiN (version 0.8-9)

diag1: Examination dataset

Description

Examination data for 907 students within 18 schools.

Usage

diag1

Arguments

Format

A data frame with 907 observations on the following 9 variables:

school

School identifier.

sex

Pupil gender.

vrq

Verbal Reasoning quotient.

ilea

O-level/CSE examination results.

type

School type: a factor with levels Comprehensive and Grammar.

pupil

Pupil identifier.

cons

Constant (=1).

n_ilea

O-level/CSE examination results (normal scores).

n_vrq

Verbal Reasoning quotient (normal scores).

Details

The diag1 dataset is one of the sample datasets provided with the multilevel-modelling software package MLwiN (Rasbash et al., 2009), originally analysed in Aitkin & Longford (1986), and described further in Rasbash et al. (2012).

Examples

Run this code

if (FALSE) {

data(diag1, package = "R2MLwiN")

(mymodel <- runMLwiN(n_ilea ~ 1 + n_vrq + (1 + n_vrq | school) + (1 | pupil),
  estoptions = list(resi.store = TRUE, resioptions = c("standardised",
  "leverage", "influence", "deletion")), data = diag1))

}

Run the code above in your browser using DataLab