rsq.rpart
Plots the Approximate R-Square for the Different Splits
Description
Produces 2 plots. The first plots the r-square (apparent and apparent - from cross-validation) versus the number of splits. The second plots the Relative Error(cross-validation) +/- 1-SE from cross-validation versus the number of splits.
Usage
rsq.rpart(x)
Arguments
x | fitted model object of class |
Side Effects
Two plots are produced.
Note
The labels are only appropriate for the "anova"
method.
Examples
z.auto <- rpart(Mileage ~ Weight, car.test.frame) rsq.rpart(z.auto)
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.