Skip to content

ENH: Treatment effect for binary endpoint, general outcome models #8987

Open

Description

@josef-pkt

mainly parking a link

https://github.com/pzivich/zEpid/blob/master/zepid/causal/doublyrobust/AIPW.py

zepid: has binary treatment and binary outcome.
our current treatment_effect only allows for linear outcome (OLS)

Activity

  1. added this to the 0.15 milestone on Aug 31, 2023
  2. josef-pkt commented on Sep 20, 2023

    @josef-pkt
    MemberAuthor

    another Zivich piece of code

    https://github.com/pzivich/publications-code/blob/master/MissingDataEpi/ipop_missing.py#L34

    g-computation in cross-section model (no panel data, repeated observations) is just regression adjustment.
    code is just a few lines using GLM-Binomial for binary endpoint.

    related:
    some articles with Zivich as co-author have 3 models, e.g. treatment, censoring or missing and outcome

  3. pzivich commented on Nov 21, 2023

    @pzivich

    Extensions to binary outcomes should be straightforward. IPW is the easiest since it should require no change on your part. The weighted mean works for any outcome, since IPW is nonparametric for the outcome process. For your IPW implementation, it isn't clear to me from the docs whether you are using the Horwitz-Thompson or the Hajek.

    RA should only require using logistic regression rather than a linear model. While making that modification, you may want to also consider adding support for generic GLM specifications. In AIPW I also allow the use of Poisson regression for the outcome.

    When using parametric models for the nuisance models (propensity score, outcome mechanism), weighted-regression AIPW (aipw_wls) and targeted maximum likelihood estimation (TMLE) should not be meaningfully different (see 4.6 of Tran et al.). So, unless you allow for machine learning for nuisance model estimation, I wouldn't worry too much about offering TMLE.

    Edit: I replicate the Hernan and Robins 2023 book with zEpid here and with delicatessen here. The IPW sections demonstrate continuous and binary outcomes. You may also want to consider adding support for missing outcome data in the future as well

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions