View source: R/utility_functions.R
Simulate event time with weibull hazard function given the piecewise parameters.
1 | weibullsim_pw(lambda,gamma,t,x,betas=NULL)
|
lambda |
lambda for event hazard function. It will be a vector for piecewise hazard function. |
gamma |
gamma for event hazard function. It will be a vector for piecewise hazard function. |
x |
design matrix |
betas |
covariates for desing matrix |
t |
time intervals for piecewise weibull parameters. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.