Skip to content

Releases: bbsBayes/bbsBayes2

1.1.2.1

10 Oct 12:17
Compare
Choose a tag to compare

Fixed critical error in the non-hierarchical first-difference model.

In versions 1.1.0 and 1.1.1, the first-difference models, non-hierarchical variant included a critical coding error that caused strongly biased trend estimates.
If you have run the non-hierarchical first-difference models in these versions, you should update the package and re-run all models.
Sorry folks.

small fixes to citation and small bugs in run_model

1.1.2

04 Oct 17:35
3abe0de
Compare
Choose a tag to compare

What's Changed

2024 release. Includes access to the 2024 release of the BBS database (observations from 1966 through to 2023).
adds options to generate spaghetti plots of population trajectories in plot_indices. Spaghetti plots show a selection of posterior draws of the population trajectories as many distinct lines. These lines provide a different way to summarise the uncertainty of the population trajectories that separates the uncertainty of the trends (shape of the population trajectory) from the uncertainty in the mean abundance (vertical placement on the graphs).

adds options to estimate trends from any model using a gam-based smooth. The gam_smooths argument in the generate_indices(gam_smooths = TRUE) function creates an array of posterior draws of gam smooths through the population trajectory. These posterior draws can be used in the generate_trends(gam = TRUE) function to estimate trends and their uncertainties based on these smooths, for any custom range of dates. These smooth trends provide an alternative to the end-point trends that are the default in bbsBayes2. If the gam argument is set to TRUE, all of the trend and population change calculations are based on the posterior array of smooths, rather than the posterior array of annual indices. Calculating the smooths in generate_indices requires significantly more time and so the gam_smooths option is set to FALSE by default.

adds informative error messages to: a) identify challenges with interpreting the observed annual means relative to estimate trajectories for composite regions (all except stratum); b) identify species and time-periods where analyses may be complicated by changes in species taxonomy (see bbsBayes2::species_notes); and c) identify when the strata_custom optional sf object passed to stratify does not have the correct crs and strata_name column type.

prepare_data now exports columns including latitude and longitude of each BBS route start-location in the raw_data component of the output list.

fix a number of errors and issues identified in version 1.1.1.

Full Changelog: v1.1.1...v1.1.2

1.1.1

31 Aug 19:12
Compare
Choose a tag to compare

Releases 1.1.0 represents an update to the package from 1.0.0 to access the most recent release of BBS database (2023 - including field observations from 1966 - 2022).
1.1.1 represents a patch to correct some failing checks and tests in 1.1.0

In addition, there have been some fixes and additional capacity that relate to the following issues:
#10 adds some code to the first_difference, spatial model to force 0 spatial variance in 2020 - the year when the BBS was cancelled and so there are no data and therefore no information with which to meaningfully estimate the variance in annual differences among strata.
#50 allows the plot_map() function to plot any of the numerical values in the output from generate_trends(). e.g., to display trend uncertainty by plotting the credible limits or width of the credible intervals of the trend estimates, or to display the mean relative abundance among strata during the trend period. Example added to the Advanced Vignette.
#52 newest database release to include field observations from 1966 - 2022.
#26 allows for the use of highest posterior density intervals in the generate_indices() and generate_trends() functions. HPDI often provide a better description of the posterior distribution, particularly for skewed distributions, such as those from a log-transformed predicted count (i.e., the indices of annual relative abundance). Example added to the Advanced Vignette.
#41 run_model() function by default now cleans up the .csv files created by Stan, once the model has finished and has been saved to .rds file (also done by default). Saves local disk space, as once the model output is saved in the rds file, the csv files are redundant.

2023 Release and added functions

27 Aug 13:05
7086cf1
Compare
Choose a tag to compare

This release represents an update to the package to access the most recent release of BBS database (2023 - including field observations from 1966 - 2022).

In addition, there have been some fixes and additional capacity that relate to the following issues:
#10 adds some code to the first_difference, spatial model to force 0 spatial variance in 2020 - the year when the BBS was cancelled and so there are no data and therefore no information with which to meaningfully estimate the variance in annual differences among strata.
#50 allows the plot_map() function to plot any of the numerical values in the output from generate_trends(). e.g., to display trend uncertainty by plotting the credible limits or width of the credible intervals of the trend estimates, or to display the mean relative abundance among strata during the trend period. Example added to the Advanced Vignette.
#52 newest database release to include field observations from 1966 - 2022.
#26 allows for the use of highest posterior density intervals in the generate_indices() and generate_trends() functions. HPDI often provide a better description of the posterior distribution, particularly for skewed distributions, such as those from a log-transformed predicted count (i.e., the indices of annual relative abundance). Example added to the Advanced Vignette.
#41 run_model() function by default now cleans up the .csv files created by Stan, once the model has finished and has been saved to .rds file (also done by default). Saves local disk space, as once the model output is saved in the rds file, the csv files are redundant.

1.0.0

28 Jul 21:07
0e14cb7
Compare
Choose a tag to compare

First official release of the bbsBayes2 package!