eFrameMS: eFrameMS

View source: R/eFrame.R

eFrameMSR Documentation

eFrameMS

Description

eFrameMS creates an eFrameMS data object for use with multi-season occupancy models occMS where sampling occurs over a number of primary and secondary periods.

Usage

eFrameMS(df, siteCovs = NULL, obsCovs = NULL)

Arguments

df

A data.frame of the observed detection/non-detection data for each site in rows m and secondary periods in columns J, indexed by session (primary period) T. values greater than 0 will be truncated to 1. The df 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 MT x J.

Value

a eFrameMS holding data containing the response and covariates required for occuMS

Examples

index<- san_nic_open$index

emf<-eFrameMS(df=index)
summary(emf)


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