A wrapper for secr::secr.fit
. In secr
v. 4, secr.fit
gains a new option, fastproximity
. If TRUE, some data sets are compressed and reconfigured to run much faster. This cannot be implemented for all models. The default is fastproximity=TRUE
. This means that you can have a set of models where some have been reconfigured, others not, and AICs are not comparable across these models. The function secrFit
simply calls secr.fit
with fastproximity = FALSE
, making it easy to run models with consistent settings.
secrFit (capthist, model = list(D~1, g0~1, sigma~1), mask = NULL, buffer = NULL,
CL = FALSE, detectfn = NULL, ...)
returns an object of class secr representing the fitted SECR model.
a capthist
object as defined in package secr
including capture data and detector (trap) layout
list with optional components each symbolically defining a linear predictor for one real parameter using formula notation
a mask object or (for a multi-session analysis) a list of mask objects, one for each session
scalar mask buffer radius if mask is not specified (default 100 m)
logical, if true then the model is fitted by maximizing the conditional likelihood
integer code or character string for shape of detection function 0 = halfnormal, 1 = hazard rate etc. - see detectfn
other arguments to pass to secr.fit
.
This wrapper by Mike Meredith