Learn R Programming

DynForest (version 1.1.3)

OOB.tree: Compute Out-Of-Bag error on the tree

Description

Compute Out-Of-Bag error on the tree

Usage

OOB.tree(
  tree,
  Longitudinal = NULL,
  Numeric = NULL,
  Factor = NULL,
  Y,
  timeVar = NULL,
  IBS.min = 0,
  IBS.max = NULL,
  cause = 1
)

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.

Y

A list of output which should contain: type defines the nature of the outcome, can be "surv", "numeric" or "factor"; Y is the output variable; id is the vector of the identifiers for each individuals, they should be the same as the identifiers of the Inputs.

timeVar

A character indicating the name of time variable

IBS.min

(Only with survival outcome) Minimal time to compute the Integrated Brier Score. Default value is set to 0.

IBS.max

(Only with survival outcome) Maximal time to compute the Integrated Brier Score. Default value is set to the maximal time-to-event found.

cause

(Only with competing events) Number indicates the event of interest.