Learn R Programming

DynForest (version 1.1.3)

var_split_num: Split function to build the two daughter nodes from numeric predictors

Description

Split function to build the two daughter nodes from numeric predictors

Usage

var_split_num(X, Y, nsplit_option = "quantile", cause = 1, nodesize = 1)

Arguments

X

Input data

Y

Outcome data

nsplit_option

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".

cause

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

nodesize

Minimal number of subjects required in both child nodes to split. Cannot be smaller than 1.