Learn R Programming

⚠️There's a newer version (1.22-7) of this package.Take me there.

gam (version 0.97)

Generalized Additive Models

Description

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).

Copy Link

Version

Install

install.packages('gam')

Monthly Downloads

28,423

Version

0.97

License

GPL2.0

Maintainer

Trevor Hastie

Last Published

December 10th, 2025

Functions in gam (0.97)

s

Specify a Smoothing Spline Fit in a GAM Formula
step.gam

Stepwise model builder for GAM
kyphosis

A classic example dataset for GAMs
gam.data

Simulated dataset for gam
lo

Specify a loess fit in a GAM formula
gam.control

Auxilliary for controlling GAM fitting
gam

Fitting Generalized Additive Models
predict.gam

Predict method for GAM fits
plot.gam

Plot Components of a GAM Object
gam.exact

A method for gam producing asymptotically exact standard errors for linear estimates
gam-internal

Service functions and as yet undocumented functions for the gam library
na.gam.replace

Missing Data Filter for GAMs
anova.gam

Analysis of Deviance for a Generalized Additive Model