<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Dear BIOMOD group</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">I’m a new BIOMOD user having problems to project the models to the
entire study area using the Projection.raster function. Here is the error
message</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;font-family:"Lucida Console""> </span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;font-family:"Lucida Console"">Error in
model.frame.default(Terms, newdata, na.action = na.action, xlev =
object$xlevels) : </span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;font-family:"Lucida Console""><span style>  </span>invalid type (list) for variable 'DataF'</span></p>


<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;font-family:"Lucida Console"">In addition: Warning
message:</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style="font-size:10.0pt;font-family:"Lucida Console"">'newdata' had 230421 rows
but variable(s) found have 132 rows </span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style> </span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">This is the script I used</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Initial.State(Response<span style>  </span>=<span style>  </span>datasheet[9],<span style> 
</span>Explanatory<span style>  </span>=<span style>  </span>datasheet[,2:6],IndependentResponse<span style>  </span>=<span style> 
</span>NULL, IndependentExplanatory<span style>  </span>=<span style>  </span>NULL)</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"> </p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Models(GLM<span style>  </span>=<span style>  </span>T,<span style> 
</span>TypeGLM<span style>  </span>=<span style>  </span>"simple",<span style>  </span>Test<span style> 
</span>=<span style>  </span>"AIC",<span style>  </span>GBM<span style>  </span>=<span style>  </span>T,<span style> 
</span>No.trees<span style>  </span>=<span style>  </span>2000,<span style> 
</span>GAM<span style>  </span>=<span style>  </span>F,Spline<span style> 
</span>=<span style>  </span>3,<span style>  </span>CTA<span style>  </span>=<span style>  </span>T,<span style> 
</span>CV.tree<span style>  </span>=<span style>  </span>50,<span style> 
</span>ANN<span style>  </span>=<span style>  </span>T,<span style> 
</span>CV.ann<span style>  </span>=<span style>  </span>2,<span style>  </span>SRE<span style>  </span>=<span style> 
</span>T,<span style>  </span>quant=0.025,<span style>  </span>FDA<span style> 
</span>=<span style>  </span>T,MARS<span style>  </span>=<span style> 
</span>T,<span style>  </span>RF<span style>  </span>=<span style>  </span>T, <span style> </span>NbRunEval<span style> 
</span>=<span style>  </span>3,<span style>  </span>DataSplit<span style> 
</span>=<span style>  </span>70,<span style>  </span>Yweights=Error,<span style>  </span>Roc<span style> 
</span>=<span style>  </span>T,<span style>  </span>Optimized.Threshold.Roc<span style>  </span>=<span style> 
</span>T,Kappa<span style>  </span>=<span style>  </span>T,<span style> 
</span>TSS=T,<span style>  </span>KeepPredIndependent<span style>  </span>=<span style> 
</span>F,<span style>  </span>VarImport=5,<span style>  </span>NbRepPA=0,<span style> 
</span>strategy="circles",coor=Coord,<span style> 
</span>distance=2,<span style>  </span>nb.absences=0)</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"> </p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">CurrentPred(BinRoc=T, BinKappa=T, BinTSS=T, FiltRoc=T, FiltKappa=T,
FiltTSS=T) </p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style lang="PT-BR"> </span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style lang="PT-BR">Var 1=raster("C:/…./Var
1.grd")</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style lang="PT-BR">Var3=raster("C:/…./Var3.grd")</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style lang="PT-BR">Var4=raster("C:/…./Var4.grd")</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"><span style lang="PT-BR">Var12=raster("C:/…./Var12.grd")</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Var15=raster("C:/…./Var15.grd")</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">varclim=stack(Var1,Var3,Var4,Var12,Var15)</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"> </p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Projection.raster(RasterProj = varclim, Proj.name="Project",GLM=TRUE,
BinKappa=TRUE, FiltKappa=TRUE, repetition.models=TRUE, stack.out=TRUE,
compress="xz")</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal"> </p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Any help will be very welcomed,</p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">Thanks!</p>

<br clear="all"><br>-- <br>Martín <br>