View source: R/make_flocker_data.R
make_flocker_data_static | R Documentation |
flock()
.Format data for single-season occupancy model, to be passed to
flock()
.
make_flocker_data_static(
obs,
unit_covs = NULL,
event_covs = NULL,
quiet = FALSE,
newdata_checks = FALSE
)
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). |
A flocker_data list that can be passed as data to flock()
.
sfd <- simulate_flocker_data()
make_flocker_data_static(
sfd$obs,
sfd$unit_covs,
sfd$event_covs
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.