An R package for simulating times to event from a Kaplan-Meier (KM) estimator of a survival function, based on a sample of times to event (either for the entire sample, a subgroup, or an individual).
To install the KMSim
R package use:
library(devtools)
install_github("FJRubio67/KMSim")
library(KMSim)
?KMSim
?KMSim
Illustrative examples using real data can be found at: