data(car.test.frame)
z.auto <- rpart(Mileage ~ Weight, car.test.frame)
summary(z.auto)
CP nsplit rel error xerror xstd
1 0.5953 0 1.0000 1.0078 0.17510
2 0.1345 1 0.4047 0.4983 0.07396
3 0.0100 2 0.2701 0.3946 0.06354
Node number 1: 60 observations, complexity param=0.5953
mean=24.58 , SS/n=22.58
left son=2 (45 obs) right son=3 (15 obs)
Primary splits:
Weight < 2568 to the right, improve=0.5953, (0 missing)
Node number 2: 45 observations, complexity param=0.1345
mean=22.47 , SS/n=8.027
left son=4 (22 obs) right son=5 (23 obs)
Primary splits:
Weight < 3088 to the right, improve=0.5045, (0 missing)
Node number 3: 15 observations
mean=30.93 , SS/n=12.46
Node number 4: 22 observations
mean=20.41 , SS/n=2.787
Node number 5: 23 observations
mean=24.43 , SS/n=5.115
Run the code above in your browser using DataLab