Learn R Programming

mixmeta (version 1.2.0)

hsls: High School Longitudinal Study

Description

This is a nationally representative, longitudinal study of more than 21,000 9th graders in 944 schools who will be followed through their secondary and postsecondary years. The data are used for testing whether sex, socioeconomic status and sex by socio-economic status interaction are predictive of the mathematics standardized score in each of the eight race groups.

Usage

hsls

Arguments

Format

A data frame with 8 observations on the following 10 variables:

  • race: race group.

  • b1, b2, b3: estimated regression coefficients for sex, socio-economic status and sex by socio-economic status interaction, respectively, on the mathematics standardized score.

  • V11, V22, V33: variances of the estimated coefficients.

  • V12, V13, V23: covariances of the estimated coefficients.

Examples

Run this code
# NOT RUN {
### REPRODUCE THE RESULTS IN CHEN ET AL. (2012)

# INSPECT THE DATA
hsls

# FIXED-EFFECTS MODEL
S <- as.matrix(hsls[5:10])
mod1 <- mixmeta(cbind(b1,b2,b3), S, data=hsls, method="fixed")
summary(mod1)

# MM MODEL
mod2 <- mixmeta(cbind(b1,b2,b3), S,data=hsls, method="mm")
summary(mod2)
mod2$Psi
# }

Run the code above in your browser using DataLab