multe | R Documentation |
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)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.