km.sim.survtimes {CPsurv} | R Documentation |
Simulates Survival Times using Kaplan-Meier
km.sim.survtimes(nobs, time, event, weibexp, changeP = NULL)
nobs |
Number of observations. |
time |
Numeric vector with survival times. |
event |
Numeric vector indicating censoring status; 0 = alive (censored), 1 = dead (uncensored). If missing, all observations are assumed to be uncensored. |
weibexp |
Logical; if |
changeP |
Change point |