Set up data and model
model.setup.RdMain interface call for setting up the data and model parameters
Usage
model.setup(
df0,
id = "id",
t = "t",
from = "from",
to = "to",
i.covlist = NULL,
c.covlist = NULL,
time.interaction.var = NULL,
changePointsList = NULL,
basetrans = NULL,
time.as.delta = FALSE
)Arguments
- df0
The original input dataframe
- id
Quoted column name from df0 containing subject ids. Default is id.
- t
Quoted column name from df0 containing the time variable. Default is t.
- from
Quoted column name from df0 containing the "from" state for the event in that row. Default is from.
- to
Quoted column name from df0 containing the "to" state for the event in that row. Default is to.
- i.covlist
A character vector containing quoted column names from df0 for categorical covariates
- c.covlist
A character vector containing quoted column names from df0 for continuous covariates
- time.interaction.var
Character string (optional); Categorical variable with which to interact time. Limited to binary variables for now.
- changePointsList
List of integer vectors to indicted change points for dynamic time constants
- basetrans
A character vector containing base (reference) transition events, each in the form "X->Y"
- time.as.delta
Logical; if TRUE, for each transition, treats time constants past the first one as additive terms