Learn R Programming

rddtools (version 1.6.0)

STAR_MHE: Transformation of the STAR dataset as used in Angrist and Pischke (2008)

Description

Transformation of the STAR dataset as used in Table 8.2.1 of Angrist and Pischke (2008)

Arguments

Format

A data frame containing 5743 observations and 6 variables. The first variable is from the original dataset, all other are created by Angrist and Pischke STAT code.

schidkn

School ID in kindergarden (original variable, schoolidk in STAR)

pscore

The propensity score (computed by A & P)

classid

The id of the class (computed by A & P)

cs

Class size (computed by A & P)

female, nwhite

Various covariates (computed by A & P)

Details

). This is a transformation of the dataset from the project STAR (Student/Teacher Achievement Ratio. The full dataset is described and available in package AER, STAR. The transformed data was obtained using the STATA script krueger.do, obtained from Joshua Angrist website (https://economics.mit.edu/faculty/angrist/data1/mhe/krueger), on the webstar.dta.

References

Krueger, A. (1999) 'Experimental Estimates Of Education Production Functions,' The Quarterly Journal of Economics, Vol. 114(2), pages 497-532, May.

Angrist, A. ad Pischke J-S (2008) Mostly Harmless Econometrics: An Empiricist's Companion, Princeton University press

See Also

STAR for the original dataset.

Examples

Run this code
# NOT RUN {
data(STAR_MHE)

# Compute the group means:
STAR_MHE_means <- aggregate(STAR_MHE[, c('classid', 'pscore', 'cs')],
                            by=list(STAR_MHE$classid), mean)

# Regression of means, with weighted average:
reg_krug_gls <- lm(pscore~cs, data=STAR_MHE_means, weights=cs)
coef(summary(reg_krug_gls))[2,2]
# }

Run the code above in your browser using DataLab