Skip to content

Generalized Additive Models

24packages dependsuggested by 33
435.9Kdownloads / year
45.3%test coverage
13/13flavors OK

Overview

About

Functions for fitting and working with generalized additive models, as described in chapter 7 of "Statistical Models in S" (Chambers and Hastie (eds), 1991), and "Generalized Additive Models" (Hastie and Tibshirani, 1990).

Install

Health

CRAN checks
13OK
Slowest check: 2.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.22-7
READMEYes · 4 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
17 (1 internal)includes a package overview page
Examples that run
86%12 run in a plain check · 2 never run
Exported functions with examples
93%
Documented parameters
95%
Return-value docs
86%
Help pages citing references
76%

Downloads

435.9K
CRAN downloads in the past year
Rank #572 · ~1.2K/day · ~36.3K/mo
Daily download trend is not available in this view yet.
44.3K30 days
114.7K90 days
435.9K1 year
Compare downloads with other packages →
Also on15K r2u150 autocran14.1K conda_forge727 bioconda197 c2d4u

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing gam adds 2 packages (0 with compiled code, 381 KB of source tarballs). Heaviest: iterators 293 KB, foreach 88 KB.

Depends (4)
R >= 4.0statssplinesforeach
Imports (1)
methods
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none

Datasets

People & History

People (2)
Author, Maintainer since 0.9 (2004)
Contributor · added in 1.22-5
Releases (37)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.22-7Latest
    record
    2025-12-10 · current release · diff ↗
  • 1.22-6
    record
    2025-08-22 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.22-5
    record
    2024-09-13 · diff ↗
  • 1.22-4
    record
    2024-07-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.22-3
    record
    2023-11-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.22-2
    record
    2023-03-28 · diff ↗
  • 1.22-1
    record
    2023-01-28 · diff ↗
  • 1.22
    record
    2022-11-08 · diff ↗ ·
    removed 1 export
    gplot.default
    added 7 exports
    anova.Gam, labels.Gam, plot.preplot.Gam, preplot.Gam, print.Gam, print.Gamex, print.summary.Gam
  • 1.20.2
    record
    2022-07-04 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.20.1
    record
    2022-03-14 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
Show 52 earlier eventsHide 52 earlier events
  • 1.20
    record
    2020-07-05 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.16.1
    record
    2019-07-03 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.16
    record
    2018-07-20 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.15
    record
    2018-02-25 · diff ↗ ·
    removed 7 exports
    anova.gamlist, gamlist, newdata.predict.gam, plot.gam, predict.gam, step.gam, summary.gam
    added 7 exports
    anova.Gamlist, Gamlist, newdata.predict.Gam, plot.Gam, predict.Gam, step.Gam, summary.Gam
  • 1.14-4
    record
    2017-04-25 · diff ↗
  • 1.14-3
    record
    2017-04-21 · diff ↗ ·
    removed 2 exports
    gam.slist, gam.wlist
    added 2 exports
    gam.smooth.list, gam.smoothers
  • R
    R 3.4.0 released · 2017-04-21
  • 1.14
    record
    2016-09-10 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.12
    record
    2015-05-13 · diff ↗ ·
    removed 4 exports
    all.wam, deviance.default, deviance.glm, deviance.lm
    added 1 export
    general.wam
  • R
    R 3.2.0 released · 2015-04-16
  • 1.09.1
    record
    2014-04-10 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.09
    record
    2013-08-13 · diff ↗
  • 1.08
    record
    2013-04-24 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • R
    R 2.15.0 released · 2012-03-30
  • 1.06.2
    record
    2011-12-06 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 1.04.1
    record
    2011-05-16 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 1.04
    record
    2011-01-03 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 1.03
    record
    2010-05-01 · diff ↗
  • 1.02
    record
    2010-04-25 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 1.01
    record
    2009-10-21 · diff ↗ ·
    added 1 export
    plot.gam
  • 1.0.1
    record
    2009-09-12 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • R
    R 2.8.0 released · 2008-10-20
  • 1.0
    record
    2008-05-29 · diff ↗ ·
    added 40 exports
    all.wam, anova.gamlist, as.anova, as.data.frame.lo.smooth, assign.list, deviance.default, deviance.glm, deviance.lm, gam, gam.control, gam.exact, gam.fit, gamlist, gam.lo, gam.match, gam.nlchisq, gam.random, gam.s, gam.scope, gam.slist, gam.sp, gam.wlist, gplot, gplot.default, gplot.factor, gplot.list, gplot.matrix, gplot.numeric, lo, lo.wam and 10 more
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • 0.98
    record
    2006-12-27 · diff ↗
  • R
    R 2.4.0 released · 2006-10-03
  • 0.97
    record
    2006-07-12 · diff ↗
  • 0.96
    record
    2006-04-27 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • 0.95
    record
    2006-04-19 · diff ↗
  • R
    R 2.2.0 released · 2005-10-06
  • 0.94
    record
    2005-06-04 · diff ↗
  • R
    R 2.1.0 released · 2005-04-18
  • 0.93
    record
    2005-03-28 · diff ↗
  • 0.92
    record
    2004-12-27 · diff ↗
  • R
    R 2.0.0 released · 2004-10-04
  • 0.9
    record
    2004-08-11
  • R
    R 1.9.0 released · 2004-04-12

Package metadata

First published
2004-08-11
Total releases
37 / 22 yrs
License
GPL-2 OSI
Minimum R
≥ 4.0
Bundled data
5.0 KB / 3 files
Download size
198 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("gam")
Hastie, T., & Narasimhan, B. (2025). gam: Generalized Additive Models (Version 1.22-7) [Computer software]. https://doi.org/10.32614/CRAN.package.gam

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gam version 1.22-7 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy