Package: semtree 0.9.20

Andreas M. Brandmaier

semtree: Recursive Partitioning for Structural Equation Models

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) <doi:10.1037/a0030001> and Arnold, Voelkle, & Brandmaier (2020) <doi:10.3389/fpsyg.2020.564403>.

Authors:Andreas M. Brandmaier [aut, cre], John J. Prindle [aut], Manuel Arnold [aut], Caspar J. Van Lissa [aut]

semtree_0.9.20.tar.gz
semtree_0.9.20.zip(r-4.5)semtree_0.9.20.zip(r-4.4)semtree_0.9.20.zip(r-4.3)
semtree_0.9.20.tgz(r-4.4-any)semtree_0.9.20.tgz(r-4.3-any)
semtree_0.9.20.tar.gz(r-4.5-noble)semtree_0.9.20.tar.gz(r-4.4-noble)
semtree_0.9.20.tgz(r-4.4-emscripten)semtree_0.9.20.tgz(r-4.3-emscripten)
semtree.pdf |semtree.html
semtree/json (API)
NEWS

# Install 'semtree' in R:
install.packages('semtree', repos = c('https://lifebrain.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/brandmaier/semtree/issues

Datasets:
  • lgcm - Simulated Linear Latent Growth Curve Data

On CRAN:

bigdatadecision-treeforestmultivariaterandomforestrecursive-partitioningsemstatistical-modelingstructural-equation-modelingstructural-equation-models

40 exports 13 stars 2.75 score 67 dependencies 4 mentions 61 scripts 490 downloads

Last updated 3 days agofrom:985740e217. Checks:OK: 1 WARNING: 6. Indexed: no.

TargetResultDate
Doc / VignettesOKSep 05 2024
R-4.5-winWARNINGSep 05 2024
R-4.5-linuxWARNINGSep 05 2024
R-4.4-winWARNINGSep 05 2024
R-4.4-macWARNINGSep 05 2024
R-4.3-winWARNINGSep 05 2024
R-4.3-macWARNINGSep 05 2024

Exports:biodiversityborutadiversityMatrixevaluateTreefitSubmodelsgetDepthgetLeafsgetNodeByIdgetParDiffForestgetParDiffTreegetTerminalNodeshellingerisLeafklmodelEstimatesoutliersparameterspartialDependencepartialDependence_datapartialDependence_growthplotParDiffForestplotParDiffTreeplotTreeStructureproximityprunesesemforestsemforest_controlsemforest_score_controlsemforest.controlsemtreesemtree_controlsemtree.constraintssemtree.controlstripsubforestsubtreetoTablevarimpvarimpConvergencePlot

Dependencies:BHcliclisymbolsclustercodetoolscolorspacecpp11crayondata.tabledigestdplyrexpmfansifarverfuturefuture.applygenericsggplot2globalsgluegridBasegtableisobandlabelinglatticelavaanlifecyclelistenvmagrittrMASSMatrixmgcvmnormtmunsellmvtnormnlmenumDerivOpenMxparallellypbivnormpillarpkgconfigpurrrquadprogR6RColorBrewerRcppRcppEigenRcppParallelrlangrpartrpart.plotrpfsandwichscalesStanHeadersstringistringrstrucchangetibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Constraints in semtree

Rendered fromconstraints.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2023-11-24
Started: 2019-09-17

Focus parameters in SEM forests

Rendered fromsemforest-focus.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2023-11-24
Started: 2020-04-23

Getting Started with the semtree package

Rendered fromgetting-started.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2023-11-23
Started: 2019-09-12

SEM Trees with score-based tests

Rendered fromscore-based-tests.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2023-11-24
Started: 2020-04-17

SEM Forests

Rendered fromforests.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2024-03-26
Started: 2020-11-05

Readme and manuals

Help Manual

Help pageTopics
SEM Tree Packagesemtree-package .SCALE_METRIC
Quantify bio diversity of a SEM Forestbiodiversity
BORUTA algorithm for SEM treesboruta
Return the parameter estimates of a given leaf of a SEM treecoef.semtree
Wrapper function for computing the maxLR corrected p value from strucchangecomputePval_maxLR
Diversity MatrixdiversityMatrix
Average Deviance of a Dataset given a Forestevaluate evaluate.semforest
Compute the Negative Two-Loglikelihood of some data given a model (either OpenMx or lavaan)evaluateDataLikelihood
Evaluate Tree -2LLevaluateTree
Find Other Node Split ValuesfindOtherSplits
Fit multigroup model for evaluating a candidate splitfitSubmodels
Get the depth (or, height) a tree.getDepth
Determine Height of a TreegetHeight
Get a list of all leafs in a treegetLeafs
Get Node By IdgetNodeById
Tree SizegetNumNodes
Return list with parameter differences of a forestgetParDiffForest
Return table with parameter differences of a treegetParDiffTree
Returns all leafs of a treegetTerminalNodes
Test whether a semtree object is a leaf.isLeaf
Distanceshellinger kl klsym
Simulated Linear Latent Growth Curve Datalgcm
Merge two SEM forestsmerge.semforest
Returns all estimates of a treemodelEstimates
Find outliers based on case proximityoutliers
SEMtrees Parameter Estimates Tableparameters
Compute partial dependencepartialDependence
Create dataset to compute partial dependencepartialDependence_data
Compute partial dependence for latent growth modelspartialDependence_growth
Plot parameter differencesplotParDiffForest
Plot parameter differencesplotParDiffTree
Plot tree structureplotTreeStructure
Predict method for semtree and semforestpredict.semforest
Compute proximity matrixproximity
Prune a SEM Tree or SEM Forestprune prune.semforest prune.semtree
SEMtrees Parameter Estimates Standard Error Tablese
Create a SEM Forestplot.semforest print.semforest semforest
SEM Forest Control Objectprint.semforest.control semforest.control semforest_control semforest_score_control
SEM Tree: Recursive Partitioning for Structural Equation ModelsnodeFunSemtree plot.semtree print.semtree semtree summary.semtree toLatex.semtree
SEM Tree Constraints Objectsemtree.constraints
SEM Tree Control Objectprint.semtree.control semtree.control semtree_control
Retain only basic tree structurestrip
Creates subsets of trees from forestssubforest
SEMtree Partitioning Toolsubtree
Tabular Representation of a SEM TreetoTable
SEM Forest Variable Importanceplot.semforest.varimp print.semforest.varimp varimp varimpConvergencePlot