mvgam: Multivariate (Dynamic) Generalized Additive Models

Fit Bayesian Dynamic Generalized Additive Models to multivariate observations. Users can build nonlinear State-Space models that can incorporate semiparametric effects in observation and process components, using a wide range of observation families. Estimation is performed using Markov Chain Monte Carlo with Hamiltonian Monte Carlo in the software 'Stan'. References: Clark & Wells (2023) <doi:10.1111/2041-210X.13974>.

Version: 2.0.0
Depends: R (≥ 3.6.0), brms (≥ 2.21.0)
Imports: methods, parallel, mgcv (≥ 1.8-13), cli (≥ 3.6.0), insight (≥ 0.19.1), marginaleffects (≥ 0.16.0), Rcpp (≥ 0.12.0), rstan (≥ 2.29.0), posterior (≥ 1.0.0), loo (≥ 2.10.0), rstantools (≥ 2.1.1), bayesplot (≥ 1.5.0), ggplot2 (≥ 3.5.0), checkmate, data.table, dplyr, rlang (≥ 1.0.0), generics, tibble (≥ 3.0.0), patchwork (≥ 1.2.0)
LinkingTo: Rcpp, RcppArmadillo
Suggests: ape, bridgesampling, cmdstanr (≥ 0.8.1), future, ggarrow, ggpp, ggrepel, knitr, mice, rmarkdown, scoringRules, testthat (≥ 3.2.0), tsibble, V8, withr
Enhances: gratia (≥ 0.9.0)
Published: 2026-11-27
DOI: 10.32614/CRAN.package.mvgam
Author: Nicholas J Clark ORCID iD [aut, cre], KANK Karunarathna ORCID iD [ctb] (ARMA parameterisations and factor models), Sarah Heaps ORCID iD [ctb] (VARMA parameterisations), Scott Pease ORCID iD [ctb] (broom enhancements), Matthijs Hollanders ORCID iD [ctb] (ggplot visualizations)
Maintainer: Nicholas J Clark <nicholas.j.clark1214 at gmail.com>
BugReports: https://github.com/nicholasjclark/mvgam/issues
License: MIT + file LICENSE
URL: https://github.com/nicholasjclark/mvgam, https://nicholasjclark.github.io/mvgam/
NeedsCompilation: yes
SystemRequirements: Stan (>= 2.36.0 for simplex multi-response families `diri()`, `multi()`, `categ()`; >= 2.26.0 otherwise). Install via `cmdstanr::install_cmdstan()` or rstan from `https://mc-stan.org/r-packages/`.
Additional_repositories: https://mc-stan.org/r-packages/
Language: en-GB
Citation: mvgam citation info
Materials: README, NEWS
In views: Bayesian, Environmetrics, TimeSeries
CRAN checks: mvgam results

Documentation:

Reference manual: mvgam.html , mvgam.pdf
Vignettes: Formatting data for mvgam (source, R code)
Dynamic factor models (source, R code)
Overview of the mvgam package (source, R code)

Downloads:

Package source: mvgam_2.0.0.tar.gz
Windows binaries: r-devel: mvgam_1.1.594.zip, r-release: mvgam_1.1.594.zip, r-oldrel: mvgam_1.1.594.zip
macOS binaries: r-release (arm64): mvgam_1.1.594.tgz, r-oldrel (arm64): mvgam_1.1.594.tgz, r-release (x86_64): mvgam_2.0.0.tgz, r-oldrel (x86_64): mvgam_2.0.0.tgz
Old sources: mvgam archive

Reverse dependencies:

Reverse suggests: marginaleffects

Linking:

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