Learn R Programming

⚠️There's a newer version (0.9.20) of this package.Take me there.

semtree

What is this?

An R package for estimating Structural Equation Model Trees and Forests.

Install

To install the latest semtree package directly from GitHub, copy the following line into R:

library(devtools)
devtools::install_github("semtree/brandmaier")
# even better: install with package vignette (extra documentation)
devtools::install_github("brandmaier/semtree",force=TRUE, build_opts = c())

Usage

Please see official semtree website: http://brandmaier.de/semtree

Package vignettes contain documentation on how to use the package:

browseVignettes("semtree")
``

## References

Theory and method:

Brandmaier, A. M., Driver, C., & Voelkle, M. C. (in press). Recursive partitioning in continuous time analysis. In K. van Montfort, J. Oud, & M. C. Voelkle (Eds.), Continuous time modeling in the behavioral and related sciences. New York: Springer.

Brandmaier, A. M., Prindle, J. J., McArdle, J. J., & Lindenberger, U. (2016). Theory-guided exploration with structural equation model forests. Psychological Methods, 21, 566-582. \doi{doi:10.1037/met0000090}

Brandmaier, A. M., von Oertzen, T., McArdle, J. J., & Lindenberger, U. (2014). Exploratory data mining with structural equation model trees. In J. J. McArdle & G. Ritschard (Eds.), Contemporary issues in exploratory data mining in the behavioral sciences (pp. 96-127). New York: Routledge.

Brandmaier, A. M., von Oertzen, T., McArdle, J. J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18, 71-86. \doi{doi:10.1037/a0030001}

Applied examples:

Brandmaier, A. M., Ram, N., Wagner, G. G., & Gerstorf, D. (in press). Terminal decline in well-being: The role of multi-indicator constellations of physical health and psychosocial correlates. Developmental Psychology.

Copy Link

Version

Install

install.packages('semtree')

Monthly Downloads

389

Version

0.9.14

License

GPL-3

Maintainer

Andreas M. Brandmaier andy@brandmaier.de

Last Published

January 7th, 2020

Functions in semtree (0.9.14)

parameters

SEMtrees Parameter Estimates Table
prune

Prune a SEM Tree or SEM Forest
getNumNodes

Tree Size
proximity

SEM Forest Case Proximity
getNodeById

Get Node By Id
getLeafs

Get a list of all leafs in a tree
se.semtree

SEMtrees Parameter Estimates Standard Error Table
partialDependence

Partial Dependence Plot
outliers

Find outliers based on case proximity
modelEstimates

Returns all estimates of a tree
semforest

Create a SEM Forest
semforest.control

SEM Forest Control Object
semtree

SEM Tree: Recursive Partitioning for Structural Equation Models
toTable

Tabular Representation of a SEM Tree
varimp

SEM Forest Variable Importance
lgcm

Simulated Linear Latent Growth Curve Data
isLeaf

Test whether a semtree object is a leaf.
getTerminalNodes

Returns all leafs of a tree
semtree.control

SEM Tree Control Object
semtree.constraints

SEM Tree Constraints Object
subforest

Creates subsets of trees from forests
merge

Merge two SEM forests
subtree

SEMtree Partitioning Tool
Distances

Distances
findOtherSplits

Find Other Node Split Values
biodiversity

Quantify bio diversity of a SEM Forest
evaluateDataLikelihood

Evaluate Data Likelihood
evaluate

Average Deviance of a Dataset given a Forest
getHeight

Determine Height of a Tree
diversityMatrix

Diversity Matrix
evaluateTree

Evaluate Tree -2LL
getDepth

Get the depth (or, height) a tree.