Packages

Find and install SEMinR for R, Python, and JavaScript/TypeScript.

SEMinR began as an R package and has since been ported to other languages. Every port aims for numerical parity with the R base: results are validated against R-generated fixtures on the bundled mobi / ECSI dataset, and the public API mirrors SEMinR’s familiar names.

Please note: The Python and JavaScript/TypeScript ports are experimental for now. The R package remains the authoritative implementation; we recommend validating results against it before relying on a port for published work.

Pick the version that fits your workflow:

SEMinR for R

The original and authoritative implementation. Estimates PLS-SEM (including PLSc), covariance-based SEM, and CFA, with bootstrapping, PLSpredict, PLS-MGA, interactions, and higher-order constructs.

Install the released version from CRAN:

install.packages("seminr")

Or install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("sem-in-r/seminr")

Then load it:

SEMinR for Python

A Python port with numerical parity to the R package (1e-5 for PLS quantities; tiered tolerances for CBSEM). Requires Python 3.11+; runtime dependencies are NumPy and SciPy only.

Experimental. This port is still maturing — validate results against the R package before relying on it for published work.

Install from PyPI:

pip install seminr

Optional pandas support (DataFrame input and .to_dataframe()):

pip install "seminr[pandas]"

SEMinR for JavaScript & TypeScript

A zero-dependency, runtime-agnostic (Bun, Node, Deno, browser) port for running SEM analyses in a modern scripting runtime or embedding estimation in a product. It installs and runs as plain JavaScript, and — being written in TypeScript — ships first-class type declarations for TypeScript projects.

Experimental. seminr-ts is in early development (0.x) — validate results against the R package before relying on it for published work.

Install from npm:

npm install @seminr/core

Credits

The R logo is © 2016 The R Foundation, used under CC BY-SA 4.0. “Python” and the Python logos are trademarks of the Python Software Foundation; “TypeScript” and its logo are trademarks of Microsoft. These marks are used here only to indicate language support.