Description Usage Arguments Value
Method to get predictions from median-type aggregation methods used in paper by Roy & Larocque (2012)
1 | Node_Tree_Agg(TrainNodes, TestNodes, Inbag, TRAINY)
|
TrainNodes |
ntrain by ntree matrix containing terminal node numbers of each training case in each tree |
TestNodes |
ntest by ntree matrix containing terminal node numbers of each training case in each tree |
Inbag |
ntrain by ntree matrix telling number of times training case came up in bootstrap sample used to grow each tree |
TRAINY |
vector of training case response values |
returns a list containing predictions using 1- mean within terminal nodes and median across trees 2- median within terminal nodes and median across trees 3- median within terminal nodes and mean across trees
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.