Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

deviance.tree

Extract Deviance from a Tree Object


Description

Extract deviance from a tree object.

Usage

## S3 method for class 'tree'
deviance(object, detail = FALSE, ...)

Arguments

object

an object of calls "tree"

detail

logical. If true, returns a vector of deviance contributions from each node.

...

arguments to be passed to or from other methods.

Value

The overall deviance, or a vector of contributions from the cases at each node. The overall deviance is the sum over leaves in the latter case.


tree

Classification and Regression Trees

v1.0-40
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre]
Initial release
2019-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.