tree2indicators | R Documentation |
Coerces a given tree structure inheriting from rpart to binary covariates.
tree2indicators(fit)
fit |
a tree structure inheriting to the rpart method |
a list of indicators defining the leaf nodes of the fitted tree from left to right
Cyprien Mbogning
fit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis) tree2indicators(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.