<div>Hi All.</div><div><br></div><div>I'm trying to project models built with BIOMOD but I'm getting the following error:</div><div><br></div><div>Error in predict.nnet(object, Proj, type = "raw") : missing values in 'x'</div>
<div><br></div><div>If I set ANN=F in the Projection call, then the error changes to:</div><div>Error in if (sum(ProbData) != 0) { : </div><div> missing value where TRUE/FALSE needed</div><div><br></div><div>Does anyone know why this is happening and how to fix it? I suspect it could have something to do with my dataset containing NA values... is there some way to set na.action?</div>
<div><br></div><div>Here's info on my environment and data:</div><div><br></div><div>R version 2.11.1 (2010-05-31) running on Win XP SP3 (32-bit)</div><div>BIOMOD 1.1-5 2010-05-04</div><div><br></div><div>Command being used for projection:</div>
<div>> Projection(Proj = other.area[,3:11], Proj.name="test", GLM = T, GBM = T, GAM = T, CTA = T, ANN = T, SRE = T, FDA =T, MARS = T, RF = T, BinRoc=T, BinKappa=T, BinTSS=T, FiltRoc=F, FiltKappa=F, FiltTSS=F, repetition.models=F)</div>
<div><br></div><div>> summary(other.area)</div><div> x y alt bio1 bio10 bio11 bio12 bio15 bio16 </div>
<div> Min. :-73.79 Min. :-33.625 Min. : 0.0 Min. : 0.0 Min. : 0.0 Min. : 0.0 Min. : 0 Min. : 0.00 Min. : 0.0 </div><div> 1st Qu.:-64.12 1st Qu.:-23.875 1st Qu.: 121.0 1st Qu.: 234.0 1st Qu.: 248.0 1st Qu.: 212.0 1st Qu.: 1342 1st Qu.: 47.00 1st Qu.: 585.0 </div>
<div> Median :-54.37 Median :-14.125 Median : 259.0 Median : 253.0 Median : 260.0 Median : 244.0 Median : 1721 Median : 65.00 Median : 797.0 </div><div> Mean :-54.37 Mean :-14.125 Mean : 326.8 Mean : 244.4 Mean : 256.2 Mean : 229.5 Mean : 1754 Mean : 60.87 Mean : 762.3 </div>
<div> 3rd Qu.:-44.62 3rd Qu.: -4.375 3rd Qu.: 464.0 3rd Qu.: 262.0 3rd Qu.: 269.0 3rd Qu.: 256.0 3rd Qu.: 2207 3rd Qu.: 78.00 3rd Qu.: 933.0 </div><div> Max. :-34.96 Max. : 5.375 Max. : 2054.0 Max. : 280.0 Max. : 292.0 Max. : 272.0 Max. : 3883 Max. : 128.00 Max. : 1628.0 </div>
<div> NA's :117187.0 NA's :117187.0 NA's :117187.0 NA's :117187.0 NA's :117187 NA's :117187.00 NA's :117187.0 </div><div> bio17 bio4 </div>
<div> Min. : 0.0 Min. : 0 </div><div> 1st Qu.: 33.0 1st Qu.: 450 </div><div> Median : 87.0 Median : 718 </div><div> Mean : 141.7 Mean : 1075 </div><div> 3rd Qu.: 215.0 3rd Qu.: 1517 </div>
<div> Max. : 771.0 Max. : 4480 </div><div> NA's :117187.0 NA's :117187 </div><div><br></div><div><div><br></div><div>Model training seems to have completed successfully, the only warnings that appeared were:</div>
<div>glm.fit: fitted probabilities numerically 0 or 1 occurred</div><div><br></div><div>Let me know if you need more details about these issues.</div><div><br></div><div>Thanks.</div><br>-- <br>Bruno Arantes de Andrade Bueno<br>
<a href="http://twitter.com/barantes">http://twitter.com/barantes</a><br><a href="http://barantesbirdwatching.blogspot.com">http://barantesbirdwatching.blogspot.com</a><br><br>
</div>