https://github.com/brandmaier/semtree

Recursive Partitioning for Structural Equation Models

https://github.com/brandmaier/semtree

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    4 of 8 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.4%) to scientific vocabulary

Keywords

bigdata cran decision-tree forest multivariate r randomforest recursive-partitioning sem statistical-modeling structural-equation-modeling structural-equation-models

Keywords from Contributors

literate-programming open-science
Last synced: 5 months ago · JSON representation

Repository

Recursive Partitioning for Structural Equation Models

Basic Info
Statistics
  • Stars: 20
  • Watchers: 3
  • Forks: 13
  • Open Issues: 27
  • Releases: 6
Topics
bigdata cran decision-tree forest multivariate r randomforest recursive-partitioning sem statistical-modeling structural-equation-modeling structural-equation-models
Created about 9 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
title: "Read Me"
output: md_document
---

semtree
======

```{r echo=FALSE}
knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE
)
```

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1116294.svg)](https://doi.org/10.5281/zenodo.1116294)
[![cran version](http://www.r-pkg.org/badges/version/semtree)](https://cran.r-project.org/package=semtree)
[![rstudio mirror downloads](http://cranlogs.r-pkg.org/badges/semtree)](https://github.com/r-hub/cranlogs.app)
[![R-CMD-check](https://github.com/brandmaier/semtree/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/brandmaier/semtree/actions/workflows/R-CMD-check.yaml)
![Code size](https://img.shields.io/github/languages/code-size/brandmaier/semtree.svg)
![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/semtree)

![contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)


## What is this?

An R package for estimating Structural Equation Model (SEM) Trees and Forests. They are a fusion of SEM and decision trees, or SEM and random forests respectively. While SEM is a confirmatory modeling technique, SEM trees and forests allow to explore whether there are predictors that provide further information about an initial, theory-based model. Potential use cases are the search for potential predictors that explain individual differences, finding omitted variables in a model, or exploring measurement invariance over a large set of predictors. A recent overview is in our latest book chapter in the SEM handbook (Brandmaier & Jacobucci, 2023). 

## Install

Install the latest stable version from CRAN:
```{r eval=FALSE}
install.packages("semtree")
```

To install the latest semtree package directly from GitHub, copy the following line into R:
```{r, eval=FALSE}
library(devtools)
devtools::install_github("brandmaier/semtree")

# even better: install with package vignette (extra documentation)
devtools::install_github("brandmaier/semtree",force=TRUE, build_opts = c())
```

## Usage

Package documentation and use-cases with runnable R code can be found on our github pages: [https://brandmaier.github.io/semtree/](https://brandmaier.github.io/semtree/).

Package vignettes (shipped with the package) contain documentation on how to use the package. Simply type this in R once you have loaded the package:

```{r eval=FALSE}
browseVignettes("semtree")
```

## References

Theory and method:

- Brandmaier, A. M., & Jacobucci, R. C. (2023). Machine-learning approaches to structural equation modeling. In R. H. Hoyle (Ed.), Handbook of structural equation modeling (2nd rev. ed., pp. 722–739). Guilford Press.

- Arnold, M., Voelkle, M.C., and Brandmaier, A.M. (2021). Score-guided structural equation model trees. _Frontiers in psychology_, 11, 564403.

- Brandmaier, A. M., Driver, C., & Voelkle, M. C. (2019). Recursive partitioning in continuous time analysis. In K. van Montfort, J. Oud, & M. C. Voelkle (Eds.), Continuous time modeling in the behavioral and related sciences. New York: Springer.

- Brandmaier, A. M., Prindle, J. J., McArdle, J. J., & Lindenberger, U. (2016). Theory-guided exploration with structural equation model forests. _Psychological Methods_, 21, 566-582. \doi{doi:10.1037/met0000090}

- Brandmaier, A. M., von Oertzen, T., McArdle, J. J., & Lindenberger, U. (2014). Exploratory data mining with structural equation model trees. In J. J. McArdle & G. Ritschard (Eds.), Contemporary issues in exploratory data mining in the behavioral sciences (pp. 96-127). New York: Routledge.

- Brandmaier, A. M., von Oertzen, T., McArdle, J. J., & Lindenberger, U. (2013). Structural equation model trees. _Psychological Methods_, 18, 71-86. \doi{doi:10.1037/a0030001}

Applied examples (there are many more):

Brandmaier, A. M., Ram, N., Wagner, G. G., & Gerstorf, D. (2017). Terminal decline in well-being: The role of multi-indicator constellations of physical health and psychosocial correlates. Developmental Psychology.

Owner

  • Name: Andreas Brandmaier
  • Login: brandmaier
  • Kind: user
  • Location: Berlin

Professor of Research Methods. Senior Research Scientist. Computer & Data Scientist in Lifespan Psychology.

GitHub Events

Total
  • Issues event: 3
  • Watch event: 6
  • Issue comment event: 6
  • Push event: 9
  • Pull request event: 3
  • Fork event: 2
  • Create event: 1
Last Year
  • Issues event: 3
  • Watch event: 6
  • Issue comment event: 6
  • Push event: 9
  • Pull request event: 3
  • Fork event: 2
  • Create event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 391
  • Total Committers: 8
  • Avg Commits per committer: 48.875
  • Development Distribution Score (DDS): 0.228
Past Year
  • Commits: 15
  • Committers: 2
  • Avg Commits per committer: 7.5
  • Development Distribution Score (DDS): 0.067
Top Committers
Name Email Commits
Brandmaier b****r@m****e 302
Manuel Arnold a****z@h****e 69
cjvanlissa c****a@u****l 13
manuelarnold2 m****1@g****m 2
Andreas Brandmaier y****e@e****m 2
cjvanlissa c****a@t****u 1
Yihui Xie x****e@y****e 1
Michael Krause k****e@m****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 44
  • Total pull requests: 36
  • Average time to close issues: 7 months
  • Average time to close pull requests: 16 days
  • Total issue authors: 10
  • Total pull request authors: 7
  • Average comments per issue: 1.25
  • Average comments per pull request: 0.61
  • Merged pull requests: 33
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 8
  • Average time to close issues: 2 months
  • Average time to close pull requests: 11 days
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.75
  • Average comments per pull request: 0.75
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • brandmaier (28)
  • manuelarnold (4)
  • cjvanlissa (4)
  • knimon1 (2)
  • emstruong (2)
  • jhorzek (1)
  • cicadawing (1)
  • HenrikBengtsson (1)
  • thomasdkrause (1)
  • PFernandez-Cancer (1)
Pull Request Authors
  • brandmaier (17)
  • manuelarnold (16)
  • cjvanlissa (5)
  • a-moritz-john (2)
  • octomike (1)
  • yihui (1)
  • manuelarnold2 (1)
Top Labels
Issue Labels
enhancement (3) bug (3) Documentation (1)
Pull Request Labels
codex (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 634 last-month
  • Total docker downloads: 43,390
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 13
  • Total maintainers: 1
cran.r-project.org: semtree

Recursive Partitioning for Structural Equation Models

  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 634 Last month
  • Docker Downloads: 43,390
Rankings
Docker downloads count: 0.6%
Forks count: 6.8%
Stargazers count: 15.1%
Average: 15.3%
Downloads: 16.6%
Dependent repos count: 23.8%
Dependent packages count: 28.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • OpenMx >= 2.6.9 depends
  • R >= 2.10 depends
  • bitops * imports
  • clisymbols * imports
  • cluster * imports
  • crayon * imports
  • ctsemOMX * imports
  • data.table * imports
  • digest * imports
  • expm * imports
  • future.apply * imports
  • ggplot2 * imports
  • gridBase * imports
  • lavaan * imports
  • methods * imports
  • plotrix * imports
  • rpart * imports
  • rpart.plot >= 3.0.6 imports
  • sandwich * imports
  • sets * imports
  • stringr * imports
  • strucchange * imports
  • tidyr * imports
  • zoo * imports
  • MASS * suggests
  • knitr * suggests
  • psychTools * suggests
  • rmarkdown * suggests
  • testthat * suggests
  • viridis * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite