pzivich / zEpid

Epidemiology analysis package
http://zepid.readthedocs.org
MIT License
141 stars 33 forks source link

Stochastic Treatment g-formula #58

Closed pzivich closed 5 years ago

pzivich commented 5 years ago

Might be a good addition to add a stochastic treatment plan g-formula. Good preparation for me before stochastic TMLE #52 Maybe add something like .fit_stochastic()

At this point, I would only add it to the TimeFixedGFormula. Uses a re-sampling procedure. Have some parameter like resample to set. Default should be 100 or something. So stochastic fit would take the mean marginal outcome of the treatment plan

Complexities:

pzivich commented 5 years ago

Added as part of v0.4.2 and will be releaseed soon

Allows for unconditional stochastic treatments and exclusive stochastic treatments. If not exclusive, TimeFixedGFormula will generate a UserWarning letting them know that the specified conditions are not mutually exclusive in their data