Get a list of all leafs in a tree by recursively searching the tree starting
at the given node (if not data object is given. If data is
given, the function returns the leafs that are predicted for each row of the
given data.
Usage
getLeafs(tree, data = NULL)
Arguments
tree
A semtree object
data
A data.frame
Author
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.