Skip to content
Prev 167405 / 398502 Next

Predictions with GAM

Robbert,
On Friday 16 January 2009 14:30, Robbert Langenberg wrote:
--- Can you explain how it didn't work? What exactly was wrong with what 
predict.gam gave you? [when I try predict.gam for a gam with factor by 
variables, I seem to get what I'd expect, so I need a bit more detail to 
figure out what the issue is.] 

-- incidentally, is there any reason for omitting the main effect of `mapID' 
from the model? I'd usually expect to see 
  y_no~s(day,by=mapID)+mapID
as the model formula in this sort of situation. (see ?gam.models for details)

best,
Simon