Chen_2016_event_time {EventPredInCure} | R Documentation |
Function to generate event time in the existence of cured population
Description
generate event time under the delay-treatment effect and cured population setting
Usage
Chen_2016_event_time(u, hr, distribution, p, lag, a, b, mu, sd)
Arguments
u |
a scalar with between 0 and 1 |
hr |
hazard ratio if this subject in the corresponding arm vs control arm |
distribution |
the distribution for the control arm, valid values of inputs include: exponential, weibull, log-normal, log-logistic |
p |
the proportion of cured population in the control arm |
lag |
delayed treatment effect time after treatment initialization, when the hr between treatment arm and control =1 until lag time |
a |
the shape parameter in the Weibull or the log-logistic distribution |
b |
the scale parameter in the exponential, Weibull or the log-logistic distribution |
mu |
the mean in the log-normal distribution |
sd |
the standard deviation in the log-normal distribution |
Value
the event time
References
Chen, Tai-Tsang. "Predicting analysis times in randomized clinical trials with cancer immunotherapy." BMC medical research methodology 16.1 (2016): 1-10.