<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Martin,</div><div>Sorry for the late reply. </div><div><br></div><div>Please could you turn off ANN for the projection and try again? and then let me know. They are all set to TRUE by default in the Projection.raster function</div><div><br></div><div><blockquote type="cite"><p class="MsoNormal" style="margin-bottom: 0.0001pt; ">Projection.raster(RasterProj = varclim, Proj.name="Project",GLM=TRUE, GBM=TRUE, GAM=TRUE, CTA=TRUE, ANN=FALSE, SRE=TRUE, quant=0.025,</p></blockquote><blockquote type="cite"><p class="MsoNormal" style="margin-bottom: 0.0001pt; ">FDA=TRUE, MARS=TRUE, RF=TRUEBinKappa=TRUE, FiltKappa=TRUE, repetition.models=TRUE, stack.out=TRUE, compress="xz")</p></blockquote></div><div><br></div><div>Cheers,</div><div>Wilfried</div><div><br></div><div><br></div><div><br></div><div><br></div><br><div><div>Le 28 févr. 2012 à 13:06, Martin Videla a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><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><div style="margin-bottom: 0.0001pt; line-height: normal; "><span style="font-size:10.0pt;font-family:"Lucida Console""> </span><br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "><span style=""> </span><br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "> <br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "> <br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "><span style="" lang="PT-BR"> </span><br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "> <br class="webkit-block-placeholder"></div><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><div style="margin-bottom: 0.0001pt; line-height: normal; "> <br class="webkit-block-placeholder"></div><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>
_______________________________________________<br>Biomod-commits mailing list<br><a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</blockquote></div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>--------------------------</div><div>Dr. Wilfried Thuiller</div><div>Laboratoire d'Ecologie Alpine, UMR CNRS 5553</div><div>Université Joseph Fourier</div><div>BP53, 38041 Grenoble cedex 9, France</div><div>tel: +33 (0)4 76 51 44 97</div><div>fax: +33 (0)4 76 51 42 79</div><div><br></div><div>Email: <a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br>Personal website: <a href="http://www.will.chez-alice.fr/">http://www.will.chez-alice.fr</a><br>Team website: <a href="http://www-leca.ujf-grenoble.fr/equipes/emabio.htm">http://www-leca.ujf-grenoble.fr/equipes/emabio.htm</a><br><br>ERC Starting Grant TEEMBIO project: <a href="http://www.will.chez-alice.fr/Research.html">http://www.will.chez-alice.fr/Research.html</a><br>FP6 European EcoChange project: <a href="http://www.ecochange-project.eu/">http://www.ecochange-project.eu</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>