The minorbsem package in R


I’ve been working on the minorbsem package in R since the start of February. It’s my first proper attempt at an R package. The package allows you fit Bayesian SEMs while accounting for:

  1. the possibility that minor factors influence the correlation between items (Uanhoro, 2023), or
  2. adventitious error (Wu & Browne, 2015).

One can also fit meta-analytic SEMs under similar assumptions (Uanhoro, 2022).

The package is hosted on both GitHub and r-universe – r-universe is really great.

And the package website is

I plan to actively develop this package over time. Some of my future plans are in an Issue on the GitHub repo.

Also, there should be a tutorial paper in the near future on how to use the package.


Uanhoro, J. O. (2023). Modeling misspecification as a parameter in Bayesian structural equation models. Educational and Psychological Measurement. Free PDF. doi:10.1177/00131644231165306

Wu, H., & Browne, M. W. (2015). Quantifying Adventitious Error in a Covariance Structure as a Random Effect. Psychometrika, 80(3), 571–600. doi:10.1007/s11336-015-9451-3

Uanhoro, J. O. (2022). Hierarchical Covariance Estimation Approach to Meta-Analytic Structural Equation Modeling. Structural Equation Modeling: A Multidisciplinary Journal. Free PDF. doi:10.1080/10705511.2022.2142128

Comments powered by Talkyard.