Hein, I think this problem goes away if you use a clean formula, like this:
> model <- glm(t0~ycoord+prec+tempmean+tempmax+tempmin, family=binomial(link="logit"), data=c3p) Robert On Thu, Apr 4, 2013 at 7:42 AM, Jesse Berman <berman.je...@gmail.com> wrote: > Hi Hein, > > I'm not sure if this will help, but one thing to check is that your > prediction grid has covariate data for each of the 40,000 cells. If a > large > number of cells have 'NA' as data values, then sometimes the prediction > will > not work. Offhandedly, it strikes me that ycoord may be limited to only > your t0 locations. > > Jesse > > > > -- > View this message in context: > http://r-sig-geo.2731867.n2.nabble.com/predict-function-of-regressors-in-the-raster-package-tp7583201p7583205.html > Sent from the R-sig-geo mailing list archive at Nabble.com. > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo