Learn R Programming

semtree (version 0.9.20)

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

619

Version

0.9.20

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas M. Brandmaier andy@brandmaier.de

Last Published

April 8th, 2024

Functions in semtree (0.9.20)

kl

Distances
biodiversity

Quantify bio diversity of a SEM Forest
getLeafs

Get a list of all leafs in a tree
getHeight

Determine Height of a Tree
partialDependence_growth

Compute partial dependence for latent growth models
coef.semtree

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

Returns all estimates of a tree
getParDiffTree

Return table with parameter differences of a tree
getParDiffForest

Return list with parameter differences of a forest
merge.semforest

Merge two SEM forests
getTerminalNodes

Returns all leafs of a tree
isLeaf

Test whether a semtree object is a leaf.
prune

Prune a SEM Tree or SEM Forest
lgcm

Simulated Linear Latent Growth Curve Data
partialDependence_data

Create dataset to compute partial dependence
semtree.constraints

SEM Tree Constraints Object
se

SEMtrees Parameter Estimates Standard Error Table
partialDependence

Compute partial dependence
semtree.control

SEM Tree Control Object
plotParDiffTree

Plot parameter differences
plotParDiffForest

Plot parameter differences
semtree

SEM Tree: Recursive Partitioning for Structural Equation Models
subforest

Creates subsets of trees from forests
strip

Retain only basic tree structure
semforest.control

SEM Forest Control Object
semtree-package

SEM Tree Package
subtree

SEMtree Partitioning Tool
parameters

SEMtrees Parameter Estimates Table
toTable

Tabular Representation of a SEM Tree
outliers

Find outliers based on case proximity
plotTreeStructure

Plot tree structure
semforest

Create a SEM Forest
varimp

SEM Forest Variable Importance
predict.semforest

Predict method for semtree and semforest
proximity

Compute proximity matrix
computePval_maxLR

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

Average Deviance of a Dataset given a Forest
fitSubmodels

Fit multigroup model for evaluating a candidate split
diversityMatrix

Diversity Matrix
evaluateDataLikelihood

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

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

Evaluate Tree -2LL
findOtherSplits

Find Other Node Split Values
getNodeById

Get Node By Id
getNumNodes

Tree Size