deviance.tree(obj, detail = F)
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.
obj
or the total tree deviance.
This function is a method for the generic function for class tree. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.
z <- tree(Mileage ~ Weight, car.test.frame) deviance(z)