data(car.test.frame)
z.auto <- rpart(Mileage ~ Weight, car.test.frame)
z.auto
node), split, n, deviance, yval
* denotes terminal node
1) root 60 1355.00 24.58
2) Weight>2567.5 45 361.20 22.47
4) Weight>3087.5 22 61.32 20.41 *
5) Weight<3087.5 23 117.70 24.43 *
3) Weight<2567.5 15 186.90 30.93 *
Run the code above in your browser using DataLab