tree2indicators: From a tree to indicators (or dummy variables)

Description Usage Arguments Value Author(s) Examples

View source: R/tree2indicators.R

Description

Coerces a given tree structure inheriting from rpart to binary covariates.

Usage

1

Arguments

fit

a tree structure inheriting to the rpart method

Value

a list of indicators defining the leaf nodes of the fitted tree from left to right

Author(s)

Cyprien Mbogning

Examples

1
2
fit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)
tree2indicators(fit)

iBST documentation built on May 30, 2017, 3:31 a.m.