Description Usage Arguments Examples
View source: R/utility_functions.R
Simulate event time with weibull hazard function
1 | weibullsim(N=NULL,lambda,gamma,x=NULL,betas=NULL)
|
N |
Total number of patients |
lambda |
lambda for event hazard function |
gamma |
gamma for event hazard function |
x |
design matrix |
betas |
covariates for design matrix |
1 | data<-weibullsim(N=300,lambda=0.03,gamma=0.9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.