weibullsim_betapw {TwoArmSurvSim} | R Documentation |
Simulate event time with weibull hazard function for piecewise hazard ratios
weibullsim_betapw(lambda,gamma,t,x,betas)
lambda |
lambda for event hazard function |
gamma |
gamma for event hazard function |
x |
design matrix |
betas |
covariates for design matrix |
t |
TIme windows for piecewise hazard ratios |