STAR_MHE | R Documentation |
Transformation of the STAR dataset as used in Table 8.2.1 of Angrist and Pischke (2008)
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.
School ID in kindergarden (original variable, schoolidk in STAR
)
The propensity score (computed by A & P)
The id of the class (computed by A & P)
Class size (computed by A & P)
Various covariates (computed by A & P)
). 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, on the webstar.dta.
Data obtained using the script krueger.do on data webstar.rda, found on J. Angrist website
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
STAR
for the original dataset.
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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.