Simulate event time with weibull hazard function given the piecewise parameters.
weibullsim_pw(lambda,gamma,t,x,betas=NULL)
lambda for event hazard function. It will be a vector for piecewise hazard function.
gamma for event hazard function. It will be a vector for piecewise hazard function.
design matrix
covariates for desing matrix
time intervals for piecewise weibull parameters.