PTTclQ                package:pinktoe                R Documentation

_T_r_a_v_e_r_s_e _t_r_e_e _s_t_r_u_c_t_u_r_e _c_a_l_l_i_n_g _a_p_p_r_o_p_r_i_a_t_e _G_U_I _w_i_d_g_e_t_s

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

     PTTclQ takes a tree and a row number (indexing a node). If that
     row describes a leaf then the function returns the yval for that
     leaf. If the row describes a decision node the function calls a
     GUI Tcl/Tk widget to ask the user what decision is necessary for
     that node. The result of the decision is used to recursively call
     PTTclQ for the next node.

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

     PTTclQ(rpart, row, textfn, tittext, stateprintfn)

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

   rpart: 'rpart' object that you wish to traverse 

     row: 'row' the node at which the current decision is to be made 

  textfn: Function to provide text given a variable name 

 tittext: Currently unused. Reserved for future use 

stateprintfn: Currently unused. Reserved for future use

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

     Description says it all.

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

     This function is recursive. However, eventually a leaf must be
     reached and a yval returned back to the calling function. The yval
     is either a numeric value corresponding to a predicted value for
     the case in regression, or an indexed into a factor for a
     classification tree.

_N_o_t_e:

     Not intended for general use

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

     Guy P Nason

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

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

     'PT'

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

     #
     # Not intended for general user use
     #

