defMiss: Add single row to definitions table for missing data
Description
Add single row to definitions table for missing data
Usage
defMiss(dtDefs = NULL, varname, formula, logit.link = FALSE, baseline = FALSE, monotonic = FALSE)
Arguments
dtDefs
Definition data.table to be modified
varname
Name of variable with missingness
formula
Formula to describe pattern of missingness
logit.link
Indicator set to TRUE when the probability of missingness
is based on a logit model.
baseline
Indicator is set to TRUE if the variable is a baseline
measure and should be missing throughout an entire observation period. This
is applicable to repeated measures/longitudinal data.
monotonic
Indicator set to TRUE if missingness at time t is followed
by missingness at all follow-up times > t.
Value
A data.table named dtName that is an updated data defnitions table