pzivich / zEpid

Epidemiology analysis package

Home Page:http://zepid.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

['uid_g_zepid', self.exposure, self.outcome, self.time_in, self.time_out] + self._covariate].sort_values(