Package: crywolf 2.5.0.9000

crywolf: Bayesian False-Positive Occupancy Models with Calibration Checks

Fits occupancy models that correct for false positives from automated detectors, such as acoustic classifiers, using the multiple-methods (site-confirmation) design of Miller et al. (2011) <doi:10.1890/10-1396.1>, in which a subset of detections is verified, or the observation-confirmation design of Chambert et al. (2015) <doi:10.1890/14-1507.1>. Three models are available: single-season, dynamic (multi-season, with colonization and extinction), and multispecies, with species-level effects drawn from community distributions. Models are written in 'Stan' and fitted through 'cmdstanr'. The false-positive rate can be constant or depend on site covariates, and the true-detection process accepts observation covariates and a recorder random effect. The package also simulates data under homogeneous, unstructured, and structured false-positive regimes and runs simulation-based calibration checks, so users can ask whether the correction keeps nominal interval coverage for their own design and how much verification it needs.

Authors:Diogo B. Provete [aut, cre], Liliana Piatti [aut], Larissa Sayuri Moreira Sugai [aut]

crywolf_2.5.0.9000.tar.gz
crywolf_2.5.0.9000.zip(r-4.7-x86_64)crywolf_2.5.0.9000.zip(r-4.7-arm64)crywolf_2.5.0.9000.zip(r-4.6-x86_64)crywolf_2.5.0.9000.zip(r-4.6-arm64)crywolf_2.5.0.9000.zip(r-4.5-x86_64)
crywolf_2.5.0.9000.tgz(r-4.6-x86_64)crywolf_2.5.0.9000.tgz(r-4.6-arm64)crywolf_2.5.0.9000.tgz(r-4.5-x86_64)crywolf_2.5.0.9000.tgz(r-4.5-arm64)
crywolf_2.5.0.9000.tar.gz(r-4.7-arm64)crywolf_2.5.0.9000.tar.gz(r-4.7-x86_64)crywolf_2.5.0.9000.tar.gz(r-4.6-arm64)crywolf_2.5.0.9000.tar.gz(r-4.6-x86_64)
crywolf_2.5.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
crywolf/json (API)

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

Bug tracker:https://github.com/diogoprov/crywolf/issues

Pkgdown/docs site:https://provetelab.org

Datasets:
  • curiango - Passive acoustic monitoring of the Common Pauraque in the Pantanal
  • pika - Surveys of the American pika in five park units of the western United States

On CRAN:

Conda:

5.36 score 34 scripts 36 exports 28 dependencies

Last updated from:7d634b89fd (on main). Checks:13 OK, 2 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK655
linux-devel-x86_64OK451
source / vignettesOK256
linux-release-arm64OK573
linux-release-x86_64OK402
macos-release-arm64OK422
macos-release-x86_64OK642
macos-oldrel-arm64OK526
macos-oldrel-x86_64OK610
windows-devel-arm64WARNING1080
windows-devel-x86_64OK740
windows-release-arm64WARNING1103
windows-release-x86_64OK722
windows-oldrel-x86_64OK507
wasm-releaseOK251

Exports:as_draws_dffp_aggregatefp_calibratefp_calibrate_fitfp_compilefp_datafp_data_widefp_draws_datafp_effectsfp_gap_priorfp_loo_weightsfp_occufp_occu_dynfp_occu_mcfp_occu_msfp_occu_rnfp_ppcfp_prior_predictivefp_priorsfp_read_birdnetfp_read_sheepdogfp_read_validationfp_review_priorityfp_richnessfp_sbcfp_sitesfp_stan_filefp_state_drawsfp_threshold_sweepfp_to_unmarkedfp_verification_curveloosimulate_fpsimulate_fp_dynsimulate_fp_mssimulate_fp_rn

Dependencies:abindbackportscallrcheckmateclidistributionalfsgenericsglueinstantiatelifecycleloomagrittrmatrixStatsnumDerivotelpillarpkgconfigposteriorprocessxpspurrrR6rlangtensorAtibbleutf8vctrs

