Learn R Programming

DynForest (version 1.1.3)

pred.MMT: Predict the leaf by dropping down the subject in the tree

Description

Predict the leaf by dropping down the subject in the tree

Usage

pred.MMT(
  tree,
  Longitudinal = NULL,
  Numeric = NULL,
  Factor = NULL,
  timeVar = NULL
)

Arguments

tree

Tree object resulting from Rtmax_surv function

Longitudinal

A list of longitudinal predictors which should contain: X a dataframe with one row for repeated measurement and as many columns as markers; id is the vector of the identifiers for the repeated measurements contained in X; time is the vector of the measurement times contained in X.

Numeric

A list of numeric predictors which should contain: X a dataframe with as many columns as numeric predictors; id is the vector of the identifiers for each individual.

Factor

A list of factor predictors which should contain: X a dataframe with as many columns as factor predictors; id is the vector of the identifiers for each individual.

timeVar

A character indicating the name of time variable