This package provides functions for generalised additive models (GAMs) and other generalized ridge regression problems with multiple smoothing parameter selection by GCV or UBRE. It includes an implementation (not a clone) of gam(). . This package is part of the set of packages that are 'recommended' by R Core and shipped with upstream source releases of R itself.