| terminalNodeSummary {splinetree} | R Documentation |
Prints a summary of a terminal node in a tree
Description
If no argument is provided for the parameter node, summaries are printed for every
terminal node. Otherwise, the summary of just the requested node is printed.
Usage
terminalNodeSummary(tree, node = NULL)
Arguments
tree |
A model returned by splineTree(). |
node |
The number of the node that you want summarized. To see which nodes correspond to which numbers, see stPrint(tree) or treeSummary(tree). If this parameter is provided, must correspond to a valid terminal node in the tree. |
Examples
split_formula <- ~HISP + WHITE + BLACK + SEX + Num_sibs + HGC_FATHER + HGC_MOTHER
tree <- splineTree(split_formula, BMI~AGE, idvar = "ID",
data = nlsySample, degree = 1, df = 3,
intercept = TRUE, cp = 0.005)
terminalNodeSummary(tree)
[Package splinetree version 0.2.0 Index]