I'm using SECR/R with a DNA-based dataset of black bear captures (307 detections of 44 different bears). I'm using habitat covariates for the density parameter (i.e., habitat measures associated with each point in the mask) in a full likelihood model. For several models the following error is returned:
"Error: NA/NaN/Inf in foreign function call (arg 17)".
This seems to happen with more complex models (5 or more habitat covariates) and for several simpler models that include a 'distance to roads' variable.
I realize this is a fairly generic R error message but I would appreciate any insights regarding this error.
Thanks,
Frank