RAB               package:MLInterfaces               R Documentation

_r_e_a_l _a_d_a_b_o_o_s_t (_F_r_i_e_d_m_a_n _e_t _a_l) (_a_n_d _d_i_s_c_r_e_t_e _a_d_a_b_o_o_s_t (_D_A_B))

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

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

     RAB(formula, data, maxiter=200, maxdepth=1)

_A_r_g_u_m_e_n_t_s:

 formula: formula - the response variable must be coded -1, 1

    data: data

 maxiter: maxiter

maxdepth: maxdepth - passed to rpart

_V_a_l_u_e:

     an instance of raboostCont

_A_u_t_h_o_r(_s):

     Vince Carey <stvjc@channing.harvard.edu>

_R_e_f_e_r_e_n_c_e_s:

     Friedman et al Ann Stat 28/2 337

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

     library(MASS)
     data(Pima.tr)
     data(Pima.te)
     Pima.all = rbind(Pima.tr, Pima.te)
     tonp = ifelse(Pima.all$type == "Yes", 1, -1)
     tonp = factor(tonp)
     Pima.all = data.frame(Pima.all[,1:7], mtype=tonp)
     fit1 = RAB(mtype~ped+glu+npreg+bmi+age, data=Pima.all[1:200,], maxiter=10, maxdepth=5)
     pfit1 = Predict(fit1, newdata=Pima.tr)
     table(Pima.tr$type, pfit1)

