make_flocker_data_static {flocker}R 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
)

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?

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
)

[Package flocker version 1.0-0 Index]