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

CRAN

78.9K

Last 30 days

392nd

248.7K

Last 90 days

1.3M

Last year

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

r2u CRAN

3K

Last 30 days

8.6K

Last 90 days

50.4K

Last year

Trend: +6.4% (30d vs prior 30d)

autoCRAN

1.5K

Last 7 days

5.7K

Last 30 days

9.6K

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
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 History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/Rtmp5CWRy0/file16aedac6820fc/ziplss.R': No space left on device
Error in file(out, "wt") : cannot open the connection
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
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 (495)

imports

APCtools AQEval ATbounds AnchorRegression BNSP BSTFA BioIndex BioPred CICI CIMTx CKLRT CatPredi ComBatFamQC 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 RMSTpowerBoost RPPASPACE RcmdrPlugin.HH SEERaBomb SEMgraph SPACO SSDM SensMap SmoothPLS StatDA SurvSPro TAG TSA TSrepr Toothnroll TwoDiRef UKBAnalytica Unico VDPO VWPre VarSelLCM ViroReportR WVPlots WhiteStripe achieveGap adjoin analogue anipaths archeoViz aspline autoFRK autogam baker bayesdfa baytrends betaStability blocs brms buildmer cAIC4 caffsim car casebase causaldrf causalreg cfbfastR cfda cgaim circularEV 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 elcf4R emon enmSdmX enmpa evgam ez fPASS fRegression face fahb fastFGEE fastFMM fdclassify fic flexmsm funcharts funcml funreg funspace galamm gamCopula gamRR gamutil gapclosing geoGAM ggiraphExtra ggvfields gllvm glmmTMB gmfamm goeveg gplsim grafify gratia groc growthTrendR hdtg hyper.gam iRegression iTensor insurancerating interflex invacost janusplot jmSurface ks kuenm2 landsat 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 roseRF rstpm2 rticulate scITD scam sdPrior sdmTMB secr serosv simPH simml simsl sisal sjSDM skedastic smimodel smurf soilhypfit spatstat.model spconf splinemixmeta spotr 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

suggests

AIBias AlleleShift BCEA BiodiversityR CalibrationCurves CompareCausalNetworks ContourFunctions DAAG DHARMa DPQ DynNom ENMTools EcoEnsemble EmpiricalDynamics ForeCA GeneralizedUmatrix GeneralizedUmatrixGPU HRW HSAUR2 HSAUR3 IRon LinRegInteractive Mapinguari MatchIt MuMIn PatientLevelPrediction PenCoxFrail ProjectionBasedClustering Rcmdr RegCalReliab SCoRES SentimentAnalysis SimplyAgree SuperSurv Surrogate TemporalModelR VGAM VIM ZeBook agridat ale amorem animint2 apsimx assessor auditor bases bestNormalize biomod2 broom broom.helpers broom.mixed butcher caret caretEnsemble cassowaryr catdata circhelp civic.icarm clarify condvis2 countSTAR csemGT ctmcmove curves cutpointr dataquieR dbw densitr detrendr earth easyViz ebrahim.gof effectsize emmeans fdapace flexmix flextable freqparcoord futurize gamair gamclass gcplyr ggcube ggdibbler ggeffects ggkodom ggplot2 ggvis gp3tools granova halfmoon hbsaems heemod icarm influential inlabru insight kerasnip latticeExtra lazyData lme4 lmls longRPart2 loon macleish marginaleffects mcmcsae mediation mlt.docreg modelbased modelsummary mpae multidplyr munsellinterpol mvtweedie myTAI openairmaps pacu parameters parsnip performance plotluck pminternal polle probably propensity pscl quantregGrowth rassta remap riskRegression rpanel rstanarm rtemis sageR scar see sfislands shapr simex simstudy sits spatialEco spatialrisk spatialwarnings splineplot statlingua tailor targeted tidyfun tidysdm tinycodet tram treedater tune vetiver vinereg weights weird

Dependency Network

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

Version History

172 tracked
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