Skip to content

mgcv

Mixed GAM Computation Vehicle with Automatic Smoothness Estimation

v1.9-4 · Nov 7, 2025 · GPL (>= 2)

Description

Generalized additive (mixed) models, some of their extensions and other generalized ridge regression with multiple smoothing parameter estimation by (Restricted) Marginal Likelihood, Cross Validation and similar, or using iterated nested Laplace approximation for fully Bayesian inference. See Wood (2025) <doi:10.1146/annurev-statistics-112723-034249> for an overview. Includes a gam() function, a wide variety of smoothers, 'JAGS' support and distributions beyond the exponential family.

Downloads

86.1K

Last 30 days

383rd

304.9K

Last 90 days

1.7M

Last year

Trend: -19.8% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    R      3.0Mb
    libs   1.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    R      3.0Mb
    libs   2.3Mb

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    R      3.0Mb
    libs   1.7Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    R      3.0Mb
    libs   2.3Mb

Reverse Dependencies (463)

imports

APCtools AQEval ATbounds AnchorRegression BNSP BSTFA BioPred CICI CIMTx CKLRT ComBatFamQC CondIndTests Desimml EcoNiche Epi FDboost FLightR FWDselect GJRM GPFDA HLMdiag Haplin IADT IVDML JWileymisc KarsTS LFApp LMERConvenienceFunctions LaMa MBHdesign MBSGS MECfda MFPCA MHCtools MHTrajectoryR MRFcov MRTAnalysis MUVR2 MicrobTiSDA ModelMap MultiSpline MvBinary NADA2 NCC PolicyPortfolios PupilPre PupillometryR QRM Qindex RAPTOR RFAE RLRsim RPPASPACE RcmdrPlugin.HH SCdeconR SEERaBomb SEMgraph SPACO SSDM SensMap StatDA TSA TSrepr Toothnroll TwoDiRef Unico VWPre VarSelLCM ViroReportR WVPlots WhiteStripe achieveGap analogue anipaths archeoViz aspline autoFRK autogam baker bayesdfa baytrends blocs brms buildmer cAIC4 caffsim car casebase causaldrf causalreg cfbfastR cfda cgaim climatehealth clustra cohetsurr cohorttools collin collinear colordistance cpam crosslag ctmva curvir cvmaPLFAM dampack demography dendRoAnalyst disbayes discSurv dlim dlmtree dlnm dsims dsp ecoCopula ecorisk ecostats ef ega elastes emon enmSdmX enmpa evgam ez fPASS fRegression face fastFMM fic flexmsm funcharts funreg funspace galamm gamCopula gamRR geoGAM ggiraphExtra gllvm glmmTMB gmfamm goeveg gplsim grafify gratia groc growthTrendR hdtg iRegression iTensor insurancerating interflex invacost itsdm jmSurface ks kuenm2 landsat lavDiag lmviz loa localIV logistf longsurr lspartition metagam mevr mfaces mgwrsar micemd mirt modelSelection morphomap mrangr mrds mudfold multifamm mvabund mvgam mxfda nadir nfl4th nflfastR nlraa npregfast oRaklE oddsratio oddstream openair optimalThreshold ordgam outrigger pagoda2 palaeoSig pammtools particles pcvr penfa pep725 plsmselect pmcalibration poissonsuperlearner poptrend ppgam precmed presmTP projpred psme psre psychonetrics pwSEM qfa r2glmm rTG randnet rbiom recolorize refitME refreg refund refundBayes registr reldist rioja rlme roseRF rstpm2 rticulate scITD scam sdPrior sdmTMB secr seqICP serosv simPH simml simsl sisal sjSDM skedastic smurf soilhypfit spatstat.model spconf splinemixmeta spotr srp starsExtra statuser stopp tableeasy tf tidyILD tidygam tidyvpc tinyVAST tourr trace trackeRapp tramME trendtestR tripEstimation tsDyn tukeytrend tvcure vegan vglmer virtualPollen vital voi weightedGCM wqtrends xwf zetadiv

Dependency Network

Dependencies Reverse dependencies nlme Matrix AuxSurvey CONCUR FlexGAM KnowBR MJMbamlss NIRStat PanJen R2BayesX TSVC TTS additive aplms bamlss bgeva cenGAM +448 more reverse deps mgcv

Version History

new 1.9-4 Mar 10, 2026
updated 1.9-4 ← 1.9-3 diff Nov 6, 2025
updated 1.9-3 ← 1.9-2 diff Apr 3, 2025
updated 1.9-2 ← 1.9-1 diff Apr 1, 2025
updated 1.9-1 ← 1.9-0 diff Dec 20, 2023
updated 1.9-0 ← 1.8-42 diff Jul 10, 2023
updated 1.8-42 ← 1.8-41 diff Mar 1, 2023
updated 1.8-41 ← 1.8-40 diff Oct 20, 2022
updated 1.8-40 ← 1.8-39 diff Mar 28, 2022
updated 1.8-39 ← 1.8-38 diff Feb 23, 2022
updated 1.8-38 ← 1.8-37 diff Oct 5, 2021
updated 1.8-37 ← 1.8-36 diff Sep 22, 2021
updated 1.8-36 ← 1.8-35 diff May 31, 2021
updated 1.8-35 ← 1.8-34 diff Apr 17, 2021
updated 1.8-34 ← 1.8-33 diff Feb 15, 2021
updated 1.8-33 ← 1.8-32 diff Aug 26, 2020
updated 1.8-32 ← 1.8-31 diff Aug 18, 2020
updated 1.8-31 ← 1.8-30 diff Nov 8, 2019
updated 1.8-30 ← 1.8-29 diff Oct 23, 2019
updated 1.8-29 ← 1.8-28 diff Sep 19, 2019