Skip to content

semtree

0.9.23

Recursive Partitioning for Structural Equation Models

0packages depend
6.7Kdownloads / year
33.3%test coverage
8/13checks pass

Overview

About
Maintained by Andreas M. BrandmaierFirst published 2016-12-1614 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 27.3 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.21
33.3%
Coverage · measured lines
100%
Documentation · exports
18
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-20
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-19
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-10
    12 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
67%
Documented parameters
100%
Return-value docs
37%
References docs
59%

Downloads

6.7K
CRAN downloads in the past year
Rank #8,034 · ~18/day · ~562/mo
Daily download trend is not available in this view yet.
36730 days
1.3K90 days
6.7K1 year
Compare downloads with other packages →
Also on128 r2u30 autocran82 c2d4u

Repository

Repository
21Stars
13Forks
18Open issues
1Open PRs
6Releases
525Commits
10Contributors
forestrandomforestdecision-treemultivariatesemstatistical-modelingstructural-equation-modelingstructural-equation-models
License GPL-3.0 · 525 commits · Last activity 2026-03-26 · 0% stars, 30d

Stars over time

2025-07-10 · 192026-07-07 · 21

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/brandmaier/semtree on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)
Depends (2)
R >= 2.10OpenMx
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 14,453 (84%)Rd 1,809 (10%)Vignettes 1,041 (6%)
Code characteristics
Object systems
S335
Cyclomatic complexity
3.0 median / 106 max
Test cases
57 / 0.21 per code line

Test coverage

Line coverage

33%

Expression

35.5%

Tests / Examples

33.3% / 1% ex

Functions

229 39 exported

Complexity

5.7 avg / 106 max

Call network

229 nodes / 244 edges

Loading call graph…

Lowest coverage

229 functions
FunctionCycloCoverage
biodiversity exp30%
boruta exp140%
diversityMatrix exp70%
getLeafs exp30%
getParDiffForest exp40%
getParDiffTree exp70%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
lgcmdata.frame400 × 8

People & History

People (5)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Author · added in 0.9.18
Author · added in 0.9.14
Contributors (1)
Contributor · added in 0.9.23
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.23Latest
    2025-11-26 · current release · diff ↗
  • 0.9.22
    2025-07-28 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.20
    2024-04-08 · diff ↗
  • 0.9.19
    2023-11-26 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9.18
    2022-05-13 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.9.17
    2021-07-30 · diff ↗
  • unarchivedReturned to CRAN
    2021-07-30
  • archivedRemoved from CRAN
    2021-06-28
    check problems were not corrected in time
  • 0.9.16
    2021-06-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.9.15
    2021-04-29 · diff ↗
Show 11 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9.14
    2020-01-07 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9.13
    2018-11-05 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.9.12
    2018-02-13 · diff ↗
  • 0.9.11
    2017-12-14 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.9.10
    2017-04-05 · diff ↗
  • 0.9.9
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →