getHeight: Determine Height of a Tree

View source: R/getHeight.R

getHeightR Documentation

Determine Height of a Tree

Description

Returns height of a SEM Tree, which equals to the length of the longest path from root to a terminal node.

Usage

getHeight(tree)

Arguments

tree

A SEM tree.

Author(s)

Andreas M. Brandmaier, John J. Prindle

References

Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.


semtree documentation built on Nov. 26, 2023, 5:07 p.m.