Skip to content

SUMM: treatment effects, Inverse probability weights #2443

Open

Description

@josef-pkt

see discussion in https://groups.google.com/d/msg/pystatsmodels/WtqcXF3KtJI/wVH4HrHtHVMJ

target: get equivalent to Stata's teffects

References

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.

Activity

  1. added this to the 0.8 milestone on Jun 9, 2015
  2. josef-pkt commented on Jun 16, 2015

    @josef-pkt
    MemberAuthor

    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.

                         ATE        POM_0        POM_1
    res_ipw       230.688598  3172.774059  3403.462658
    res_aipw     -230.989201  3403.355253  3172.366052
    res_aipw_wls -227.195618  3403.250651  3176.055033
    res_ra       -239.639211  3403.242272  3163.603060
    res_ipwra    -229.967078  3403.335639  3173.368561
    

    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.

    update

    PR #2455

  3. josef-pkt commented on Jun 16, 2015

    @josef-pkt
    MemberAuthor

    a few more points

    • 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.
  4. josef-pkt commented on Jun 21, 2015

    @josef-pkt
    MemberAuthor

    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.

  5. josef-pkt commented on Mar 27, 2016

    @josef-pkt
    MemberAuthor

    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"
  6. josef-pkt commented on Dec 15, 2016

    @josef-pkt
    MemberAuthor

    PSMATCH procedure is also new in SAS

  7. josef-pkt commented on Jan 8, 2017

    @josef-pkt
    MemberAuthor

    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.

  8. josef-pkt commented on Jan 27, 2017

    @josef-pkt
    MemberAuthor
  9. josef-pkt commented on Jan 17, 2018

    @josef-pkt
    MemberAuthor

    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.

  10. josef-pkt commented on Dec 4, 2018

    @josef-pkt
    MemberAuthor

    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

  11. josef-pkt commented on Oct 15, 2021

    @josef-pkt
    MemberAuthor
  12. modified the milestones: 0.8, 0.14 on Oct 15, 2021
  13. josef-pkt commented on Mar 21, 2022

    @josef-pkt
    MemberAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions