sampleFromCondKM {permGS} | R Documentation |
sampleFromCondKM
Description
Sample from conditional distribution estimated by Kaplan-Meier estimator. Imputed values > tmax are right-censored.
Usage
sampleFromCondKM(U, fit, tmax = NULL, dv = 1, f = NULL)
Arguments
U |
vector of observed times |
fit |
Kaplan-Meier fit as returned by survfit |
tmax |
largest observation of the pooled sample |
dv |
1 if imputing events, 0 if imputing censoring times |
f |
interpolated Kaplan-Meier estimate |
Value
Random sample of survival times drawn from conditional distribution of T given T > U
[Package permGS version 0.2.5 Index]