terminalNodeSummary function

Prints a summary of a terminal node in a tree

Prints a summary of a terminal node in a tree

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.

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)
  • Maintainer: Anna Neufeld
  • License: MIT + file LICENSE
  • Last published: 2019-07-18