Learn R Programming

semtree (version 0.9.23)

Recursive Partitioning for Structural Equation Models

Description

SEM Trees and SEM Forests -- an extension of model-based decision trees and forests to Structural Equation Models (SEM). SEM trees hierarchically split empirical data into homogeneous groups each sharing similar data patterns with respect to a SEM by recursively selecting optimal predictors of these differences. SEM forests are an extension of SEM trees. They are ensembles of SEM trees each built on a random sample of the original data. By aggregating over a forest, we obtain measures of variable importance that are more robust than measures from single trees. A description of the method was published by Brandmaier, von Oertzen, McArdle, & Lindenberger (2013) and Arnold, Voelkle, & Brandmaier (2020) .

Copy Link

Version

Install

install.packages('semtree')

Monthly Downloads

594

Version

0.9.23

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas M. Brandmaier andy@brandmaier.de

Last Published

November 26th, 2025

Functions in semtree (0.9.23)

partialDependence_data

Create dataset to compute partial dependence
lgcm

Simulated Linear Latent Growth Curve Data
getDepth

Get the depth (or, height) a tree.
partialDependence

Compute partial dependence
getLeafs

Get a list of all leafs in a tree
predict.semforest

Predict method for semtree and semforest
toTable

Tabular Representation of a SEM Tree
parameters

SEMtrees Parameter Estimates Table
plotTreeStructure

Plot tree structure
varimp

SEM Forest Variable Importance
getNodeById

Get Node By Id
semtree

SEM Tree: Recursive Partitioning for Structural Equation Models
merge.semforest

Merge two SEM forests
semtree.constraints

SEM Tree Constraints Object
getHeight

Determine Height of a Tree
modelEstimates

Returns all estimates of a tree
semforest.control

SEM Forest Control Object
proximity

Compute proximity matrix
semtree-package

SEM Tree Package
prune

Prune a SEM Tree or SEM Forest
partialDependence_growth

Compute partial dependence for latent growth models
outliers

Find outliers based on case proximity
se

SEMtrees Parameter Estimates Standard Error Table
semtree.control

SEM Tree Control Object
strip

Retain only basic tree structure
semforest

Create a SEM Forest
subforest

Creates subsets of trees from forests
subtree

SEMtree Partitioning Tool
findOtherSplits

Find Other Node Split Values
diversityMatrix

Diversity Matrix
fitSubmodels

Fit multigroup model for evaluating a candidate split
evaluateDataLikelihood

Compute the Negative Two-Loglikelihood of some data given a model (either OpenMx or lavaan)
boruta

Run the Boruta algorithm on a sem tree
computePval_maxLR

Wrapper function for computing the maxLR corrected p value from strucchange
evaluate

Average Deviance of a Dataset given a Forest
evaluateTree

Evaluate Tree -2LL
coef.semtree

Return the parameter estimates of a given leaf of a SEM tree
getParDiffForest

Return list with parameter differences of a forest
getNumNodes

Tree Size
isLeaf

Test whether a semtree object is a leaf.
kl

Distances
biodiversity

Quantify bio diversity of a SEM Forest
getTerminalNodes

Returns all leafs of a tree
getParDiffTree

Return table with parameter differences of a tree
plotParDiffForest

Plot parameter differences
plotParDiffTree

Plot parameter differences