hs: Math Achievement in a sample of high school students

Description Usage Format Details Examples

Description

A dataset containing math achievement scores, ses (socio-economic status), sex, type of school (Public or Catholic) of 1,997 students in 40 schools.

Usage

1

Format

A data frame with 1,997 rows and 7 variables:

school

numerical school ID.

mathach

measure of math achievement.

ses

socio-economic status of family based primarily on educational level of father and/or mother.

Sex

a factor with levels Female, Male.

Minority

a factor with levels No, Yes.

Size

number of students in the school.

Sector

the sector, Catholic or Public, to which the school belongs.

Details

This is a classical data set from the field of education used to illustrate multilevel data and models. It is a random subset of 40 schools from the the full dataset of 160 schools used in the first edition of Bryk and Raudenbush.

Examples

1
2
3
library(nlme)
 fit <- lme( mathach ~ ses*Sector, hs, random = ~ 1 + ses | school)
 summary(fit)

gmonette/Tcells documentation built on May 17, 2019, 7:25 a.m.