Re: [R] Difference between gam() and loess().

2009-03-23 Thread Rolf Turner
On 21/03/2009, at 3:19 AM, Ravi Varadhan wrote: I also tried a number of other things including changing the "family", and parameters in "loess.control", but to no avail. I looked at the Fortran codes from both loess and gam. They are daunting, to say the least. They are dense, a

Re: [R] Difference between gam() and loess().

2009-03-20 Thread Kevin E. Thorpe
avi, I missed that you had fiddled with loess.contol() AND looked at the Fortran. I guess one simple parameter change may not quite do it. :-) Kevin - Original Message - From: "Kevin E. Thorpe" Date: Thursday, March 19, 2009 8:23 pm Subject: Re: [R] Difference between gam()

Re: [R] Difference between gam() and loess().

2009-03-20 Thread Kevin E. Thorpe
e" Date: Thursday, March 19, 2009 8:23 pm Subject: Re: [R] Difference between gam() and loess(). To: Rolf Turner Cc: R-help Forum Rolf Turner wrote: > > It seems that in general > > gam(y~lo(x)) # gam() from the gam package. > > and > loess(y~x) &g

Re: [R] Difference between gam() and loess().

2009-03-20 Thread Ravi Varadhan
ision of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: "Kevin E. Thorpe" Date: Thursday, March 19, 2009 8:23 pm Subject: Re: [R] Difference between gam() and loess(). To:

Re: [R] Difference between gam() and loess().

2009-03-19 Thread Kevin E. Thorpe
Rolf Turner wrote: It seems that in general gam(y~lo(x)) # gam() from the gam package. and loess(y~x) give slightly different results (in respect of the predicted/fitted values). Most noticeable at the endpoints of the range of x. Can anyone enlighten me about the reason for this d

[R] Difference between gam() and loess().

2009-03-19 Thread Rolf Turner
It seems that in general gam(y~lo(x)) # gam() from the gam package. and loess(y~x) give slightly different results (in respect of the predicted/fitted values). Most noticeable at the endpoints of the range of x. Can anyone enlighten me about the reason for this difference?