Package: flocker 1.1-1

flocker: Flexible Occupancy Estimation with Stan

Fit occupancy models in 'Stan' via 'brms'. The full variety of 'brms' formula-based effects structures are available to use in multiple classes of occupancy model, including single-season models, models with data augmentation for never-observed species, dynamic (multiseason) models with explicit colonization and extinction processes, and dynamic models with autologistic occupancy dynamics. Formulas can be specified for all relevant distributional terms, including detection and one or more of occupancy, colonization, extinction, and autologistic depending on the model type. Several important forms of model post-processing are provided. References: Bürkner (2017) <doi:10.18637/jss.v080.i01>; Carpenter et al. (2017) <doi:10.18637/jss.v076.i01>; Socolar & Mills (2023) <doi:10.1101/2023.10.26.564080>.

Authors:Jacob B. Socolar [aut, cre, cph], Simon C. Mills [aut], Paul-Christian Bürkner [ctb]

flocker_1.1-1.tar.gz
flocker_1.1-1.zip(r-4.7-any)flocker_1.1-1.zip(r-4.6-any)flocker_1.1-1.zip(r-4.5-any)
flocker_1.1-1.tgz(r-4.6-any)flocker_1.1-1.tgz(r-4.5-any)
flocker_1.1-1.tar.gz(r-4.7-any)flocker_1.1-1.tar.gz(r-4.6-any)
flocker_1.1-1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
flocker/json (API)

# Install 'flocker' in R:
install.packages('flocker', repos = c('https://jsocolar.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jsocolar/flocker/issues

Pkgdown/docs site:https://jsocolar.github.io

Datasets:
  • mfd_single - Data for example single-season flocker model

On CRAN:

Conda:

7.65 score 33 stars 45 scripts 456 downloads 19 exports 80 dependencies

Last updated from:796d3f7b58. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK276
source / vignettesOK261
linux-releaseOK299
macos-releaseOK292
macos-oldrelOK307
windows-develOK127
windows-releaseOK131
windows-oldrelOK160
wasm-releaseOK150

Exports:example_flocker_model_singlefitted_flockerflockflocker_stancodeflocker_standataget_flocker_priorget_Zlog_inv_logitlog_lik_flockerlog1m_inv_logitloo_compare_flockerloo_flockermake_flocker_datamake_flocker_data_augmentedmake_flocker_data_dynamicmake_flocker_data_staticmake_flocker_data_twolevel_singlepredict_flockersimulate_flocker_data

Dependencies:abindassertthatbackportsbayesplotBHbootbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscpp11descdigestdistributionaldplyrfarverfuturefuture.applygenericsggdistggplot2ggridgesglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvloomagrittrMASSMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquadprogQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Advanced brms custom families: occupancy models and the flocker_data format
The problem | Two key tricks: unlooped families and vint terms | The flocker_data format for a single-season model | A note on performance | Even fancier families | The multi-season format | The two-level format

Last update: 2026-10-15
Started: 2023-10-21

Data-augmented models in flocker

Last update: 2026-10-15
Started: 2023-10-17

Fitting occupancy models with flocker
Terms and definitions | Installation and feedback | Data simulation | Data formatting | Model fitting | The single-season rep-varying model | The single-season rep-constant model | Multi-season models | Data-augmented multi-species models | Post-processing | brms-native post-processing | Fitted values | The posterior occupancy state | Posterior prediction | Model comparison | brms tips and tricks | Priors | Model formulas | Random effects | Nonlinear models | Phylogenetic models | Spatial and autoregressive structures | Measurement error in covariates | Additional fitting arguments

Last update: 2026-10-15
Started: 2021-08-21

Nonlinear models in flocker
Parametric nonlinear predictor | Spatially varying coefficients via a Gaussian process

Last update: 2026-10-15
Started: 2023-10-17

Multiseason models in flocker
Multiseason models as HMMs | Emission probabilities | Colonization and extinction | Initial occupancy | Examples

Last update: 2023-12-09
Started: 2023-07-12