getpredictorsfromcaptureoutput: getpredictorsfromcaptureoutput

Description Usage Arguments Details Value 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

Arguments

tree

same format than output of partykit::ctree

predictors

a vector of character strings, indicating variable names.

Details

A basic 'grep' function is applied to each potential predictor. It is returned if it appears in the rules.

Value

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.

See Also

daniRules

Examples

1
getpredictorsfromcaptureoutput(party::ctree(Petal.Width~.,iris),names(iris))

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