spaMM: Mixed-Effect Models, with or without Spatial Random Effects

Inference based on models with or without spatially-correlated random effects, multivariate responses, or non-Gaussian random effects (e.g., Beta). Variation in residual variance (heteroscedasticity) can itself be represented by a mixed-effect model. Both classical geostatistical models (Rousset and Ferdy 2014 <doi:10.1111/ecog.00566>), and Markov random field models on irregular grids (as considered in the 'INLA' package, <>), can be fitted, with distinct computational procedures exploiting the sparse matrix representations for the latter case and other autoregressive models. Laplace approximations are used for likelihood or restricted likelihood. Penalized quasi-likelihood and other variants discussed in the h-likelihood literature (Lee and Nelder 2001 <doi:10.1093/biomet/88.4.987>) are also implemented.

Version: 4.5.0
Depends: R (≥ 3.5.0)
Imports: methods, stats, graphics, Matrix, MASS, proxy, Rcpp (≥ 0.12.10), nlme, nloptr, minqa, pbapply, crayon, gmp (≥ 0.6.0), ROI, boot, geometry (≥ 0.4.0), numDeriv, backports
LinkingTo: Rcpp, RcppEigen (≥
Suggests: maps, testthat, rcdd, foreach, future, future.apply, RANN, Infusion (≥ 1.3.0), IsoriX (≥ 0.8.1), blackbox (≥ 1.1.25), RSpectra, ROI.plugin.glpk, lme4, rsae, multilevel, agridat
Enhances: multcomp, RLRsim, lmerTest
Published: 2024-06-09
DOI: 10.32614/CRAN.package.spaMM
Author: François Rousset ORCID iD [aut, cre, cph], Jean-Baptiste Ferdy [aut, cph], Alexandre Courtiol ORCID iD [aut]
Maintainer: François Rousset <francois.rousset at>
License: CeCILL-2
NeedsCompilation: yes
SystemRequirements: GNU Scientific Library (GSL)
Citation: spaMM citation info
Materials: NEWS
In views: MixedModels, Spatial
CRAN checks: spaMM results


Reference manual: spaMM.pdf


Package source: spaMM_4.5.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): spaMM_4.5.0.tgz, r-oldrel (arm64): spaMM_4.5.0.tgz, r-release (x86_64): spaMM_4.5.0.tgz, r-oldrel (x86_64): spaMM_4.5.0.tgz
Old sources: spaMM archive

Reverse dependencies:

Reverse imports: blackbox, Infusion, IsoriX, NCC
Reverse suggests: DHARMa


Please use the canonical form to link to this page.