weibullsim_pw {TwoArmSurvSim}R Documentation

Simulate event time with weibull hazard function. The parameters can be piecewise.

Description

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

Usage

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.


[Package TwoArmSurvSim version 0.2 Index]