Skip to contents

Implements approximate Bayesian inference for Structural Equation Models (SEM) using a custom adaptation of the Integrated Nested Laplace Approximation (Rue et al., 2009) doi:10.1111/j.1467-9868.2008.00700.x as described in Jamil and Rue (2026a) doi:10.48550/arXiv.2603.25690 . Provides a computationally efficient alternative to Markov Chain Monte Carlo (MCMC) for Bayesian estimation, allowing users to fit latent variable models using the 'lavaan' syntax. See also the companion paper on implementation and workflows, Jamil and Rue (2026b) doi:10.48550/arXiv.2604.00671 .

Main features

  • acfa(): Approximate Confirmatory Factor Analysis.

  • asem(): Approximate Structural Equation Modelling.

  • agrowth(): Approximate Latent Growth Curve models.

Model specifications

Supports advanced 'lavaan' syntax features, including:

  • Equality constraints

  • Defined parameters (e.g., := operator for indirect effects)

  • Flexible prior specifications

Methods for INLAvaan objects

After fitting a model an INLAvaan object is returned. The following S4 methods are available. See INLAvaan for the class definition.

Online vignettes

The package website contains comprehensive examples covering:

  • Confirmatory Factor Analysis (CFA)

  • Structural Equation Models (SEM)

  • Latent Growth Curve Models

  • Multigroup and Invariance Testing

  • Mediation Analysis

Author

Maintainer: Haziq Jamil haziq.jamil@gmail.com (ORCID) [copyright holder]

Other contributors:

  • Håvard Rue (ORCID) (Statistical and computational methodology) [contributor]

  • Alvin Bong (Initial site build) [contributor]