pzivich / zEpid

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

G-estimation of SNM implementation #94

Closed pzivich closed 5 years ago

pzivich commented 5 years ago

Implementing g-estimation of structural nested mean models for single time-point studies. #27 G-estimation is the last of Robins's g-methods I have to implement. After this, I can finally claim that all of the g-methods are within zEpid in at least some form.

G-estimation estimates a slightly different parameter than the g-formula and IPTW. It is better at finding effect measure modification. As stated in #27, I only plan on implementing additive SNM. It makes the estimation process easier for me to code and there are some major issues/weaknesses with the ratio scale SNM

TODO:

pzivich commented 5 years ago

Still needs to be cleaned up, but I think the scipy.optimize part is so cool. Less efficient than the closed form but I am really happy with the code generally

However, I am having trouble with more than one psi for this procedure