Re: [R] "gam()" in "gam" package

From: Duncan Murdoch <>
Date: Mon, 24 Dec 2007 19:46:15 -0500

On 24/12/2007 6:59 PM, Kunio takezawa wrote:
> R-users
> E-mail:

>>>  I found the answer myself.
>>>  '.Fortran("baklo",' in lo.wam() and  .Fortran("bakfit",in
>>> s.wam() may carry out backfitting. But I cannot
>>> create an R code which gives the same results as those of
>>> "bakfit". If someone knows the detail of "bakfit" algorithm,

> Thomas>The source code for both Fortran routines is in the package. If I
> recal
> Thomas>correctly the book by Hastie & Tibshirani has descriptions of
> Thomas>the algorithms they used.
> I failed to find the Fortran source codes. Please specify the names
> of folder and files.

You may have a binary install of the package; you need the source. Look in, files gam/src/backfit.f and gam/src/backlo.f

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Dec 2007 - 00:49:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Dec 2007 - 03:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.