powered by
An rpart regression tree carries the deviance around (in the frame$dev element). This function computes the deviance for classification trees.
rp.deviance(x, ...)
Vector of deviances for every row in the tree's frame.
An object of class rpart
Other arguments, currently unused.
Sam Buttrey
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.
rpart