Code for paper: Liu, L., Huang, X., Yaroshinsky, A., Cormier, J. (2016). Joint frailty models for zero-inflated recurrent events in the presence of a terminal event. Biometrics. 72, 204-214.
Use the R code to generate simulation data, and use the SAS code to fit the data