weibullsim_pw: Simulate event time with weibull hazard function. The...

Description Usage Arguments

View source: R/utility_functions.R

Description

Simulate event time with weibull hazard function given the piecewise parameters.

Usage

1
weibullsim_pw(lambda,gamma,t,x,betas=NULL)

Arguments

lambda

lambda for event hazard function. It will be a vector for piecewise hazard function.

gamma

gamma for event hazard function. It will be a vector for piecewise hazard function.

x

design matrix

betas

covariates for desing matrix

t

time intervals for piecewise weibull parameters.


TwoArmSurvSim documentation built on Feb. 26, 2021, 9:06 a.m.