Error in integrate

4 views
Skip to first unread message

Milena Ribeiro

unread,
3:01 PM (8 hours ago) 3:01 PM
to secr
Good afternoon, everyone,

I am working with the secr package using jaguar camera trap data. While using the secr.fit function to generate models, I encountered the following error:

Error in integrate(integrand2, lower = trapspacing/2^0.5, upper = Inf) :
the integral is probably divergent

Warning message:
could not perform bias check

Does anyone know why I might be encountering this error when using this function?

Murray Efford

unread,
3:38 PM (8 hours ago) 3:38 PM
to secr
Hello there
After fitting a model using a specified buffer width (rather than a user-provided mask), secr.fit() attempts to check whether the buffer width is large enough to avoid truncation bias (it won't be for jaguars if you have forgotten to replace the default). The check uses an undocumented and ad hoc  approximation that does not work for all detector configurations. You seem to have hit that problem. If everything else is OK then just double check that you have used a sensible buffer width. The check can be suppressed by setting biasLimit = NA in the call to secr.fit.
Murray
Reply all
Reply to author
Forward
0 new messages