mgcv: Mixed GAM Computation Vehicle with Automatic Smoothness
Estimation
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.
Version:
1.9-4
Priority:
recommended
Depends:
R (≥ 4.4.0),
nlme (≥ 3.1-64)
Imports:
methods, stats, graphics,
Matrix, splines, utils
Published:
2025年11月07日
Author:
Simon Wood [aut, cre]
Maintainer:
Simon Wood <simon.wood at r-project.org>
NeedsCompilation:
yes
Documentation:
Downloads:
Reverse dependencies:
Reverse depends:
additive,
aplms,
AuxSurvey,
bamlss,
bgeva,
cenGAM,
coenoflex,
CONCUR,
denseFLMM,
dsm,
eHOF,
fda.usc,
FlexGAM,
frailtyMMpen,
gaga,
gam.hp,
gamlss.add,
gamm4,
gammSlice,
gKRLS,
hmmTMB,
ibr,
ismev,
itsadug,
KnowBR,
labdsv,
mgcViz,
MJMbamlss,
mombf,
multipleNCC,
multiridge,
NIRStat,
ordPens,
PanJen,
personalized,
qgam,
R2BayesX,
semsfa,
sparseFLMM,
sspm,
stgam,
structree,
sva,
tpSVG,
TSVC,
TTS,
tvem,
vagam
Reverse imports:
analogue,
AnchorRegression,
anipaths,
APCtools,
AQEval,
archeoViz,
aspline,
ATbounds,
autoFRK,
autogam,
bayesdfa,
baytrends,
BioPred,
blase,
blocs,
BNSP,
brms,
BSTFA,
buildmer,
caffsim,
cAIC4,
calm,
car,
casebase,
casper,
causaldrf,
causalreg,
CellTrails,
cfbfastR,
cfda,
cgaim,
chipenrich,
CICI,
CIMTx,
circularEV,
CKLRT,
clustra,
cohetsurr,
cohorttools,
collin,
collinear,
colordistance,
ComBatFamQC,
condiments,
CondIndTests,
cpam,
crosslag,
curvir,
cvmaPLFAM,
dampack,
deepregression,
demography,
dendRoAnalyst,
disbayes,
discSurv,
dlim,
dlmtree,
dlnm,
dsims,
dsp,
ecoCopula,
ecorisk,
ecostats,
ef,
ega,
elastes,
emon,
enmpa,
enmSdmX,
Epi,
evgam,
ez,
face,
fastFMM,
FDboost,
fic,
flexmsm,
flexOR,
FLightR,
fPASS,
fRegression,
funcharts,
funreg,
funspace,
FWDselect,
galamm,
gamCopula,
gamlss.ggplots,
gamRR,
gapclosing,
GeneralisedCovarianceMeasure,
geoGAM,
ggiraphExtra,
GJRM,
gllvm,
glmmTMB,
gmfamm,
goeveg,
goseq,
GPFDA,
gplsim,
grafify,
gratia,
groc,
Haplin,
hdtg,
HiCcompare,
HLMdiag,
hyper.gam,
IADT,
insurancerating,
interflex,
invacost,
iRegression,
iSEE,
iTensor,
itsdm,
IVDML,
JWileymisc,
KarsTS,
ks,
LaMa,
landsat,
LFApp,
LMERConvenienceFunctions,
lmviz,
loa,
localIV,
logistf,
longsurr,
lspartition,
lumi,
MBHdesign,
MBSGS,
MECfda,
metabCombiner,
metagam,
methylKit,
mevr,
mfaces,
MFPCA,
mgwrsar,
MHCtools,
MHTrajectoryR,
micemd,
MicrobTiSDA,
mirt,
ModelMap,
modelSelection,
morphomap,
mrds,
MRFcov,
MRTAnalysis,
mudfold,
multifamm,
MUVR2,
MvBinary,
mvgam,
mxfda,
NADA2,
NBAMSeq,
NCC,
networkGen,
nfl4th,
nflfastR,
nlraa,
npregfast,
oddsratio,
oddstream,
openair,
openairmaps,
optimalThreshold,
oRaklE,
ordgam,
pagoda2,
palaeoSig,
pammtools,
particles,
pcvr,
penfa,
phenoTest,
plsmselect,
pmcalibration,
PolicyPortfolios,
poptrend,
ppgam,
precmed,
presmTP,
projpred,
psme,
psychonetrics,
PupillometryR,
pwSEM,
qfa,
Qindex,
QRM,
r2glmm,
randnet,
RAPTOR,
rbiom,
RcmdrPlugin.HH,
recolorize,
refitME,
refreg,
refund,
registr,
reldist,
rioja,
rlme,
RLRsim,
roseRF,
RPPASPACE,
rstpm2,
rTG,
rticulate,
scam,
scClassify,
scde,
SCdeconR,
scDesign3,
scITD,
sdmTMB,
sdPrior,
secr,
SEERaBomb,
SEMgraph,
SensMap,
seqICP,
serosv,
simml,
simPH,
simsl,
sisal,
sjSDM,
skedastic,
slp,
smurf,
soilhypfit,
SOMNiBUS,
spatstat.model,
spconf,
spotr,
srp,
SSDM,
starsExtra,
StatDA,
stopp,
tableeasy,
TAG,
tf,
tidygam,
tidyvpc,
tinyVAST,
Toothnroll,
tourr,
trace,
trackeRapp,
tradeSeq,
tramME,
trendtestR,
tripEstimation,
TSA,
TSAR,
TSCAN,
tsDyn,
TSrepr,
tukeytrend,
tvcure,
Unico,
VarSelLCM,
vegan,
veloviz,
vglmer,
virtualPollen,
vital,
voi,
voxel,
VWPre,
weightedGCM,
WhiteStripe,
wqtrends,
WVPlots,
xwf,
zetadiv
Reverse suggests:
adaptMT,
agridat,
ale,
AlleleShift,
animint2,
auditor,
BCEA,
bestNormalize,
BiodiversityR,
biomod2,
broom,
broom.helpers,
broom.mixed,
butcher,
CalibrationCurves,
caret,
caretEnsemble,
cassowaryr,
catdata,
circhelp,
clarify,
CMA,
CompareCausalNetworks,
condvis2,
ContourFunctions,
countSTAR,
ctmcmove,
cutpointr,
DAAG,
dataquieR,
dbw,
densitr,
detrendr,
DHARMa,
DPQ,
DynNom,
earth,
easyViz,
EcoEnsemble,
EcoIndR,
effectsize,
emmeans,
ENMTools,
fdapace,
flexmix,
flextable,
flowml,
ForeCA,
freqparcoord,
gamair,
gamclass,
gcplyr,
GeneralizedUmatrix,
ggeffects,
ggplot2,
ggvis,
granova,
heemod,
HRW,
HSAUR2,
HSAUR3,
influential,
inlabru,
insight,
IRon,
latticeExtra,
lazyData,
LinRegInteractive,
lme4,
lmls,
longRPart2,
loon,
macleish,
Mapinguari,
marginaleffects,
MatchIt,
mcmcsae,
mediation,
metamicrobiomeR,
mlt.docreg,
modelbased,
modelsummary,
mpae,
multidplyr,
MuMIn,
munsellinterpol,
myTAI,
pacu,
parameters,
parsnip,
PatientLevelPrediction,
performance,
plotluck,
pminternal,
polle,
probably,
ProjectionBasedClustering,
pscl,
quantregGrowth,
rassta,
Rcmdr,
RegCalReliab,
regionReport,
remap,
riskRegression,
RnBeads,
rpanel,
rstanarm,
RXshrink,
sageR,
scar,
see,
SentimentAnalysis,
sfislands,
shapr,
simex,
SimplyAgree,
simstudy,
sits,
slingshot,
spatialEco,
spatialFDA,
spatialrisk,
spatialwarnings,
splineplot,
statlingua,
Surrogate,
tailor,
targeted,
tidysdm,
tinycodet,
treedater,
tune,
vetiver,
VGAM,
VIM,
vinereg,
weights,
weird,
xcms
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=mgcv
to link to this page.