mifem                  package:DAAG                  R Documentation

_M_o_r_t_a_l_i_t_y _O_u_t_c_o_m_e_s _f_o_r _F_e_m_a_l_e_s _S_u_f_f_e_r_i_n_g _M_y_o_c_a_r_d_i_a_l _I_n_f_a_r_c_t_i_o_n

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

     The 'mifem' data frame has 1295 rows and 10 columns.

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

     mifem

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

     This data frame contains the following columns:

     _o_u_t_c_o_m_e mortality outcome, a factor with levels 'live',  'dead' 

     _a_g_e age at onset

     _y_r_o_n_s_e_t year of onset

     _p_r_e_m_i previous myocardial infarction event, a  factor with levels
          'y', 'n', 'nk' not known 

     _s_m_s_t_a_t smoking status, a factor with levels 'c'  current, 'x'
          ex-smoker, 'n' non-smoker, 'nk' not known

     _d_i_a_b_e_t_e_s a factor with levels 'y', 'n', 'nk' not  known

     _h_i_g_h_b_p high blood pressure, a factor with levels 'y', 'n', 'nk'
          not known 

     _h_i_c_h_o_l high cholesterol, a factor with levels 'y', 'n' 'nk' not
          known

     _a_n_g_i_n_a a factor with levels 'y', 'n', 'nk' not known

     _s_t_r_o_k_e a factor with levels 'y', 'n', 'nk' not known

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

     Newcastle (Australia) centre of the Monica project; see the web
     site http://www.ktl.fi/monicaindex.html

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

     print("CART - Example 10.7")
     summary(mifem)
     pause()

     require(rpart)
     mifem.rpart <- rpart(outcome ~ ., data = mifem, cp = 0.0025)
     plotcp(mifem.rpart)
     printcp(mifem.rpart)
     pause()

     mifemb.rpart <- prune(mifem.rpart, cp=0.006)
     print(mifemb.rpart)

