eFrame: eFrame

View source: R/eFrame.R

eFrameR Documentation

eFrame

Description

eFrame creates an eFrame data object for use with Nmixture or occupancy type models

Usage

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

Arguments

y

An MxJ matrix of the observed measured data, where M is the number of sites and J is the maximum number of observations per site.

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 eFrame holding data containing the response and covariates required for each model

Examples

 counts<- san_nic_pre$counts
 emf <- eFrame(y=counts)
 summary(emf)


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