MonteCarloGFormula return user-specified IDs
pzivich opened this issue · comments
I had thought I kept track of the user-specified IDs and returned them in predicted_outcomes
but it doesn't look like that's true...
I need to update the following line to
self.predicted_outcomes = gs[
['uid_g_zepid', self.idvar, self.exposure, self.outcome, self.time_in, self.time_out] + self._covariate].sort_values(
by=['uid_g_zepid', self.time_in]).reset_index(drop=True)
zEpid/zepid/causal/gformula/TimeVary.py
Line 492 in 0cf189e