Title: | Multiple Treatment Effects Regression |
---|---|
Description: | Implements contamination bias diagnostics and alternative estimators for regressions with multiple treatments. The implementation is based on Goldsmith-Pinkham, Hull, and Kolesár (2024) <doi:10.48550/arXiv.2106.05024>. |
Authors: | Michal Kolesár [aut, cre] , Paul Goldsmith-Pinkham [ctb], Peter Hull [ctb] |
Maintainer: | Michal Kolesár <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.0.9000 |
Built: | 2024-11-17 05:25:48 UTC |
Source: | https://github.com/kolesarm/multe |
This dataset contains a subset of the publicly available Early Childhood Longitudinal Study Birth Cohort data from Fryer and Levitt (2013).
fl
fl
A data frame with 8806 rows corresponding to children and 21 columns corresponding to the variables:
Sampling weights (first interview)
Sampling weights (second interview)
Multiple birth status
Interviewer rating of the effectiveness of the 'parent as a teacher', Nursing Child Assessment Teaching Scale (total score).
Quintile of socioeconomic status
US region
Interviewer ID (first interview)
Interviewer ID (second interview)
Age of mother
Days premature
Number of siblings
Family structure
Birthweight category
Female
Age of mother missing
Age at first interview
Age at second interview
Standardized IQ at first interview
Standardized IQ at second interview
parent_score
missing
Race
Roland G Fryer and Steven D Levitt. Testing for racial differences in the mental ability of young children. American Economic Review, 103(2):981–1005, April 2013. doi:10.1093/qje/qjy006
Compute contamination bias diagnostics for the partially linear (PL) regression estimator with multiple treatments. Also report four alternative estimators:
The own treatment effect component of the PL estimator.
The unweighted average treatment effect, implemented using interacted regression.
Weighted ATE estimator based on easiest-to-estimate weighting (EW) scheme, implemented by running one-treatment-at-a-time regressions.
Weighted ATE estimator using easiest-to-estimate common weighting (CW) scheme, implemented using weighted regression.
multe(r, treatment_name, cluster = NULL, tol = 1e-07, cw_uniform = FALSE)
multe(r, treatment_name, cluster = NULL, tol = 1e-07, cw_uniform = FALSE)
r |
Fitted model, output of the |
treatment_name |
name of treatment variable |
cluster |
Factor variable that defines clusters. If |
tol |
Numerical tolerance for computing LM test statistic for testing variability of the propensity score. |
cw_uniform |
For the CW estimator, should the target weighting scheme
give all comparisons equal weight (if |
Returns a list with the following components:
Data frame with alternative estimators and standard errors for the full sample
Data frame with alternative estimators and standard errors for the overlap sample
Data frame with differences between PL and alternative estimators, along with standard errors for the full, and for the overlap sample.
Sample sizes for the full, and for the overlap sample.
Number of controls for the full, and for the overlap sample.
LM and Wald statistic, degrees of freedom, and p-values for the full and for the overlap sample, for testing the hypothesis of no variation in the propensity scores.
Standard deviation of the estimated propensity score in the full and overlap samples.
Vector of outcomes, treatments and weights in the overlap sample
Matrix of controls in the overlap sample
Paul Goldsmith-Pinkham, Peter Hull, and Michal Kolesár. Contamination bias in linear regressions. ArXiv:2106.05024, February 2024.
wbh <- fl[fl$race=="White" | fl$race=="Black" | fl$race=="Hispanic", ] wbh <- droplevels(wbh) r1 <- stats::lm(std_iq_24~race+factor(age_24)+female, weight=W2C0, data=wbh) m1 <- multe(r1, treatment="race")
wbh <- fl[fl$race=="White" | fl$race=="Black" | fl$race=="Hispanic", ] wbh <- droplevels(wbh) r1 <- stats::lm(std_iq_24~race+factor(age_24)+female, weight=W2C0, data=wbh) m1 <- multe(r1, treatment="race")