Description Usage Arguments Details Value Author(s) See Also
An rpart regression tree carries the deviance around (in the frame$dev element). This function computes the deviance for classification trees.
1 | rp.deviance(x, ...)
|
x |
An object of class rpart |
... |
Other arguments, currently unused. |
For a vector of leaf counts n whose sum is N, the deviance is (-2) times the sum of n log (n/N), taking 0 log 0 as 0.
Vector of deviances for every row in the tree's frame.
Sam Buttrey
rpart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.