make_flocker_data_static: Format data for single-season occupancy model, to be passed...

View source: R/make_flocker_data.R

make_flocker_data_staticR Documentation

Format data for single-season occupancy model, to be passed to flock().

Description

Format data for single-season occupancy model, to be passed to flock().

Usage

make_flocker_data_static(
  obs,
  unit_covs = NULL,
  event_covs = NULL,
  quiet = FALSE,
  newdata_checks = FALSE
)

Arguments

obs

An I x J matrix-like object where closure is assumed across rows and columns are repeated sampling events. Allowable values are 1 (detection), 0 (no detection), and NA (no sampling event).

unit_covs

A dataframe of covariates for each unit that are constant across repeated sampling events within closure-units.

event_covs

A named list of I x J matrices, each one corresponding to a covariate that varies across repeated sampling events within closure-units

quiet

Hide progress bars and informational messages?

newdata_checks

If TRUE, turn off checks that must pass in order to use the data for model fitting, but not in other contexts (e.g. making predictions or assessing log-likelihoods over new data).

Value

A flocker_data list that can be passed as data to flock().

Examples

sfd <- simulate_flocker_data()
make_flocker_data_static(
 sfd$obs, 
 sfd$unit_covs,
 sfd$event_covs
)

jsocolar/flocker documentation built on Jan. 29, 2025, 11:18 p.m.