Functions to help with discrete time survival analysis. Check out my blog post going over the analysis.
Example data, journal.pone.0141328.s001.CSV is taken from:
Ruderman, M. A., Wilson, D. F., & Reid, S. (2015). Does prison crowding predict higher rates of substance use related parole violations? A recurrent events multi-level survival analysis. PloS one, 10(10), e0141328.
- Other metrics from Haider et al. (2020), e.g. Brier Score