rpart.permutation.addPvaluespackage:rpart.permutationR Documentation

_F_u_n_c_t_i_o_n _t_o _a_d_d _P-_v_a_l_u_e_s _t_o _a_n _r_p_a_r_t _o_b_j_e_c_t.

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

     Computes P-values from raw permutation replicate counts.

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

     rpart.permutation.addPvalues(model, nseen, nbetterR, nbetterX)

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

   model: An object as returned from the rpart function. 

   nseen: An integer vector such that nseen[i] is the number of
          replicates seen for the subtree with i splits. 

nbetterR: An integer vector such that nbetterR[i] is the number of
          replicates for the subtree with i splits with a relative
          error better than the original model. 

nbetterX: As nbetterR, except for cross-validation error, not relative
          error. 

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

     The model passed in is returned. The cptable is augmented to
     include $P$-values for the relative and cross-validation errors.

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

     Daniel S. Myers

