eFrameMNS: eFrameMNS

View source: R/eFrame.R

eFrameMNSR Documentation

eFrameMNS

Description

eFrameMNS creates an eFrameMNS 'stacked' data object for use with closed population multinomial removal models 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

eFrameMNS(rem, 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 rem must contain a column session with at least two unique values. The dimensions of rem are thus MT rows and J+1 columns where T is the number of sessions.

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 MT x J.

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 eFrameMNS holding stacked data for each primary period.

Examples

 rem<- san_nic_open$removals

 emf<-eFrameMNS(rem)
 summary(emf)


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