eFrameR: eFrameR

View source: R/eFrame.R

eFrameRR Documentation

eFrameR

Description

eFrameR creates an eFrameR data object for use with removal models. This model is designed to be used with data over a single primary period.

Usage

eFrameR(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.

obsCovs

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

type

sampling method. Currently supports "removal" for removal sampling and "double" for double observer sampling

SiteCovs

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

Value

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

Examples

 rem<- san_nic_rem$rem
 emf<- eFrameR(rem, type="removal")
 summary(emf)


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