eFrameGR: eFrameGR

View source: R/eFrame.R

eFrameGRR Documentation

eFrameGR

Description

eFrameGR creates an eFrameGR data object for use with generalized removal models using the robust design where sampling occurs over a number of primary and secondary periods.

Usage

eFrameGR(y, siteCovs = NULL, obsCovs = NULL)

Arguments

y

An MxJ matrix of the observed removal data, where M is the number of sites and J is the maximum number of removal (primary) periods per site. Each primary period can consist of k secondary periods but this is not used here.

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.

Value

a eFrameGR holding data containing the response and covariates required for removal models

Examples

 rem<- san_nic_rem$rem
 y1<- san_nic_rem$y1 # detections from additional monitoring
 mtraps<- san_nic_rem$cells
 nights<- san_nic_rem$nights

 emf<-eFrameRM(rem, y1, mtraps, nights, type="removal")
 summary(emf)


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