Package: galamm
Title: Generalized Additive Latent and Mixed Models
Version: 0.1.1.9000
Authors@R: c(
person(given = "Øystein",
family = "Sørensen",
role = c("aut", "cre"),
email = "oystein.sorensen@psykologi.uio.no",
comment = c(ORCID = "0000-0003-0724-3542")),
person(given = "Douglas", family = "Bates", role = "ctb"),
person(given = "Ben", family = "Bolker", role = "ctb"),
person(given = "Martin", family = "Maechler", role = "ctb"),
person(given = "Allan", family = "Leal", role = "ctb"),
person(given = "Fabian", family = "Scheipl", role = "ctb"),
person(given = "Steven", family = "Walker", role = "ctb"),
person(given = "Simon", family = "Wood", role = "ctb")
)
Description: Estimates generalized additive latent and
mixed models using maximum marginal likelihood,
as defined in Sorensen et al. (2023)
<doi:10.1007/s11336-023-09910-z>, which is an extension of Rabe-Hesketh and
Skrondal (2004)'s unifying framework for multilevel latent variable
modeling <doi:10.1007/BF02295939>. Efficient computation is done using sparse
matrix methods, Laplace approximation, and automatic differentiation. The
framework includes generalized multilevel models with heteroscedastic
residuals, mixed response types, factor loadings, smoothing splines,
crossed random effects, and combinations thereof. Syntax for model
formulation is close to 'lme4' (Bates et al. (2015)
<doi:10.18637/jss.v067.i01>) and 'PLmixed' (Rockwood and Jeon (2019)
<doi:10.1080/00273171.2018.1516541>).
License: GPL (>= 3)
URL: https://github.com/LCBC-UiO/galamm, https://lcbc-uio.github.io/galamm/
BugReports: https://github.com/LCBC-UiO/galamm/issues
Encoding: UTF-8
Imports:
lme4,
Matrix,
memoise,
methods,
mgcv,
nlme,
Rcpp,
Rdpack,
stats
Depends:
R (>= 3.5.0)
LinkingTo:
Rcpp,
RcppEigen
LazyData: true
Roxygen: list(markdown = TRUE, roclets = c ("namespace", "rd", "srr::srr_stats_roclet"))
RoxygenNote: 7.2.3
Suggests:
covr,
gamm4,
knitr,
PLmixed,
rmarkdown,
testthat (>= 3.0.0)
Config/testthat/edition: 3
VignetteBuilder: knitr, rmarkdown
RdMacros: Rdpack
NeedsCompilation: yes
SystemRequirements: C++17
Confirm each of the following by checking the box.
Date accepted: 2026-07-27
Submitting Author Name: Øystein Sørensen
Submitting Author Github Handle: @osorensen
Repository: https://github.com/LCBC-UiO/galamm
Version submitted: 0.1.1.9000
Submission type: Stats
Badge grade: gold
Editor: @noamross
Reviewers: @nicholasjclark, @dill
Archive: TBD
Version accepted: TBD
Language: en
Scope
Please indicate which of our statistical package categories this package falls under. (Please check one appropriate box below):
Statistical Packages
Pre-submission Inquiry
General Information
Who is the target audience and what are scientific applications of this package?
The target audience is applied statisticians and quantitative scientists, particularly those working on the social sciences. The package is motivated by longitudinal studies in cognitive neuroscience, but it is applicable wherever a measurement model (of factor analysis type) needs to be combined with hierarchical modeling.
Paste your responses to our General Standard G1.1 here, describing whether your software is:
This is the first implementation of the algorithm developed in Sørensen, Fjell, and Walhovd (2023).
Not applicable.
Badging
What grade of badge are you aiming for? (bronze, silver, gold)
gold
If aiming for silver or gold, describe which of the four aspects listed in the Guide for Authors chapter the package fulfils (at least one aspect for silver; three for gold)
Technical checks
Confirm each of the following by checking the box.
autotestchecks on the package, and ensured no tests fail.Running
autotestgives some errors, but they were waived in the pre-review issue.srr_stats_pre_submit()function confirms this package may be submitted.pkgcheck()function confirms this package may be submitted - alternatively, please explain reasons for any checks which your package is unable to pass.This package:
Publication options
The package is on CRAN. I am aware that rOpenSci recommends waiting with submitting to CRAN, but the package has some users already, and having pre-compiled binaries on CRAN makes it easier for them to install it, rather than having to set up a toolchain required for install from source. I hence opted to send it to CRAN.
Code of conduct