Mixed-Effect Models, with or without Spatial Random Effects
Overview
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, https://www.r-inla.org), 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.
BROKEN LINKS
- The gitlab server that hosted the reference page for the package has been closed and replaced.
FUTURE COMPATIBILITY ISSUES
- C++ code adjusted to be compatible with future use of Eigen 5.0.1 by RcppEigen package.
NEW FEATURES
- More efficient (and presumably less buggy) 'confint' method for multinomial-logit fits.
- New argument 'keep_fixed' of fixef() extractor method for objects returned by spaMM fitting functions.
FIXED BUGS
- Fits could fail if a precision matrix was provided for a corrMatrix term, as a result of changes in the previous version.
- Bug that made the Levenberg-Marquardt-like algorithm occasionally converge less fast.
- Spurious warnings that could occur in DHGLMs, as a result of changes in the previous version.
From inst/NEWS.Rd in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-18
Show 13 earlier changesHide 13 earlier changes
- WARNING12 OK, 1 WARNING2026-07-16
- OK13 OK2026-07-04
- WARNING12 OK, 1 WARNING2026-07-03
- OK13 OK2026-06-19
- WARNING12 OK, 1 WARNING2026-06-17
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 2 NOTE, 1 WARNING, 1 ERROR2026-04-18
- WARNING11 OK, 2 NOTE, 1 WARNING2026-04-16
- NOTE11 OK, 3 NOTE2026-04-10
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-09
- WARNING6 OK, 7 NOTE, 1 WARNING2026-03-21
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 125 (3 internal)includes a package overview page
- Examples that run
- 79%88 run in a plain check (3 of them under a condition) · 16 never run · 8 hold no code
- Exported functions with examples
- 67%
- Documented parameters
- 83%
- Return-value docs
- 67%
- Help pages citing references
- 44%
Downloads
Repository
- gitlab.mbb.univ-montp2.fr/francois/spamm-ref · last recorded on 2026-10-08
Checks run against gitlab.in2p3.fr/francois.rousset/spamm-ref on 2026-10-21.
No development-tooling practices detected in the upstream repository.
Dependencies
Installing spaMM adds 24 packages (14 with compiled code, 11 MB of source tarballs). Heaviest: nloptr 2.1 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 4.7.17Latest2026-10-09 · current release · diff ↗ ··
removed 1 export
.evalWrapperlisted once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-09 00:53 UTC, so it stayed less than the time between readings. - 4.7.02026-09-09 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 4.6.65
- 4.6.12025-06-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 4.5.02024-06-10 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 4.4.162023-12-20 · diff ↗
- 4.4.02023-08-30 · diff ↗
- 4.3.202023-07-06 · diff ↗
- 4.3.02023-05-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 4.2.1
- 4.1.202022-12-12 · diff ↗
- 4.1.02022-11-18 · diff ↗
Show 61 earlier eventsHide 61 earlier events
- 4.0.0
- 3.13.02022-09-05 · diff ↗
- 3.12.02022-06-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.11.142022-04-10 · diff ↗
- 3.11.32022-03-23 · diff ↗
- 3.10.02022-02-07 · diff ↗
- 3.9.252021-11-09 · diff ↗
- 3.9.132021-10-02 · diff ↗
- 3.9.02021-09-13 · diff ↗
- 3.8.23
- 3.8.92021-06-28 · diff ↗
- 3.8.02021-06-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 3.7.342021-04-07 · diff ↗
- 3.7.22021-02-26 · diff ↗
- 3.6.02021-01-15 · diff ↗
- 3.5.02020-10-03 · diff ↗
- 3.4.12020-08-11 · diff ↗
- 3.3.02020-05-30 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 3.2.02020-04-20 · diff ↗
- 3.1.272020-03-10 · diff ↗
- 3.1.2
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.32014-01-16 · diff ↗
- 3.0.0
- 2.7.12019-04-14 · diff ↗
- 2.6.12019-01-14 · diff ↗
- 2.6.02019-01-10 · diff ↗
- 2.5.112018-11-19 · diff ↗
- 2.5.02018-09-28 · diff ↗ ·
removed 3 exports
.Cholwrap, .noOffset, .nobarsMMadded 6 exports
.wrap_Ltri_t_chol, .stripOffset, .stripRanefs, .HLfit_body_augZXy, .solve_IRLS_as_ZX, .solve_IRLS_as_spprec - 2.4.352018-05-19 · diff ↗
- 2.4.82018-04-14 · diff ↗
- 2.4.02018-04-05 · diff ↗ ·
added 12 exports
.noOffset, .nobarsMM, .modify_list, coef, corMatrix, Initialize, Variogram, coef<-, corFactor, getCovariate, logDet, recalc - 2.3.02018-01-18 · diff ↗ ·
removed 1 export
.getProcessedadded 3 exports
.evalWrapper, .NB_shapeFn, .NB_shapeInv - 2.2.02017-10-03 · diff ↗ ·
added 13 exports
.getProcessed, .Cholwrap, .calc_CARdispGammaGLM, .calc_dispGammaGLM, .ZWZt, .dispFn, .dispInv, .nuFn, .nuInv, .rhoFn, .rhoInv, .crossprod, .tcrossprod - 2.1.62017-07-07 · diff ↗
- 2.1.02017-05-26 · diff ↗
- 2.0.02017-04-07 · diff ↗
- 1.10.02016-09-05 · diff ↗
- 1.9.162016-07-22 · diff ↗
- 1.9.0.12016-07-10 · diff ↗
- 1.9.02016-05-24 · diff ↗
- 1.8.02016-04-08 · diff ↗
- 1.7.22016-01-26 · diff ↗
- 1.7.12016-01-21 · diff ↗
- 1.6.22015-11-01 · diff ↗
- 1.5.12015-02-23 · diff ↗
- 1.4.12014-11-09 · diff ↗
- 1.4.0
- 1.3.02014-09-10 · diff ↗
- 1.2.02014-06-25 · diff ↗
- 1.12014-01-17 · diff ↗
- 1.02013-12-15
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2013-12-15
- Total releases
- 63 / 13 yrs
- License
- CeCILL-2
- Minimum R
- ≥ 3.5.0
- Bundled data
- 470 KB / 18 files
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("spaMM")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/ecog.00566.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.