Learn R Programming

simstudy (version 0.1.1)

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
varname
Variable name
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