Warning: Sample at ... in presence is missing some environmental data

180 views
Skip to first unread message

Michael Smith

unread,
Mar 18, 2021, 9:13:26 PM3/18/21
to Maxent

Hi all,

I'm running MaxEnt from dismo (the R package) and have been getting warning messages:

Warning: Sample at 40.0, 40.0 in presence is missing some environmental data (e.g. stacked_env_variables.20)

Should I be worried that the sample number is repeated? I assume this is one of the presence records and one of the layers of the raster stack is NA at that spatial point?

Thanks,
Michael

Bede-Fazekas Ákos

unread,
Mar 19, 2021, 3:07:49 AM3/19/21
to max...@googlegroups.com
Hello Michael,
if the number of such warning messages is low, you can ignore them. If it is high, then numerous presence points are removed from the model training, which will decrease the goodness of your model. (If the number is very high, it might indicate that your rasters are wrong, e.g. the projection is not OK.)
Also you can set the "allowpartialdata" parameter to TRUE to use this sample point as well.
HTH,
Ákos
--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/b3ab0fae-63ce-4734-9875-8b7824d7cd21n%40googlegroups.com.

Michael Smith

unread,
Mar 20, 2021, 5:46:25 AM3/20/21
to Maxent
Thanks! I now realise that "40, 40" refers to the 40th presence record and has nothing to do with coordinates.

I've been running a 'null model' 100 times for every species model tested, using random points instead of the genuine presence records, so I will try this again with the allowpartialdata parameter set to TRUE as otherwise, perhaps my null model appears worse than it should.

Bede-Fazekas Ákos

unread,
Mar 20, 2021, 5:53:58 AM3/20/21
to max...@googlegroups.com
Hello,
Yes, 40 is no a coordinate...
Setting allowpartialdata to TRUE will let you include this presence point only if least one environmental layer/variable is known at this point. If all variables are unknown, MaxEnt will continue to remove this point from the analysis.
Have a nice weekend,
Ákos
Reply all
Reply to author
Forward
0 new messages