Skip to content
Prev 2647 / 7420 Next

prediction of fitted gam for newdata does not work

As you use "data=Hyla_Model" in the gam function, variable names should not 
include the data.frame or matrix name, try:

 model8<- gam(AES_Peak_modified ~ s(var1) +s(var2)+ var3 + var4, 
data=Hyla_Model, family = poisson)

Hope it helps,

Aitor


--------------------------------------------------
From: "Felisa Henrikus" <felisa.henrikus at googlemail.com>
Sent: Wednesday, January 11, 2012 6:05 PM
To: <r-sig-ecology at r-project.org>
Subject: [R-sig-eco] prediction of fitted gam for newdata does not work