gllvmTMB: Generalised Linear Latent Variable Models

Fits multivariate generalised linear latent variable models using either long-format data or a wide data frame. Models support several response distributions and trait covariance structures, and can estimate correlations, shared latent axes, and trait-specific variances. Binary presence-absence data can be used for joint species distribution analyses. Optional animal, phylogenetic, spatial, and kernel covariance components are available. Estimation uses 'Template Model Builder'. Spatial effects can use sparse Gaussian Markov random field constructions. This 0.7.1 release remains experimental: evidence for estimates is model- and regime-specific. Broad interval coverage is not certified; a 0.94 coverage floor is documented only for one two-sided Gaussian total-variance profile setting.

Version: 0.7.1
Depends: R (≥ 4.1.0)
Imports: assertthat, cli, fmesher, generics, graphics, lifecycle, Matrix, methods, rlang, stats, tidyselect, TMB (≥ 1.8.0), utils
LinkingTo: BH, RcppEigen, TMB
Suggests: ape, DHARMa, detectseparation (≥ 0.4.0), dplyr, future, future.apply, ggforce, ggplot2, galamm, glmmTMB, gllvm, JuliaCall, jsonlite, knitr, lme4, MASS, MCMCglmm, mgcv, mirt, mvtnorm, nadiv, rmarkdown, sf, testthat (≥ 3.0.0), tibble, tidyr, tweedie, vegan, vdiffr, withr
Published: 2026-10-28
DOI: 10.32614/CRAN.package.gllvmTMB (may not be active yet)
Author: Shinichi Nakagawa ORCID iD [aut, cre, cph]
Maintainer: Shinichi Nakagawa <itchyshin at gmail.com>
BugReports: https://github.com/itchyshin/gllvmTMB/issues
License: GPL-3
Copyright: inst/COPYRIGHTS
gllvmTMB copyright details
URL: https://itchyshin.github.io/gllvmTMB/, https://github.com/itchyshin/gllvmTMB
NeedsCompilation: yes
SystemRequirements: GNU make, C++17
Language: en-GB
Citation: gllvmTMB citation info
Materials: README, NEWS
CRAN checks: gllvmTMB results

Documentation:

Reference manual: gllvmTMB.html , gllvmTMB.pdf
Vignettes: Get started with gllvmTMB (source, R code)

Downloads:

Package source: gllvmTMB_0.7.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=gllvmTMB to link to this page.