To cite package ‘gam’ in publications use:

Hastie T (2025). gam: Generalized Additive Models. R package version 1.22-7, https://CRAN.R-project.org/package=gam.

Corresponding BibTeX entry:

  @Manual{,
    title = {gam: Generalized Additive Models},
    author = {Trevor Hastie},
    year = {2025},
    note = {R package version 1.22-7},
    url = {https://CRAN.R-project.org/package=gam},
  }