Learn R Programming

conTree (version 0.3-1)

getnodes: Get terminal node observation assignments

Description

Get terminal node observation assignments

Usage

getnodes(tree, x)

Value

vector of tree terminal node identifiers (numbers) corresponding to each observation (row of 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()

See Also

contrast()