weibullsim_betapw: Simulate Event Time with weibull Hazard Function and Piecewise Hazard Ratios
Description
Simulate event time with weibull hazard function for piecewise hazard ratios
Usage
weibullsim_betapw(lambda,gamma,t,x,betas)
Arguments
lambda
lambda for event hazard function
gamma
gamma for event hazard function
betas
covariates for design matrix
t
TIme windows for piecewise hazard ratios