weibullsim {TwoArmSurvSim} | R Documentation |
Simulate Event Time with weibull Hazard Function
Description
Simulate event time with weibull hazard function
Usage
weibullsim(N=NULL,lambda,gamma,x=NULL,betas=NULL)
Arguments
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 |
Examples
data<-weibullsim(N=300,lambda=0.03,gamma=0.9)
[Package TwoArmSurvSim version 0.2 Index]