pzivich / zEpid

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

Support for continuous treatments in TimeFixedGFormula #49

Open pzivich opened 5 years ago

pzivich commented 5 years ago

Following AJPH 2016, add support for continuous treatments. Can verify against the simulated data (and R's results)

Looks like it might be a valuable time to add stochastic treatments. This would assign treatment with some probability to individuals. It would repeat the process multiple times (n=100+) and obtain the average of those treatments. This is useful for continuous treatments

pzivich commented 5 years ago

Had a Eureka moment with TimeFixedGFormula treatments. Not that exciting, but I can easily support both distribution shifts AND cut-points

The solution is to allow selective treatment options (conditional treatments). For cut-points you would only apply the treatment to those below the treatment. Would still need to clean up how it is handled (since it would still add shift unto existing values).