assign_node: Terminal Node Assignment

Description Usage Arguments Value

Description

Assign observations to a terminal node.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
assign_node(object, newdata, na.action, ...)

## S3 method for class 'rpart'
assign_node(object, newdata, na.action = na.rpart, ...)

## S3 method for class 'BinaryTree'
assign_node(object, newdata, ...)

## S3 method for class 'mertree'
assign_node(object, newdata, ...)

Arguments

object

An object that inherits from class rpart.

newdata

An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used.

na.action

The default action deletes all observations for which the response is missing, but keeps those in which one or more predictors are missing.

...

Additional optional arguments. At present, no optional arguments are used.

Value

A numeric vector containing the terminal node each observation belongs to.


bgreenwell/mertree documentation built on May 12, 2019, 8:19 p.m.