PTTclQ {pinktoe}R Documentation

Traverse tree structure calling appropriate GUI widgets

Description

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.

Usage

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

Arguments

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

Details

Description says it all.

Value

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.

Note

Not intended for general use

Author(s)

Guy P Nason

See Also

PT

Examples

#
# Not intended for general user use
#

[Package pinktoe version 2.0 Index]