Simulated Sample Dataset for Demonstration


A simulated data frame with covariates named ID, time, event, group and x1, where

  • ID: Subjects identification;

  • time: Event or censoring time;

  • event: Event indicator, 1 = event, 0 = censored;

  • group: Treatment group indicator;

  • x1: Continuous variable.


A data frame with 500 rows and 5 variables.


The sample dataset is originally simulated by the thinning method developed by Lewis and Shedler (1979) and further processed for a better demonstration purpose. See Fu et al. (2014) for details also.


Lewis, P. A., & Shedler, G. S. (1979). Simulation of nonhomogeneous Poisson processes by thinning. Naval Research Logistics Quarterly, 26(3), 403–413.

Fu, H., Luo, L., & Qu Y. (2014). Hypoglycemic Events Analysis via Recurrent Time-to-Event (HEART) Models. Journal of biopharmaceutical statistics, Epub 2014 Dec 1.

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus