Software

Open-source tools for structural equation modeling and latent variable analysis.

Projects

Python SEM Latent Variables NumPyro

semla

A Python package for structural equation modeling and latent variable analysis using lavaan-style model syntax. Confirmatory factor analysis, path models, and growth curve models with Bayesian estimation via NumPyro — bringing the expressiveness of R's lavaan to the Python ecosystem.

code GitHub construction In Development
from semla import Model

# Define a CFA model with lavaan syntax
model = Model("""
    visual  =~ x1 + x2 + x3
    textual =~ x4 + x5 + x6
    speed   =~ x7 + x8 + x9
""")

# ML or Bayesian estimation (NumPyro/NUTS)
result = model.fit(data, estimator="bayes")
result.summary()