Description Usage Arguments Examples
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.
1 | terminalNodeSummary(tree, node = NULL)
|
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. |
1 2 3 4 5 6 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.