Several species at once: the multispecies model
The model | Data | Species and community | How much does the false-positive rate vary? | What tells the effects apart | Simulations | Design | Results | Convergence and time | Centred parametrization with 50 species | Grid of parametrizations | Recovery | A rare species and a species without verification | fs and mixed | Simulation-based calibration | A dataset of real size | Threads | Time and convergence | Co-occurrence in a joint species distribution model | How well the associations are recovered | References

Last update: 2026-11-27
Started: 2026-11-13

Use from one night to the next
The model | Results | Posterior predictive check | Comparison with independent site-nights | Validation in simulation | A second data set

Last update: 2026-11-26
Started: 2026-11-02

Detection that depends on abundance: the Royle-Nichols model
The model | Fitting and checking | Calibration | Recovery across designs | Few sites and the prior | What the model can and cannot say | References

Last update: 2026-11-25
Started: 2026-11-25

Case study: the Common Pauraque in the Pantanal
The data | Fitting | Convergence | How often does each classifier err? | Occupancy with and without false positives | Does the false-positive rate track the environment? | Model comparison | Posterior predictive checks | Predicted occupancy | References

Last update: 2026-11-19
Started: 2026-10-15

Coming from unmarked::occuFP()
The data layout | The same model fitted both ways | Formulas | What crywolf adds | Predictions | References

Last update: 2026-11-19
Started: 2026-10-15

From BirdNET output to an occupancy model
Two kinds of checking | Example files | Reading the files | Building the occasions | Fitting the model | With real files | References

Last update: 2026-11-19
Started: 2026-10-22

Introduction to crywolf
Introduction | Installation | Example data | The multiple-methods design | Simulated data | Your own data | The multiple-methods false-positive occupancy model | Basic model description | Parameter names | Fitting the constant-rate model with fp_occu() | Convergence and model adequacy | Convergence | Posterior predictive check | Modelling the false-positive rate | Why the occupancy slope is biased | A false-positive rate that tracks the occupancy covariate | A false-positive rate that tracks the confusing gradient | Sensitivity to the priors | Variation that the covariates do not explain | Model comparison with LOO | Prediction | Site-level estimates | More model options | Detection covariates and recorder effects | The observation-confirmation design | Next steps | References

Last update: 2026-11-19
Started: 2026-10-14

Reporting a crywolf analysis
1. The model and why | 2. Priors, with a reason for each | 3. Computation | 4. Model adequacy and comparison | 5. The posterior | 6. Sensitivity to the priors | 7. Data and code | A template | References

Last update: 2026-11-19
Started: 2026-10-22

Performance
A large dataset over the versions | What you can do | Small fits | Tried without success

Last update: 2026-10-26
Started: 2026-10-22

Checking calibration and how much to verify
The workflow | How much to verify | What to expect | Calibrating a fitted model | Is the computation right? | Plotting

Last update: 2026-10-25
Started: 2026-10-14

Detections that come in runs
The model | Fitting | Results | Does the model reproduce the runs? | Posterior predictive check and LOO | When to use it | References

Last update: 2026-10-24
Started: 2026-10-22

False-positive rates that vary among sites and occasions
Unexplained variation among sites | The model | The data | Results | Costs and caveats | Variation among occasions | Which to use

Last update: 2026-10-24
Started: 2026-10-22

Site effects on detection and false positives
The model | Simulations | Design | The occupancy slope | The standard deviations of the site effects | Convergence and cost | Simulation-based calibration | The curiango data | Leave-one-site-out comparison | Which to use | References

Last update: 2026-10-24
Started: 2026-10-24

Choosing a classifier threshold
Thresholds from reviewed clips | Running the sweep | Results | False positives that follow the conditions of the night | Reading a sweep | References

Last update: 2026-10-24
Started: 2026-10-22

The Stan model
Data | Binomial rows | Parameters | Likelihood | Parallel likelihood | Priors and model block | Generated quantities | Modifying a copy | References

Last update: 2026-10-24
Started: 2026-10-15

