A key example dataset used for examples in the HLM software manual. Included here for use in replicating HLM analyses in R.

1 |

A data frame with 7,185 observations on the following 8 variables.

`schid`

a numeric vector, 160 unique values

`mathach`

a numeric vector for the performance on a standardized math assessment

`female`

a numeric vector coded 0 for male and 1 for female

`ses`

a numeric measure of student socio-economic status

`minority`

a numeric vector coded 0 for white and 1 for non-white students

`schtype`

a numeric vector coded 0 for public and 1 for private schools

`meanses`

a numeric, the average SES for each school in the data set

`size`

a numeric for the number of students in the school

The data file used for this presentation is a subsample from the 1982 High School and Beyond Survey and is used extensively in Hierarchical Linear Models by Raudenbush and Bryk. It consists of 7,185 students nested in 160 schools.

Data made available by UCLA Institute for Digital Research and Education (IDRE) online: http://www.ats.ucla.edu/stat/hlm/seminars/hlm6/mlm_hlm6_seminar.htm

Stephen W. Raudenbush and Anthony S. Bryk (2002). Hierarchical Linear Models: Applications and Data Analysis Methods (2nd ed.). SAGE.

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.