Learn R Programming

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

semtree (version 0.9.16)

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

394

Version

0.9.16

License

GPL-3

Maintainer

Andreas M. Brandmaier andy@brandmaier.de

Last Published

June 11th, 2021

Functions in semtree (0.9.16)

getHeight

Determine Height of a Tree
outliers

Find outliers based on case proximity
subtree

SEMtree Partitioning Tool
proximity

SEM Forest Case Proximity
evaluateTree

Evaluate Tree -2LL
fitSubmodels

Fit multigroup model for evaluating a candidate split
findOtherSplits

Find Other Node Split Values
merge.semforest

Merge two SEM forests
partialDependence

Partial Dependence Plot
biodiversity

Quantify bio diversity of a SEM Forest
kl

Distances
prune

Prune a SEM Tree or SEM Forest
se

SEMtrees Parameter Estimates Standard Error Table
getDepth

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

Returns all estimates of a tree
lgcm

Simulated Linear Latent Growth Curve Data
varimp

SEM Forest Variable Importance
computePval_maxLR

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

Average Deviance of a Dataset given a Forest
diversityMatrix

Diversity Matrix
semtree.constraints

SEM Tree Constraints Object
parameters

SEMtrees Parameter Estimates Table
semtree

SEM Tree: Recursive Partitioning for Structural Equation Models
evaluateDataLikelihood

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

Creates subsets of trees from forests
getLeafs

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

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

Returns all leafs of a tree
isLeaf

Test whether a semtree object is a leaf.
semtree.control

SEM Tree Control Object
semforest.control

SEM Forest Control Object
semforest

Create a SEM Forest
getNodeById

Get Node By Id
getNumNodes

Tree Size
toTable

Tabular Representation of a SEM Tree