Residuals From a Fitted Tree Object

USAGE:

residuals.tree(object, type = NULL) 

ARGUMENTS:

object
fitted model object of class tree. This is assumed to be the result of some function that produces an object with the same named components as that returned by the tree function.
type
Indicates method of residual for a classification tree (no distinction is made for regression trees). Allows the following types of residuals: " usual" (misclassification errors), " pearson" (sum of the observed minus fitted squared over fitted), and " deviance" (minus twice logarithm of fitted).

VALUE:

vector of residuals of type " type" from a fitted tree object.

SEE ALSO:

, .