Department of Psychology, Center for Lifespan Changes in Brain and Cognition, University of Oslo, Oslo, Norway.
Multivariate Behav Res. 2024 Sep-Oct;59(5):1098-1105. doi: 10.1080/00273171.2024.2385336. Epub 2024 Aug 14.
We present the R package galamm, whose goal is to provide common ground between structural equation modeling and mixed effect models. It supports estimation of models with an arbitrary number of crossed or nested random effects, smoothing splines, mixed response types, factor structures, heteroscedastic residuals, and data missing at random. Implementation using sparse matrix methods and automatic differentiation ensures computational efficiency. We here briefly present the implemented methodology, give an overview of the package and an example demonstrating its use.
我们介绍了 galamm 包,它的目标是在结构方程模型和混合效应模型之间提供共同的基础。它支持估计具有任意数量交叉或嵌套随机效应、平滑样条、混合响应类型、因子结构、异方差残差和随机缺失数据的模型。使用稀疏矩阵方法和自动微分的实现确保了计算效率。我们在这里简要介绍了实现的方法,概述了该包,并提供了一个示例来说明其使用。