generate.ith.superclass {oblique.tree} | R Documentation |
Generates logical vectors that identify ideal outcomes.
generate.ith.superclass( R, superclass.index)
R |
The number of residual classes at a node. |
superclass.index |
Integer in 1,...,2^{R-1}-1 indicating required ideal outcome. |
With R residual classes at a node, 2^{R-1}-1 different ideal outcomes arise. generate.ith.superclass
identifies them.
A vector of length R with 0's and 1's denoting association with the left superclass.
A. Truong
Truong. A (2009) Fast Growing and Interpretable Oblique Trees via Probabilistic Models
#list all ideal outcomes when there are 5 residual classes at a node for (i in 1:(2^{5-1}-1)){ ideal.outcome.i <- oblique.tree:::generate.ith.superclass( R = 5, superclass.index = i) print(ideal.outcome.i) }