deviance.tree {tree} | R Documentation |
Extract deviance from a tree object.
deviance.tree(object, detail = FALSE)
object |
an object of calls "tree" |
detail |
logical. If true, returns a vector of deviance contributions from each node. |
The overall deviance, or a vector of contributions from each the cases at each node. The overall deviance is the sum over leaves in the latter case.