Skip to contents

Summarise the expected dry:wet ratio for the population of samples the model was fitted to.

Usage

kb_predict_wetdry(
  fit,
  ...,
  conf_level = 0.95,
  estimate = stats::median,
  sig_fig = 3
)

Arguments

fit

A kb_fit_wetdry object.

...

These dots are for future extensions and must be empty.

conf_level

A number greater than 0 and less than 1 giving the compatibility-interval level.

estimate

A function that reduces a numeric vector of posterior draws to a single estimate, such as median or mean.

sig_fig

A whole number of significant figures for summary output.

Value

A kb_predictions object: a one-row tibble with estimate, lower, and upper columns summarising the posterior distribution of the expected dry:wet ratio.

Details

A single estimate, pooled over the months, sites, and tissues of the samples supplied to the fit; to estimate for one season, fit the model to that season's samples.

Examples

kb_predict_wetdry(fit_wetdry_sim_nereo)
#> <kb_predictions> response: dry_wet_ratio
#> # A tibble: 1 × 3
#>   estimate  lower  upper
#>      <dbl>  <dbl>  <dbl>
#> 1    0.089 0.0866 0.0915