Re: [R] compare observed and fitted GAM values

2009-08-24 Thread Simon Wood
You haven't given quite enough information to be sure, but I would guess that this is not really a problem, but rather the interesting proporty of GLMs fitted with a canonical link described in e.g. section 2.1.8 of Wood (2006) Generalized additive models: and introduction with R, or at the begi

Re: [R] compare observed and fitted GAM values

2009-08-21 Thread David Winsemius
On Aug 21, 2009, at 5:03 PM, Lucía Rueda wrote: Hi, I am comparing the observed and fitted values of my GAM model, which includes the explanatory variables: longitude, depth, ssh, year and month. When I compare observed and fitted values for longitude, depth and ssh it works. But when I

[R] compare observed and fitted GAM values

2009-08-21 Thread Lucía Rueda
Hi, I am comparing the observed and fitted values of my GAM model, which includes the explanatory variables: longitude, depth, ssh, year and month. When I compare observed and fitted values for longitude, depth and ssh it works. But when I try to do it for month and year (which are as factors i