Bayesian structural equation modelling (BSEM) offers many advantages such as principled uncertainty quantification, small-sample regularisation, and flexible model specification. However, the Markov chain Monte Carlo (MCMC) methods on which it relies are computationally prohibitive for the iterative cycle of specification, criticism, and refinement that careful psychometric practice demands. We present INLAvaan, an R package for fast, approximate Bayesian SEM built around the Integrated Nested Laplace Approximation (INLA) framework for structural equation models developed by Jamil & Rue (2026, arXiv:2603.25690 [stat.ME]). This paper serves as a companion manuscript that describes the architectural decisions and computational strategies underlying the package. Two substantive applications -- a 256-parameter bifactor circumplex model and a multilevel mediation model with full-information missing-data handling -- demonstrate the approach on specifications where MCMC would require hours of run time and careful convergence work. In constrast, INLAvaan delivers calibrated posterior summaries in seconds.
翻译:贝叶斯结构方程模型(BSEM)具有众多优势,例如原理性的不确定性量化、小样本正则化以及灵活的模型设定。然而,其所依赖的马尔可夫链蒙特卡洛(MCMC)方法在计算上成本高昂,难以支撑严谨心理测量实践中所需的设定、评估与优化的迭代循环。本文介绍INLAvaan,这是一个R语言软件包,用于快速、近似的贝叶斯结构方程模型,其构建基础是由Jamil与Rue(2026,arXiv:2603.25690 [stat.ME])开发的基于集成嵌套拉普拉斯近似(INLA)框架的结构方程模型。本文作为配套手稿,描述了该软件包背后的架构决策与计算策略。两个实际应用案例——一个256参数的双因子环形模型和一个具有全信息缺失数据处理的多水平中介模型——展示了该方法在MCMC需要数小时运行时间且需仔细收敛性检查的设定下的表现。相比之下,INLAvaan能在数秒内提供校准后的后验汇总结果。