makeEDMtree             package:pinktoe             R Documentation

_C_o_n_s_t_r_u_c_t _a _t_r_e_e _f_o_r _o_n_e _o_f _t_h_e _e_x_a_m_p_l_e_s _s_h_o_w_i_n_g _h_o_w _p_i_n_k_t_o_e _w_o_r_k_s

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

     Merely constructs a tree (rpart) object.

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

     makeEDMtree()

_D_e_t_a_i_l_s:

     Constructs a particular tree using a given data frame and a list
     of variables (the ones in 'edmnumswehave'. When transferring code
     between S and R sometimes tree objects (in S) differ from their
     "equivalent" partners ('rpart' objects) in R. Hence it is useful
     to sometimes be able to recompute them for the particular package
     in question.

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

     An object of class 'rpart' which is the made tree.

_N_o_t_e:

     Useful for constructing an example

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

     Guy P Nason

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

     <URL:
     http://www.stats.bris.ac.uk/~magpn/Research/Pinktoe/Welcome.html>

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

     'pinktoe'

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

     #
     # Build the tree after loading rpart library
     #
     library("rpart")
     data("mpincdf99")
     mpincdf99tree <- makeEDMtree()

