Library: | xclust |
See also: | endpoint gform initialize cartsplit dispcarttree |
Quantlet: | printingList | |
Description: | auxiliary quantlet for grcarttree Generates vectors of characters to be displayed. For the non-terminal nodes prints the splitting variable and the splitting point. The information is printed in the following form: "X1<=5.2", that is, variables are denoted with X1,...,Xp. For the terminal nodes the value of the estimate is printed, that is, the value stored at the vector smean. |
Usage: | y = printingList(tr,leafval) | |
Input: | ||
tr | list of vectors, data structure representing a binary tree, produced by quantlet cartsplit. It contains vectors tr.SplitValue, tr.Variable, tr.Class, tr.Impurity, tr.NumberOfPoints, tr.ParentNode See cartsplit for detailed description. | |
leafval | vector, contains means, typically leafval==tr.mean | |
Output: | ||
y | list of three elements |