getpredictorsfromtree: getpredictorsfromtree

Description Usage Arguments See Also Examples

View source: R/getpredictorsfromtree.R

Description

for each terminal node of the tree, give the elements of "predictors" who appear in the node definition

Usage

1
getpredictorsfromtree(tree, predictors)

Arguments

tree

same format than output of partykit::ctree

predictors

list of variables

See Also

daniRules

Examples

1
2
tree<-partykit::ctree(Petal.Width~.,iris)
getpredictorsfromtree(tree,names(iris))

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.