Description Usage Arguments Details Value Author(s) References Examples
Generates logical vectors that identify ideal outcomes.
1 2 3 | 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
1 2 3 4 5 6 7 | #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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.