draw_tte.Rd
Draw a time to event from a list of parametric survival functions
draw_tte(
n_chosen = 1,
dist = "exp",
coef1 = 1,
coef2 = NULL,
coef3 = NULL,
hr = 1,
seed = NULL
)
The number of observations to be drawn
The distribution; takes values 'lnorm','weibullPH','weibull','llogis','gompertz','gengamma','gamma','exp'
First coefficient of the distribution, defined as in the coef() output on a flexsurvreg object
Second coefficient of the distribution, defined as in the coef() output on a flexsurvreg object
Third coefficient of the distribution, defined as in the coef() output on a flexsurvreg object
A hazard ratio
An integer which will be used to set the seed for this draw.
A vector of time to event estimates from the given parameters
draw_tte(n_chosen=1,dist='exp',coef1=1,hr=1)
#> [1] 0.1474441