[Biomod-commits] Error projecting models to another area

Bruno Arantes barantes at gmail.com
Mon Nov 15 19:14:00 CET 2010


Hi All.

I'm trying to project models built with BIOMOD but I'm getting the following
error:

Error in predict.nnet(object, Proj, type = "raw") : missing values in 'x'

If I set ANN=F in the Projection call, then the error changes to:
Error in if (sum(ProbData) != 0) { :
  missing value where TRUE/FALSE needed

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?

Here's info on my environment and data:

R version 2.11.1 (2010-05-31) running on Win XP SP3 (32-bit)
BIOMOD 1.1-5 2010-05-04

Command being used for projection:
> 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)

> summary(other.area)
       x                y                alt                bio1
 bio10              bio11              bio12            bio15
bio16
 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
 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
 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
 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
 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
 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
                                    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
     bio17               bio4
 Min.   :     0.0   Min.   :     0
 1st Qu.:    33.0   1st Qu.:   450
 Median :    87.0   Median :   718
 Mean   :   141.7   Mean   :  1075
 3rd Qu.:   215.0   3rd Qu.:  1517
 Max.   :   771.0   Max.   :  4480
 NA's   :117187.0   NA's   :117187


Model training seems to have completed successfully, the only warnings that
appeared were:
glm.fit: fitted probabilities numerically 0 or 1 occurred

Let me know if you need more details about these issues.

Thanks.

-- 
Bruno Arantes de Andrade Bueno
http://twitter.com/barantes
http://barantesbirdwatching.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/biomod-commits/attachments/20101115/a43ad6ff/attachment.htm>


More information about the Biomod-commits mailing list