<div>Dear BIOMOD-group,</div>
<div> </div>
<div>I have recently upgraded to the newest version of R and BIOMOD and currently trying to project SRE models onto a raster stack using the Projection.raster function. However, I continuously run into this error message: <em>Error in TF + TFmin : non-numeric argument to binary operator. </em>Can anyone tell me what I am doing wrong? Thanking you in advance.</div>
<div> </div>
<div>The following is a part of my script:</div>
<div> </div>
<div><em>Initial.State(Response=ENVSP[,c(35,37,42,43,48,53,58,59,64,65,66,68,69,70,71,73,76,78,80,82,84,85,87,90,93,95,96)], Explanatory=ENVSP[,c(4:8, 19:23)], IndependentResponse=NULL, IndependentExplanatory=NULL)</em></div>
<div><em></em> </div>
<div><em>Models(SRE = T, quant=0.025, NbRunEval = 2, DataSplit = 80,<br> Yweights=NULL, Roc=T, Optimized.Threshold.Roc=T, Kappa=T, TSS=T, KeepPredIndependent = F, VarImport=0,<br> NbRepPA=0, strategy="random", coor=NULL, distance=0, nb.absences=10000)</em> <strong> ###Know not all TRUE statements are applicable for SRE, but used for other models such as GLM, GAM etc)</strong></div>
<div><strong></strong> </div>
<div><em>library(raster)<br>Prin1 <- raster("rasters/Prin1")<br>Prin2 <- raster("rasters/Prin2")<br>Prin3 <- raster("rasters/Prin3")<br>Prin4 <- raster("rasters/Prin4")<br>
Prin5 <- raster("rasters/Prin5")<br>Filter1 <- raster("rasters/Filter1")<br>Filter2 <- raster("rasters/Filter2")<br>Filter3 <- raster("rasters/Filter3")<br>Filter4 <- raster("rasters/Filter4")<br>
Filter5 <- raster("rasters/Filter5")</em></div>
<div><br><em>rasterstack <- stack(Prin1, Prin2, Prin3, Prin4, Prin5, Filter1, Filter2, Filter3, Filter4, Filter5)</em></div>
<div><em></em> </div>
<div><em>library(rgdal)<br>library(maptools)<br>Projection.raster(rasterstack, "projectionRaster_SRE", GLM=FALSE, GBM=FALSE, GAM=FALSE, CTA=FALSE, ANN=FALSE, SRE=TRUE, quant=0.025, FDA=FALSE, MARS=FALSE, RF=FALSE, BinRoc=FALSE, BinKappa=FALSE, BinTSS=FALSE, FiltRoc=FALSE, FiltKappa=FALSE, FiltTSS=FALSE, repetition.models=FALSE, stack.out=TRUE)</em></div>
<div><br clear="all">Best regards,</div>
<div> </div>
<div>Anne<br>-- <br></div>