sampleFromKM
Sample from distribution estimated by Kaplan-Meier estimator. Imputed values > tmax are right-censored.
sampleFromKM(n, fit, start = 0, tmax = NULL, dv = 1)
n
: sample sizefit
: Kaplan-Meier fit as returned by survfitstart
: if 0 sample from L(T), else sample from L(T, T > start)tmax
: largest observation in pooled sampledv
: 1 if imputing events, 0 if imputing censoring timesRandom sample of survival times
Useful links