[R] GAM with Locfit components

Simon Wood simon at stats.gla.ac.uk
Tue Apr 6 18:38:34 CEST 2004


>From mgcv 1.0 you can add your own smoothers for use with gam, but only if
they can be represented using basis functions and a quadratic penalty: so
P-splines are OK, but loess is not, for example.

Simon

> Loader's book is referring to the gam() function in S-plus (or S from Bell
> Labs), not the one in mgcv.  They are very different things.  I don't know
> if it's possible to implement local regression type smoothers (or something
> other than splines) in gam() in mgcv, but even if it's possible, the one in
> locfit won't work without quite a bit of work, I'd imagine.
>
> Andy
>
> > From: Vivian Viallon
> >
> > Hi,
> > I'm trying to combine the Locfit Package with the Mgcv package (to use
> > Generalized Additive Models with Locfit components).  I read the book
> > written by Clive Loader  where it's said that, for the S
> > language, you just
> > have to "load" the locfit package using the command :
> > Library(locfit, first="T")
> > in order to use locfit components in an additive model.
> > But I can't. I guess the C-command differs from the S-command.
> > Thanks in  advance for your help.
> > Regards,
> > Vivian
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list