View source: R/make_flocker_data.R
make_flocker_data_dynamic | R Documentation |
flock()
.Format data for dynamic (multi-season) occupancy model, to be passed to
flock()
.
make_flocker_data_dynamic(
obs,
unit_covs = NULL,
event_covs = NULL,
quiet = FALSE,
newdata_checks = FALSE
)
obs |
An I x J x K array where closure is assumed across rows, columns are repeated sampling events, and slices along the third dimension are seasons. Allowable values are 1 (detection), 0 (no detection), and NA (no sampling event). The data must be formatted so that all NAs are trailing within their rows across repeat visits, but not necessarily across seasons. |
unit_covs |
A list of dataframes (one per season) of covariates for each closure-unit that are constant across repeated sampling events within units. All dataframes must have identical column names and types, and all dataframes must have I rows. |
event_covs |
A named list of I x J x K arrays, 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). |
A flocker_data list that can be passed as data to flock()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.