Skip to content

modsem

1.0.21

Latent Interaction (and Moderation) Analysis in Structural Equation Models (SEM)

2packages depend
11.8Kdownloads / year
0.1%test coverage
13/13checks pass

Overview

About
Maintained by Kjell Solem SlupphaugFirst published 2024-03-2326 releasesCRAN page ↗GitHub ↗

Estimation of interaction (i.e., moderation) effects between latent variables in structural equation models (SEM). The supported methods are: The constrained approach (Algina & Moulder, 2001). The unconstrained approach (Marsh et al., 2004). The residual centering approach (Little et al., 2006). The double centering approach (Lin et al., 2010). The latent moderated structural equations (LMS) approach (Klein & Moosbrugger, 2000). The quasi-maximum likelihood (QML) approach (Klein & Muthén, 2007) The constrained- unconstrained, residual- and double centering- approaches are estimated via 'lavaan' (Rosseel, 2012), whilst the LMS- and QML- approaches are estimated via 'modsem' it self. Alternatively model can be estimated via 'Mplus' (Muthén & Muthén, 1998-2017). References: Algina, J., & Moulder, B. C. (2001). doi:10.1207/S15328007SEM0801_3. "A note on estimating the Jöreskog-Yang model for latent variable interaction using 'LISREL' 8.3." Klein, A., & Moosbrugger, H. (2000). doi:10.1007/BF02296338. "Maximum likelihood estimation of latent interaction effects with the LMS method." Klein, A. G., & Muthén, B. O. (2007). doi:10.1080/00273170701710205. "Quasi-maximum likelihood estimation of structural equation models with multiple interaction and quadratic effects." Lin, G. C., Wen, Z., Marsh, H. W., & Lin, H. S. (2010). doi:10.1080/10705511.2010.488999. "Structural equation models of latent interactions: Clarification of orthogonalizing and double-mean-centering strategies." Little, T. D., Bovaird, J. A., & Widaman, K. F. (2006). doi:10.1207/s15328007sem1304_1. "On the merits of orthogonalizing powered and product terms: Implications for modeling interactions among latent variables." Marsh, H. W., Wen, Z., & Hau, K. T. (2004). doi:10.1037/1082-989X.9.3.275. "Structural equation models of latent interactions: evaluation of alternative estimation strategies and indicator construction." Muthén, L.K. and Muthén, B.O. (1998-2017). "'Mplus' User’s Guide. Eighth Edition." https://www.statmodel.com/. Rosseel Y (2012). doi:10.18637/jss.v048.i02. "'lavaan': An R Package for Structural Equation Modeling."

Install

Health

CRAN checks
13OK
Slowest check: 9.7 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.55
0.1%
Coverage · measured lines
100%
Documentation · exports
21
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 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-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 337 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
74%
Documented parameters
100%
Return-value docs
75%
References docs
2%

Downloads

11.8K
CRAN downloads in the past year
Rank #3,354 · ~32/day · ~981/mo
Daily download trend is not available in this view yet.
85730 days
3.2K90 days
11.8K1 year
Compare downloads with other packages →
Also on586 r2u16 autocran

Repository

Repository
9Stars
6Forks
1Open issues
1Open PRs
13Releases
1,255Commits
8Contributors
interaction-effectinteraction-effectslavaan-syntaxrrlangrlanguagesemstructural-equation-modeling
1,255 commits · Last activity 2026-08-16 · 0% stars, 30d

Stars over time

2025-07-28 · 72026-07-07 · 9

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/kss2k/modsem on 2026-08-16.

Continuous integration (1)
GitHub Actions
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (2)
Contributor · added in 1.0.4
Contributor · added in 1.0.4
Package Timeline

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

  • 1.0.21Latest
    2026-07-03 · current release · diff ↗
  • 1.0.20
    2026-06-01 · diff ↗
  • 1.0.19
    2026-04-30 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.18
    2026-03-28 · diff ↗
  • 1.0.17
    2026-02-24 · diff ↗
  • 1.0.16
    2026-01-23 · diff ↗
  • 1.0.15
    2025-12-22 · diff ↗
  • 1.0.14
    2025-11-18 · diff ↗
  • 1.0.13
    2025-10-07 · diff ↗
  • 1.0.12
    2025-08-27 · diff ↗
  • 1.0.11
    2025-07-22 · diff ↗
  • 1.0.10
    2025-06-13 · diff ↗
  • 1.0.9
    2025-06-11 · diff ↗
  • 1.0.8
    2025-04-30 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
Show 14 earlier events
  • 1.0.7
    2025-03-27 · diff ↗
  • 1.0.6
    2025-01-20 · diff ↗
  • 1.0.5
    2024-12-16 · diff ↗
  • 1.0.4
    2024-11-15 · diff ↗
  • 1.0.3
    2024-09-23 · diff ↗
  • 1.0.2
    2024-08-17 · diff ↗
  • 1.0.1
    2024-07-07 · diff ↗
  • 0.1.4
    2024-06-02 · diff ↗
  • 0.1.3
    2024-05-27 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2
    2024-04-17 · diff ↗
  • 0.1.1
    2024-04-15 · diff ↗
  • 0.1.0
    2024-03-23
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-03-23
Total releases
26 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
865 KB / 6 files
Download size
2.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("modsem")
Solem Slupphaug, K., Mehmetoglu, M., & Mittner, M. (2026). modsem: Latent Interaction (and Moderation) Analysis in Structural Equation Models (SEM) (Version 1.0.21) [Computer software]. https://doi.org/10.32614/CRAN.package.modsem

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 modsem version 1.0.21 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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