Split function to build the two daughter nodes from longitudinal predictors
var_split_long(
X,
Y,
timeVar = NULL,
nsplit_option = "quantile",
cause = 1,
nodesize = 1,
init = NULL
)
Input data
Outcome data
A character indicating the name of time variable
A character indicates how the values are chosen to build the two groups for the splitting rule (only for continuous predictors). Values are chosen using deciles (nsplit_option
="quantile") or randomly (nsplit_option
="sample"). Default value is "quantile".
(Only with competing events) Number indicates the event of interest.
Minimal number of subjects required in both child nodes to split. Cannot be smaller than 1.
(Optional) Initial values for linear mixed models