This object contains an example fitted Bayesian competition model outputted by comp_bayes_lm().

comp_bayes_lm_ex

Format

A list subclass containing the following elements:

prior_params

Prior parameters supplied to comp_bayes_lm()

post_params

Posterior parameters outputted by comp_bayes_lm()

terms

The formula object used in model fitting

See also

Examples

#> For binary classification, the first factor level is assumed to be the event. #> Use the argument `event_level = "second"` to alter this as needed.
# Compare model predictions to observation predictions <- focal_vs_comp_ex %>% mutate(growth_hat = predict(comp_bayes_lm_ex, focal_vs_comp_ex)) predictions %>% rmse(truth = growth, estimate = growth_hat) %>% pull(.estimate)
#> [1] 0.1900981
# Plot posterior parameters comp_bayes_lm_ex %>% autoplot()
#> Picking joint bandwidth of 0.067