Recursive Partitioning for Structural Equation Models
Overview
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.
- In semtree control object, the option 'use.maxlm' was renamed to 'use.maxlr' for clarity because it refers to the maxLR statistic as proposed by Arnold et al. (2021)
- bug fixes in score function: ensured symmetric labeling in the S matrix — this prevents issues with S_deriv creation; corrected labeling in the M matrix to allow proper subsetting and avoid duplicated mean labels; contributed by Moritz John
- removed
naive.bonferroni.correctioninsemtree.controlobject. This used to be an option to choose how the number of test was computed. This is now always the number of variables. Bonferroni correction is now also numerically more stable - moved code for Bonferroni correction outside the stopping rule code.
- new vignettes to demonstrate parallel processing and Bonferroni correction
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: semtree/man/proximity.Rd (.Dim: 1) '.Dim' should be changed to 'dim'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-20
- ERROR12 OK, 1 ERROR2026-05-19
Show 2 earlier changesHide 2 earlier changes
- OK12 OK2026-04-25
- ERROR12 OK, 1 NOTE, 1 ERROR2026-03-10
Documentation
- Help pages
- 46includes a package overview page
- Examples that run
- 67%2 run in a plain check · 1 never run
- Exported functions with examples
- 9%
- Documented parameters
- 100%
- Return-value docs
- 37%
- Help pages citing references
- 59%
Also includes 9 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 122
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/brandmaier/semtree on 2026-10-18.
The R CMD check workflow runs on Linux and Windows, and on R-devel
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Codexfirst seen 2025-07-03Pull request it wrote: opened by a project member
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.9.23Latest
- 0.9.22
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.9.20
- 0.9.192023-11-26 · diff ↗ ·
added 6 exports
getParDiffForest, getParDiffTree, plotParDiffForest, plotParDiffTree, plotTreeStructure, semforest_score_control - RR 4.3.0 released · 2023-04-21
- 0.9.18
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-07-30
- 0.9.172021-07-30 · diff ↗
- archivedRemoved from CRAN2021-06-28check problems were not corrected in time
- 0.9.162021-06-11 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.9.152021-04-29 · diff ↗ ·
removed 4 exports
evaluate, klsym, nodeFunSemtree, partialDependencePlotadded 3 exports
fitSubmodels, kl, modelEstimates
Show 11 earlier eventsHide 11 earlier events
- RR 4.0.0 released · 2020-04-24
- 0.9.14
- RR 3.6.0 released · 2019-04-26
- 0.9.132018-11-05 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.9.12
- 0.9.11
- RR 3.4.0 released · 2017-04-21
- 0.9.10
- 0.9.92016-12-16
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-12-16
- Total releases
- 14 / 10 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 15 KB / 1 file
- Download size
- 435 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("semtree")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.