treeClust.rpart {treeClust} | R Documentation |
Build an rpart tree as part of treeClust
Description
This function builds one tree, as part of a treeClust analysis. It will not normally be called by users.
Usage
treeClust.rpart(i, dfx, d.num, control, rcontrol)
Arguments
i |
Index of column number (in dfx) of response variable. |
dfx |
Data set used to build tree |
d.num |
Distance number, 1-4, describing measurement for clustering. |
control |
List of controls for treeClust, often output of treeClust.control(). |
rcontrol |
List of controls for rpart, often output of rpart.control(). |
Details
It is useful to encapsulate some of the tree-building code so that it can be used either in a loop or in parallel.
Value
List containing some of these elements (below). Size and DevRatio are always present.
DevRat |
Deviance ratio (decrease in dev. / original dev.) for this tree; always present |
Size |
Size of pruned tree. If no tree is grown, Size is 1. |
tree |
The pruned tree, if needed |
leaf.where |
Vector of leaf membership indices, if Size > 1 |
Author(s)
Sam Buttrey