eFrameGRMS: eFrameGRMS

View source: R/eFrame.R

eFrameGRMSR Documentation

eFrameGRMS

Description

eFrameGRMS creates an eFrameGRMS 'stacked' data object for use with closed population generalized removal models + index data using the robust design where sampling occurs over a number of primary and secondary periods. Data for each primary period is 'stacked' into rows with an indicator variable added to identify each primary period. The data can then be analysed using closed population removal models to estimate the trend in abundance between primary periods.

Usage

eFrameGRMS(rem, idx, siteCovs = NULL, obsCovs = NULL, delta = NULL)

Arguments

rem

A data.frame of the observed removal data for each site in rows and secondary periods in columns, indexed by session (primary period). The data.frame must contain a column session with at least two unique values.

idx

A data.frame of the observed index data for each site in rows and secondary periods in columns, indexed by session (primary period). The data.frame must contain a column session with at least two unique values.

siteCovs

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

obsCovs

A list of matrices or data.frames of variables varying within sites. Each matrix or data.frame must be of dimension MxJ.

delta

A vector with elements giving the time units between primary periods for each site beginning with 1 for the first primary period. A default value of 1 is used to indicate equal time intervals between primary periods.

Value

a eFrameGRMS holding stacked data for each primary period.

Examples

 rem<- san_nic_open$removals
 ym<- san_nic_open$index # detections from additional monitoring

 emf<-eFrameGRMS(rem, index)
 summary(emf)


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