Skip to contents

BBS Data

Functions for downloading and managing BBS data

fetch_bbs_data()
Fetch Breeding Bird Survey dataset
have_bbs_data()
Check whether BBS data exists locally
load_bbs_data()
Load Breeding Bird Survey data
remove_cache()
Remove bbsBayes2 cache

Processing data

Functions for processing BBS data according to the type of models to be run

stratify()
Stratify and filter Breeding Bird Survey data
prepare_data()
Filter for data quality
prepare_spatial()
Define neighbouring strata for spatial analyses
prepare_model()
Prepare model parameters

Stan models

Functions for running Stan models via cmdstanr, as well as for saving and evaluating convergence

run_model()
Run Bayesian model
save_model_run()
Save output of run_model()
copy_model_file()
Copy model file
get_convergence()
Convergence metrics
get_model_vars()
Get model variables
get_summary()
Return the cmdstanr summary
have_cmdstan()
Check if cmdstan is installed

Functions for generating indices and trends from models

generate_indices()
Regional annual indices of abundance
generate_trends()
Generate regional trends

Plots

Functions for plotting indices and trends

plot_map()
Generate a map of trends by strata
plot_indices()
Generate plots of index trajectories by stratum
plot_geofacet()
Create geofacet plot of population trajectories by province/state

Helper functions

search_species()
Search for species
load_map()
Load a geographic strata map
assign_prov_state()
Categorize polygon by Province/State

Included data

bbs_data_sample
Sample BBS data
bbs_strata
List of included strata
bbs_models
Stan models included in bbsBayes2
pacific_wren_model
Example model output
species_forms
Species forms

Deprecated/Defunct functions

bbsBayes2-defunct
bbsBayes2 defunct functions
bbsBayes2-deprecated
bbsBayes2 deprecated functions