Non-Euclidean distances have a variety of uses, some obscure. You
probably do not need them unless you have data from linear habitats,
covered in the forthcoming package secrlinear. On the other hand,
they open up some intriguing possibilities for the advanced user. The
key is to provide an appropriate value for the component `userdist' of
the 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 is
useful when there are barriers to movement).
If details$userdist
is a function then it should take the form
userdist(xy1, xy2, mask)
Value |
Interpretation |
'' |
no covariates etc. required |
'D' |
density at each mask point |
'noneuc' |
a multi-purpose real parameter |
defined for each mask point |
c('D', 'noneuc') |
both of the preceding |
c('noneuc','habclass') |
both noneuc and the mask covariate 'habclass' |
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. Sutherland, C., Fuller, A. K. and Royle, J. A. (2014) Modelling non-Euclidean movement and landscape connectivity in highly structured ecological networks. Methods in Ecology and Evolution (in press).
details
, secr.fit
, nedist