eFrameREST: eFrameREST

View source: R/eFrame.R

eFrameRESTR Documentation

eFrameREST

Description

eFrameREST creates an eFrame data object for use with the REST model applied to camera trap data using the MLE given in: Nakashima,Y., Fukasawa, K., and Samejima H. (2018). J.App.Ecol,55,735-744.

Usage

eFrameREST(y, stay, cens, area, active_hours, siteCovs = NULL)

Arguments

y

An MxJ matrix of the observed number of encounters at a camera over a specified period (usually 24h but could be less - see active_hours) where M is the number of sites and J is the maximum number of observations per site.

stay

A vector of the observed staying times, which are the difference between the exit and entry times for all (or a sample) of individuals

cens

A vector indicating whether both entry and exit times were observed for each of the staying times (cens=1) or only the entry time was observed with the exit time unknown (cens=0). In the latter case, the staying time is the maximum time that the individual was observed to be in front of the camera.

area

A scalar indicating The area of the camera viewshed in square meters. This area is assumed to have a detection probability of 1.0 (effective sampling area).

active_hours

A scalar indicating the number of hours in each 24 hour period that the species is active

siteCovs

A data.frame of covariates that vary at the site level. This should have M rows and one column per covariate

Value

a eFrameREST holding data containing the response and covariates required for the REST model

Examples

counts<- rest$y
stay<- rest$stay
cens<- rest$cens
A<- rest$area # in km2
active<- rest$active_hours

emf<- eFrameREST(counts, stay, cens, A, active, siteCovs = site.data)
summary(emf)


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