rsq.rpart               package:rpart               R Documentation

_P_l_o_t_s _t_h_e _A_p_p_r_o_x_i_m_a_t_e _R-_S_q_u_a_r_e _f_o_r _t_h_e _D_i_f_f_e_r_e_n_t _S_p_l_i_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     rsq.rpart(x)

_A_r_g_u_m_e_n_t_s:

       x: fitted model object of class 'rpart'.  This is assumed to be
          the result of some function that produces an object with the
          same named components as that returned by the 'rpart'
          function. 

_S_i_d_e _E_f_f_e_c_t_s:

     Two plots are produced.

_N_o_t_e:

     The labels are only appropriate for the '"anova"' method.

_E_x_a_m_p_l_e_s:

     data(car.test.frame)
     z.auto <- rpart(Mileage ~ Weight, car.test.frame)
     rsq.rpart(z.auto)

