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
ENH: Treatment effect for binary endpoint, general outcome models #8987
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
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
Activity
josef-pkt commentedon Sep 20, 2023
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
pzivich commentedon Nov 21, 2023
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
AIPWI 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