-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gformula sequential #32
Conversation
…ary. Still needs custom treatment support and testing
…as a reference. Had some weird values show-up on the sample data when converted to time chunks
Sometimes risks go down over time when using these longitudinal methods (personal communication regarding AIPW). Even in the LTMLE paper, they have some risks go down over time. Still weird and feels unnatural to me My best bet is to simulate some reasonable data and compare to R's Might know the issue. In current implement; if have outcome at that time point then always gets reset to 1. However, it should only be set to 1 for FUTURE outcomes. |
Found the issue. It was a tricky little piece. In case I need to remember back, The outcomes for individuals ONLY is set to 1 iff they followed the treatment regime of interest, had the outcome, and had that outcome before the current iteration. This is now caught by adding an additional condition asserting that the current outcome is |
Next step is to simulate data. It looks like it will be the easiest way. Some publicly available longitudinal data requires registering, so I don't think I can include the data with zEpid... R's ltmle has some recipes for simulated data that would be a good starting point |
In reference to #30
Dividing
TimeVaryGFormula
into two different estimation methods. Monte Carlo (currently implemented) and Sequential Regression (new method). Monte Carlo works better for survival data while Sequential Regression works best for longitudinal dataSequential regression uses the following process