Predicts population change (%) from survival and recruitment fit objects. Population change is the cumulative product of population growth rate (i.e., output of bb_predict_growth())

bb_predict_population_change(
  survival,
  recruitment,
  sex_ratio = 0.5,
  conf_level = 0.95,
  estimate = median,
  sig_fig = 3
)

Arguments

survival

An object of class 'bboufit_survival' (output of bb_fit_survival()).

recruitment

An object of class 'bboufit_recruitment' (output of bb_fit_recruitment())

sex_ratio

A number between 0 and 1 of the proportion of females at birth.

conf_level

A number between 0 and 1 of the confidence level.

estimate

A function to calculate the estimate.

sig_fig

A whole number of the significant figures to round estimates by.

Value

A tibble of the population change estimates with upper and lower credible intervals.

Examples

if (interactive()) {
  survival <- bb_fit_survival(bboudata::bbousurv_a)
  recruitment <- bb_fit_recruitment(bboudata::bbourecruit_a)
  change <- bb_predict_population_change(survival, recruitment)
}