Planning a study
1. What the classifier is likely to do | 2. What the priors imply for the planned design | 3. Whether the design can answer the question | 4. Choices that are cheap to make now | 5. After the data are in | References

Last update: 2026-10-22
Started: 2026-10-22

Simulating false-positive regimes
What a simulation returns | Three false-positive regimes | Homogeneous | Unstructured | Structured | The observation process | From one dataset to a calibration check | References

Last update: 2026-10-16
Started: 2026-10-15

Readme and manuals

Help Manual

Help pageTopics
Stability of the crywolf interfacecrywolf-api
Output names and interpretationcrywolf-output output-names
Passive acoustic monitoring of the Common Pauraque in the Pantanalcuriango
Detections and confirmations per occasionfp_aggregate
Simulation-based calibration check for a study designfp_calibrate
Calibration of a fitted model on data like the real onesfp_calibrate_fit
Compile (or load) the Stan modelfp_compile
Assemble data for a false-positive occupancy modelfp_data
Assemble data from detection matricesfp_data_wide
Detection histories over the draws of a classifier calibrationfp_draws_data
Marginal effect of a covariatefp_effects plot.fp_effects
A prior for the gap from validated detectionsfp_gap_prior
Model weights by stackingfp_loo_weights
Fit a Bayesian false-positive occupancy modelfp_occu
Dynamic (multi-season) false-positive occupancy modelas_draws_df.fp_occu_dyn fp_occu_dyn print.fp_occu_dyn summary.fp_occu_dyn
Fit the model to draws of the detection historiesas_draws_df.fp_occu_mc fp_occu_mc print.fp_occu_mc print.summary.fp_occu_mc summary.fp_occu_mc
Multispecies false-positive occupancy modelas_draws_df.fp_occu_ms fp_occu_ms print.fp_occu_ms summary.fp_occu_ms
Fit a Royle-Nichols occupancy model with false positivesfp_occu_rn
Methods for fp_occu fitsas_draws_df.fp_occu coef.fp_occu fp_occu-methods loo.fp_occu predict.fp_occu print.fp_occu print.summary.fp_occu summary.fp_occu
Posterior predictive check for a false-positive occupancy modelfp_ppc
Prior predictive checkfp_prior_predictive plot.fp_prior_predictive
Prior settings for fp_occu()fp_priors
Read BirdNET selection tablesfp_read_birdnet
Read an export of the sheepdog packagefp_read_sheepdog
Read the verdicts of a clip reviewfp_read_validation
Review priority of each site, for a directed review round of sheepdogfp_review_priority
Species richness of each site from a multispecies modelfp_richness
Simulation-based calibrationfp_sbc plot.fp_sbc
Site-level estimatesfp_sites plot.fp_sites
Path to the Stan programfp_stan_file
Posterior draws of the occupancy states of a multispecies modelfp_state_draws
Fit the model at several classifier thresholdsfp_threshold_sweep plot.fp_threshold_sweep
Convert data for unmarked::occuFP()fp_to_unmarked
Coverage as a function of verification effortfp_verification_curve
Methods for Royle-Nichols fitsas_draws_df.fp_occu_rn fp_occu_rn-methods loo.fp_occu_rn print.fp_occu_rn simulate.fp_occu_rn summary.fp_occu_rn
Surveys of the American pika in five park units of the western United Statespika
Plot the results of a calibration checkplot.fp_calibration
Plot a fitted modelplot.fp_occu
Plot a posterior predictive checkplot.fp_ppc
Predicted probabilities of a fitted multispecies modelpredict.fp_occu_ms
Simulate data for a false-positive occupancy modelsimulate_fp
Simulate data for a dynamic false-positive occupancy modelsimulate_fp_dyn
Simulate data for a multispecies false-positive occupancy modelsimulate_fp_ms
Simulate data for a Royle-Nichols model with false positivessimulate_fp_rn
Simulate data from a fitted modelsimulate.fp_occu
Simulate data from a fitted dynamic modelsimulate.fp_occu_dyn
Simulate data from a fitted multispecies modelsimulate.fp_occu_ms