cu.summary               package:rpart               R Documentation

_A_u_t_o_m_o_b_i_l_e _D_a_t_a _f_r_o_m '_C_o_n_s_u_m_e_r _R_e_p_o_r_t_s' _1_9_9_0

_D_e_s_c_r_i_p_t_i_o_n:

     The 'cu.summary' data frame has 117 rows and 5 columns, giving
     data on makes of cars taken from the April, 1990 issue of
     _Consumer Reports_.

_U_s_a_g_e:

     cu.summary

_F_o_r_m_a_t:

     This data frame contains the following columns:

     '_P_r_i_c_e' a numeric vector giving the list price in US dollars of a
          standard model

     '_C_o_u_n_t_r_y' of origin, a factor with levels 'Brazil' 'England'
          'France' 'Germany' 'Japan' 'Japan/USA' 'Korea' 'Mexico'
          'Sweden' 'USA'

     '_R_e_l_i_a_b_i_l_i_t_y' an ordered factor with levels 'Much worse' < 'worse'
          < 'average' < 'better' < 'Much better'

     '_M_i_l_e_a_g_e' fuel consumption miles per US gallon, as tested.

     '_T_y_p_e' a factor with levels 'Compact' 'Large' 'Medium' 'Small'
          'Sporty' 'Van'

_S_o_u_r_c_e:

     _Consumer Reports_, April, 1990, pp. 235-288 quoted in

     John M. Chambers and Trevor J. Hastie eds. (1992) _Statistical
     Models in S_, Wadsworth and Brooks/Cole, Pacific Grove, CA 1992,
     pp. 46-47.

_S_e_e _A_l_s_o:

     'car.test.frame'

_E_x_a_m_p_l_e_s:

     fit <- rpart(Price ~ Mileage + Type + Country, cu.summary)
     plot(fit, compress=TRUE)
     text(fit, use.n=TRUE)

