GAM with “gp” smoother: predict at new locations
问题 I am using the following geoadditive model library(gamair) library(mgcv) data(mack) mack$log.net.area <- log(mack$net.area) gm2 <- gam(egg.count ~ s(lon,lat,bs="gp",k=100,m=c(2,10,1)) + s(I(b.depth^.5)) + s(c.dist) + s(temp.20m) + offset(log.net.area), data = mack, family = tw, method = "REML") How can I use it to predict the value of egg.count at new locations (lon/lat) where I don't have covariate data, as in kriging ? For example say I want to predict egg.count at these new locations lon