You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SUMM: treatment effects, Inverse probability weights #2443
mix between statistics, econometrics and Stata (articles and documentation)
,,,
Related PRs:
propensity score matching
mediation analysis
My guess is that we start a new subdirectory, maybe causal or treatment. treatment is better. causal is too vague and means also many other things like granger_causality.
There is one aipw variant from Stata missing. And there are several more in various articles and coded in user packages in R or Stata.
aipw is close to and can be extended to generic double robust ATE estimators. ipwra: It looks like variations on this is also used for randomized trials.
My current guess is that we want those two in generic form, parameterized by variant/auxiliary functions, which would allow us, or users, to implement new versions of those.
I don't have a usable structure for the classes or functions yet. We want it to be generic internally for code reuse and extensibility but easy for users to request a default.
Related:
Similar to other meta or prefix models we need to clone or replicate models which I haven't looked into yet. I'm mainly using OLS/WLS, and we need weighted estimators for GLM/LEF-M.
diagnostics: If propensity/selection function and outcome function are both misspecified. then the results could be pretty awful, and the ranking of estimators depends on the misspecification and small sample properties. Diagnostic plots become an important tool. see xxx and discussion
Especially weights for IPW can be excessively large and might require trimming. Also overlap plots and functional specification plots are needed.
unit tests: teffects have been introduced in Stata 13 and improved in Stata 14. For now I only have Stata 12 and I have to rely on results in printouts in the Stata documentation.
the precursor to the Stata implementation (based on Cattaneo) also has quantile treatment effects (with bootstrap recommended for inference) and mutliple (multinomial) treatments.
IPWeighted outcome regression is doubly robust for GLM with canonical link (i.e. mean outcome function can be misspecified if propensity score is correctly specified, and we still get a consistent estimate of ATE or ATE on subpopulation) Wooldridge (2007 a bit difficult to read) Sloczynski and Wooldridge 2014 IZA working paper https://ideas.repec.org/p/iza/izadps/dp8084.html (easy to read)
IPWeighted outcome regression uses QMLE (WLS, weighted Logit or weighted Poisson)
This looks different from doubly robust AIPW estimators, AFAICS. Those are also defined directly as estimating equations, and we can use GMM like Stata.
Two more cases with different type of treatment data. standard is binary treatment
but there is also a considerable literature, and e.g. Stata user packages for
multinomial, multiple discrete treatments
continuous treatments, main case and terminology is "dose-response curves"
parking another reference:
Shen, Shu. 2016. “Estimation and Inference of Distributional Partial Effects: Theory and Application.” Journal of Business & Economic Statistics, December, 0–0. doi:10.1080/07350015.2016.1272458.
(currently only authors copy available online)
looks like "margins" meets "treatment effects", I didn't read it, but it sounds interesting.
parking references for performance in simulation (I don't remember if I read them for #2455 )
(interesting also because outcome is not a standard continuous variable)
stata doubly robust GLM user package
Orsini, N., R. Bellocco, and A. Sjölander. 2013. “Doubly Robust Estimation in Generalized Linear Models.” Stata Journal 13 (1): 185–205.
(I think I found this because I was looking for outlier robust GLM)
uses moment conditions
(I don't know if I looked at it, not in my Zotero)
parking a reference
treatment effect estimation and standardized rates
(in #8166 I ran into confint for weighted average of poisson as standardized rate)
I didn't check the the articles
Activity
josef-pkt commentedon Jun 16, 2015
current status (not yet commited experimental script file
I have the following matching the Stata implementation, but currently only the GMM standard errors for ipw.
There is one aipw variant from Stata missing. And there are several more in various articles and coded in user packages in R or Stata.
aipwis close to and can be extended to generic double robust ATE estimators.ipwra: It looks like variations on this is also used for randomized trials.My current guess is that we want those two in generic form, parameterized by variant/auxiliary functions, which would allow us, or users, to implement new versions of those.
I don't have a usable structure for the classes or functions yet. We want it to be generic internally for code reuse and extensibility but easy for users to request a default.
Related:
Similar to other meta or prefix models we need to clone or replicate models which I haven't looked into yet. I'm mainly using OLS/WLS, and we need weighted estimators for GLM/LEF-M.
update
PR #2455
josef-pkt commentedon Jun 16, 2015
a few more points
Especially weights for IPW can be excessively large and might require trimming. Also overlap plots and functional specification plots are needed.
teffectshave been introduced in Stata 13 and improved in Stata 14. For now I only have Stata 12 and I have to rely on results in printouts in the Stata documentation.josef-pkt commentedon Jun 21, 2015
adding one observation and reference:
IPWeighted outcome regression is doubly robust for GLM with canonical link (i.e. mean outcome function can be misspecified if propensity score is correctly specified, and we still get a consistent estimate of ATE or ATE on subpopulation) Wooldridge (2007 a bit difficult to read) Sloczynski and Wooldridge 2014 IZA working paper https://ideas.repec.org/p/iza/izadps/dp8084.html (easy to read)
IPWeighted outcome regression uses QMLE (WLS, weighted Logit or weighted Poisson)
This looks different from doubly robust AIPW estimators, AFAICS. Those are also defined directly as estimating equations, and we can use GMM like Stata.
josef-pkt commentedon Mar 27, 2016
Two more cases with different type of treatment data. standard is binary treatment
but there is also a considerable literature, and e.g. Stata user packages for
josef-pkt commentedon Dec 15, 2016
SAS has a new procedure for treatment effect
http://documentation.sas.com/#!/?docsetId=statug&docsetVersion=14.2&docsetTarget=statug_causaltrt_details02.htm&locale=en
with IPW, regression adjustment and double robust
I didn't read it, based on a brief skimming, they use directly a sandwich formula for the standard errors
http://documentation.sas.com/#!/?docsetId=statug&docsetVersion=14.2&docsetTarget=statug_causaltrt_details08.htm&locale=en
while Stata and I, PR #2455, reuse GMM.
josef-pkt commentedon Dec 15, 2016
PSMATCH procedure is also new in SAS
josef-pkt commentedon Jan 8, 2017
parking another reference:
Shen, Shu. 2016. “Estimation and Inference of Distributional Partial Effects: Theory and Application.” Journal of Business & Economic Statistics, December, 0–0. doi:10.1080/07350015.2016.1272458.
(currently only authors copy available online)
looks like "margins" meets "treatment effects", I didn't read it, but it sounds interesting.
josef-pkt commentedon Jan 27, 2017
another reference that sounds useful:
Wager, Stefan, Wenfei Du, Jonathan Taylor, and Robert Tibshirani. 2016. “High-Dimensional Regression Adjustments in Randomized Experiments.” arXiv:1607.06801 [Stat], July. http://arxiv.org/abs/1607.06801.
link from comment in http://www.deaneckles.com/blog/745_using-covariates-to-increase-the-precision-of-randomized-experiments/ via @johnmyleswhite (twitter)
josef-pkt commentedon Jan 17, 2018
parking references for performance in simulation (I don't remember if I read them for #2455 )
(interesting also because outcome is not a standard continuous variable)
Austin, Peter C. 2007. “The Performance of Different Propensity Score Methods for Estimating Marginal Odds Ratios.” Statistics in Medicine 26 (16):3078–3094. https://doi.org/10.1002/sim.2781.
———. 2008. “The Performance of Different Propensity-Score Methods for Estimating Relative Risks.” Journal of Clinical Epidemiology 61 (6):537–45. https://doi.org/10.1016/j.jclinepi.2007.07.011.
———. 2010. “The Performance of Different Propensity-Score Methods for Estimating Differences in Proportions (Risk Differences or Absolute Risk Reductions) in Observational Studies.” Statistics in Medicine 29 (20):2137–48. https://doi.org/10.1002/sim.3854.
———. 2013. “The Performance of Different Propensity Score Methods for Estimating Marginal Hazard Ratios.” Statistics in Medicine 32 (16):2837–49. https://doi.org/10.1002/sim.5705.
and a new article with possibly more recent results and references (not read)
Turley, Falynn C., David Redden, Janice L. Case, Charles Katholi, Jeff Szychowski, and Derek DuBay. 2018. “Comparison of Type I Error Rates and Statistical Power of Different Propensity Score Methods.” Journal of Statistical Computation and Simulation 88 (4):769–84. https://doi.org/10.1080/00949655.2017.1406937.
josef-pkt commentedon Dec 4, 2018
stata doubly robust GLM user package
Orsini, N., R. Bellocco, and A. Sjölander. 2013. “Doubly Robust Estimation in Generalized Linear Models.” Stata Journal 13 (1): 185–205.
(I think I found this because I was looking for outlier robust GLM)
uses moment conditions
(I don't know if I looked at it, not in my Zotero)
related
#1790 GLM as GMM
#2861 doubly robust GEE
josef-pkt commentedon Oct 15, 2021
online book MIT licensed uses Python, several notebooks are based on statsmodels
https://github.com/matheusfacure/python-causality-handbook
josef-pkt commentedon Mar 21, 2022
parking a reference
treatment effect estimation and standardized rates
(in #8166 I ran into confint for weighted average of poisson as standardized rate)
I didn't check the the articles
Daignault, Katherine, and Olli Saarela. 2017. “Doubly Robust Estimator for Indirectly Standardized Mortality Ratios.” Epidemiologic Methods 6 (1). https://doi.org/10.1515/em-2016-0016.
current PR for treatment effect only has linear outcome model, no binary or count