getDepth: Get the depth (or, height) a tree.

getDepthR Documentation

Get the depth (or, height) a tree.

Description

Returns the length of the longest path from a root node to a leaf node.

Usage

getDepth(tree)

Arguments

tree

A semtree object

Author(s)

Andreas M. Brandmaier

References

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


brandmaier/semtree documentation built on June 11, 2025, 2:52 a.m.