rsq.rpart | R Documentation |
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.
rsq.rpart(x)
x |
fitted model object of class |
Two plots are produced.
The labels are only appropriate for the "anova"
method.
z.auto <- rpart(Mileage ~ Weight, car.test.frame)
rsq.rpart(z.auto)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.