Skip to contents

Summarise the expected dry:wet ratio as a single estimate. Equivalent to kb_predict_wetdry().

Usage

# S3 method for class 'kb_fit_wetdry'
predict(object, ..., conf_level = 0.95, estimate = stats::median, sig_fig = 3)

Arguments

object

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.

Examples

predict(fit_wetdry_sim_macro)
#> <kb_predictions> response: dry_wet_ratio
#> # A tibble: 1 × 3
#>   estimate lower upper
#>      <dbl> <dbl> <dbl>
#> 1    0.128 0.124 0.131