defSurv: Add single row to survival definitions
Description
Add single row to survival definitions
Usage
defSurv(dtDefs = NULL, varname, formula = 0, scale, shape = 1)
Arguments
dtDefs
Definition data.table to be modified
formula
Covariates predicting survival
scale
Scale parameter for the Weibull distribution.
shape
The shape of the Weibull distribution. Shape = 1 for
an exponential distriubtion
Value
A data.table named dtName that is an updated data defnitions table