EDR | R Documentation |
Computes Effective Detection Radius (EDR) for estimated
detection functions on point transects.
See ESW
is for line transects.
EDR(object, newdata = NULL)
object |
An Rdistance model frame or fitted distance function,
normally produced by a call to |
newdata |
A data frame containing new values of
the covariates at which to evaluate the distance functions.
If |
Effective Detection Radius is the integral under the detection function times distance.
If newdata
is present, the returned value is
a vector of effective sampling distances for values of the
covariates in newdata
with length equal to
the number of rows in newdata
.
If newdata
is NULL, the returned value is a vector of effective
sampling distances associated with covariate values in object
and has
the same number of detected groups. The returned vector
has measurement units, i.e., object$outputUnits
.
Rdistance uses Simpson's composite 1/3 rule to numerically
integrate under distance functions. The number of points evaluated
during numerical integration is controlled by
options(Rdistance_intEvalPts)
(default 101).
Option 'Rdistance_intEvalPts' must be odd because Simpson's rule
requires an even number of intervals (hence, odd number of points).
Lower values of 'Rdistance_intEvalPts' increase calculation speeds;
but, decrease accuracy.
'Rdistance_intEvalPts' must be >= 5. A warning is thrown if
'Rdistance_intEvalPts' < 29. Empirical tests by the author
suggest 'Rdistance_intEvalPts' values >= 30 are accurate
to several decimal points and that all 'Rdistance_intEvalPts' >= 101 produce
identical results in all but pathological cases.
dfuncEstim
, ESW
,
effectiveDistance
# Load example thrasher data (point transect survey type)
data(thrasherDf)
# Fit half-normal detection function
dfunc <- thrasherDf |> dfuncEstim(formula=dist~bare)
# Compute effective detection radius (EDR)
EDR(dfunc) # vector length 192
effectiveDistance(dfunc) # same
EDR(dfunc, newdata = data.frame(bare=30)) # vector length 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.