daniRules: daniRules

Description Usage Arguments Details Value Examples

Description

the rules for the tree. Add an extra rule. For example, if the left branch rule is X in (a,b,c) and the right branch rule is X in (e,f), the right branch rule is modified by X not in (a,b,c). The extreme right branch rule is replaced by the negation of any of the other branches, for each node.

Usage

1
daniRules(x, i = NULL, ...)

Arguments

x

same format than output of partykit::ctree

i

(default: NULL)

Details

Adapted from partykit:::.list.rules.party

Value

for each terminal node of the tree, give the definition. For example: node 11 corresponds to 'x>1 and y in ("a","b")'

Examples

1
2
x=partykit::ctree(Petal.Width~.,iris)
daniRules(x)   

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