details
argument of secr.fit
.
details$userdist
is either a function to compute distances
between detectors and mask points, or a pre-computed matrix of such
distances. Pre-computing assumes the matrix is static (i.e. fixed and
not dependent on any estimated coefficients. The functions
edist
and nedist
are useful for computing
static matrices of Euclidean or non-Euclidean distances (the latter
useful when there are barriers to movement).
If details$userdist
is a function then it should take the form
userdist(xy1, xy2, mask)region.N
will generally not calculate population size for a region other than the original mask. If you want to supply a new mask in the `region' argument, replace x$details$userdist with a distance matrix appropriate to the new mask, where `x' is the name of the fitted model.
User-specified distances cannot be used with polygon or transect
detectors.
When using sim.capthist
to simulate detections of a new
population from sim.popn
you must provide userdist
as a function rather than a matrix. This is because new animals are not
restricted to locations on the `mask' grid.details
, secr.fit
, nedist