We present an implementation of split-population duration regression in the spduration (Beger et al., 2017) package for R that allows for time-varying covariates. The statistical model accounts for units that are immune to a certain outcome and are not part of the duration process the researcher is primarily interested in. We provide insights for when immune units exist, that can significantly increase the predictive performance compared to standard duration models. The package includes estimation and several post-estimation methods for split-populationWeibull and log-logistic models. We provide an empirical application to data on military coups.
Beger, A., Hill, D. W., Metternich, N. W., Minhas, S., & Ward, M. D. (2017). Splitting it up: The spduration split-population duration regression package for time-varying covariates. R Journal, 9(2), 474–486. https://doi.org/10.32614/rj-2017-056