PTTclQ {pinktoe} | R Documentation |
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.
PTTclQ(rpart, row, textfn, tittext, stateprintfn)
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 |
Description says it all.
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.
Not intended for general use
Guy P Nason
# # Not intended for general user use #