STAR_MHE: Transformation of the STAR dataset as used in Angrist and...

Description Format Details Source References See Also Examples

Description

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

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.

Source

Data obtained using the script krueger.do on data webstar.rda, found on J. Angrist website https://economics.mit.edu/faculty/angrist/data1/mhe/krueger, retrieved on 26 November 2012.

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

1
2
3
4
5
6
7
8
9
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]

Example output

Loading required package: AER
Loading required package: car
Loading required package: carData
Loading required package: lmtest
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: sandwich
Loading required package: survival
Loading required package: np
Nonparametric Kernel Methods for Mixed Datatypes (version 0.60-9)
[vignette("np_faq",package="np") provides answers to frequently asked questions]
[vignette("np",package="np") an overview]
[vignette("entropy_np",package="np") an overview of entropy-based methods]
[1] 0.2247039

rddtools documentation built on Jan. 10, 2022, 5:07 p.m.