Skip to content

semtree

0.9.23Package record

Recursive Partitioning for Structural Equation Models

0packages depend
6.4Kdownloads / year
33.3%test coverage
8/13flavors OK

Overview

About

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.

Changes in 0.9.23
  • 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.correction in semtree.control object. 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

CRAN checks
5NOTE8OK
Check messages
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'.

CRAN check page ↗

Slowest check: 25.2 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.9.23
README· In the repository, left out of the releaseVignettesYes · 7 · dynamicNEWSYes · 100% structured · mentions 0.9.23Citation fileNo
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

6.4K
CRAN downloads in the past year
Rank #5,319 · ~18/day · ~534/mo
Daily download trend is not available in this view yet.
66830 days
1.5K90 days
6.4K1 year
Compare downloads with other packages →
Also on122 r2u3 autocran146 c2d4u

Repository

21Stars
13Forks
19Open issues
0Open PRs
6Releases
538Commits
10Commit identities
forestrandomforestdecision-treemultivariatesemstatistical-modelingstructural-equation-modelingstructural-equation-models
License file reads as GPL-3.0 · 538 commits · Last activity 2026-10-11 · 0% stars, 30d · Default branch at 0.10.0, ahead of CRAN 0.9.23 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-08-15 · 202026-07-07 · 21
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux and Windows, and on R-devel

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-11

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
Makefile
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Codexfirst seen 2025-07-03
    Pull request it wrote: opened by a project member
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

Installing semtree adds 57 packages (31 with compiled code, 67 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (2)
R >= 2.10OpenMx
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (5)
Author, Maintainer since 0.9.9 (2016)
Author · added in 0.9.18
Author · added in 0.9.14
Contributor · added in 0.9.23
Releases (14)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.23Latest
    record
    2025-11-26 · current release · diff ↗
  • 0.9.22
    record
    2025-07-28 · diff ↗ ·
    added 2 exports
    boruta, semtree_control
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.20
    record
    2024-04-08 · diff ↗ ·
    added 1 export
    semforest_control
  • 0.9.19
    record
    2023-11-26 · diff ↗ ·
    added 6 exports
    getParDiffForest, getParDiffTree, plotParDiffForest, plotParDiffTree, plotTreeStructure, semforest_score_control
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9.18
    record
    2022-05-13 · diff ↗ ·
    added 3 exports
    partialDependence_data, partialDependence_growth, strip
  • R
    R 4.2.0 released · 2022-04-22
  • unarchivedReturned to CRAN
    2021-07-30
  • 0.9.17
    record
    2021-07-30 · diff ↗
  • archivedRemoved from CRAN
    2021-06-28
    check problems were not corrected in time
  • 0.9.16
    record
    2021-06-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.9.15
    record
    2021-04-29 · diff ↗ ·
    removed 4 exports
    evaluate, klsym, nodeFunSemtree, partialDependencePlot
    added 3 exports
    fitSubmodels, kl, modelEstimates
Show 11 earlier eventsHide 11 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9.14
    record
    2020-01-07 · diff ↗ ·
    added 3 exports
    getLeafs, isLeaf, getDepth
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9.13
    record
    2018-11-05 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.9.12
    record
    2018-02-13 · diff ↗ ·
    added 2 exports
    evaluate, biodiversity
  • 0.9.11
    record
    2017-12-14 · diff ↗ ·
    removed 1 export
    toLatex
    added 3 exports
    diversityMatrix, hellinger, klsym
  • R
    R 3.4.0 released · 2017-04-21
  • 0.9.10
    record
    2017-04-05 · diff ↗ ·
    added 1 export
    partialDependence
  • 0.9.9
    record
    2016-12-16
  • R
    R 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")
Andreas M. Brandmaier, Caspar J. Van Lissa, John J. Prindle, Manuel Arnold, & Moritz John. (2025). semtree: Recursive Partitioning for Structural Equation Models (Version 0.9.23) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for semtree version 0.9.23 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy