powered by
Coerces a given tree structure inheriting from rpart to binary covariates.
tree2indicators(fit)
a list of indicators defining the leaf nodes of the fitted tree from left to right
a tree structure inheriting to the rpart method
Cyprien Mbogning
fit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis) tree2indicators(fit)
Run the code above in your browser using DataLab