getnodes {conTree} | R Documentation |
Get terminal node observation assignments
Description
Get terminal node observation assignments
Usage
getnodes(tree, x)
Arguments
tree |
model object output from contrast() or prune() |
x |
training input predictor data matrix or data frame in same format as in contrast() |
Value
vector of tree terminal node identifiers (numbers) corresponding to each observation (row of x)
See Also
[Package conTree version 0.3-1 Index]