REST: REST

View source: R/REST.R

RESTR Documentation

REST

Description

REST fits the random encounter and staying time model of Nakashima et al (2018), which models the relationship between camera encounter rate, staying time and density. The model assume that cameras sample a viewshed of area A with perfect detection.

Usage

REST(formula, data, starts, method="BFGS", se=TRUE, ...)

Arguments

data

A eFrameREST object containing the number of encounters for each camera and the staying times. see eFrameREST for how to format the required data.

starts

Initial values for parameters

method

Optimisation method

se

flag to return the standard error (hessian).

formula

formula for animal density.

Value

a efit model object.

Examples

 y<- san_nic_rest$y
 stay<- san_nic_rest$stay
 cens<- san_nic_rest$cens
 area<- san_nic_rest$area
 active_hours<- san_nic_rest$active_hours

 emf <- eFrameREST(y, stay, cens, area, active_hours)
 mod <- REST(~1, data=emf)
 Nhat<- calcN(mod)


dslramsey/eradicate documentation built on March 16, 2024, 1:40 p.m.