Skip to content
Prev 5439 / 398506 Next

GAMs under R?

On Sun, 30 Apr 2000, Stephen R. Laniel wrote:

            
loess: yes, and it's not really hidden. It is in standard package modreg.
It does not do `generalized additive models' though, even under S.
(The R implementation is a little less general than that in S.)

gam(): no, it is not there.  Look at the original code to see one reason
why: it is highly convoluted and not at all well documented.  I think
additive models have been greatly over-sold in certain statistical circles,
but if you want to use them for least-squares fitting, try bruto (in
package mda on CRAN) instead as at least that makes a sensible attempt to
choose the smoothness of the variable transformations.

I wonder why you were surprised?  See section 5.6 of the FAQ:

  5.6 How can I contribute to R?
  ==============================

[...]

     One place where functionality is still missing is the modeling
  software as described in "Statistical Models in S" (see *Note What is
  S?::); Generalized Additive Models (*gam*) and some of the nonlinear
  modeling code are not there yet.

which shows we are still waiting for a volunteer (hint, hint).