Description Usage Arguments Details Value See Also Examples
View source: R/getpredictorsfromtree.R
for each terminal node of the tree, give the elements of "predictors" who appear in the node definition
1 | getpredictorsfromcaptureoutput(tree, predictors)
|
tree |
same format than output of partykit::ctree |
predictors |
a vector of character strings, indicating variable names. |
A basic 'grep' function is applied to each potential predictor. It is returned if it appears in the rules.
a named vector of booleans. The names correspond to 'predictors', and the boolean value indicates if the variables was actually used in the fitted model or not.
daniRules
1 | getpredictorsfromcaptureoutput(party::ctree(Petal.Width~.,iris),names(iris))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.