Thomas, Laine, and Eric M. Reyes. 2014. “Tutorial: Survival Estimation for Cox Regression Models With Time-Varying Coefficients Using SAS and R”. Journal of Statistical Software, Code Snippets 61 (1):1-23. https://doi.org/10.18637/jss.v061.c01.