dist_func | R Documentation |
dist_func
estimates a distance function from distance data collected from
camera traps. The distance function is then used to estimate the effective area
of the camera viewshed by integration. Data are assumed to be in bins specified in
cutpoints
(see eFrameDS
for more details). The detection function is
estimated using the function ds()
from package Distance
using point
distance sampling. Currently no adjustments are included in the fitting.
dist_func(data, theta, keyfun = c("hn","hr"), ...)
data |
|
formula |
formula for the scale parameter. Default is ~1. |
theta |
angle of the camera viewshed in degrees |
keyfun |
detection functions to fit (currently only half-normal ("hn") or hazard rate ("hr")). No adjustments are currently permitted. |
a efitDS
list model object giving the parameter estimates for each distance
function fitted and a table providing the effective sampled area (esw
) of the camera
viewshed along with an estimate of the average detection probability (Pa
), AIC and
the p-value from a Chi-sq GOF test (p
).
encounters<- HogDeer$encounters
cutpoints<- HogDeer$cutpoints
w<- cutpoints[length(cutpoints)] # truncation distance
emf<- with(encounters, {
eFrameDS(distance = dist_bin, size = count, siteID = cam, cutpoints = cutpoints,
w=w, bin_nums=TRUE)
})
dist_func(emf, theta=40)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.