Description Usage Format See Also Examples
This object contains an example fitted Bayesian competition
model outputted by comp_bayes_lm()
.
1 |
A list subclass containing the following elements:
Prior parameters supplied to comp_bayes_lm()
Posterior parameters outputted by comp_bayes_lm()
The formula object used in model fitting
Other example data objects:
blocks_ex
,
census_1_ex
,
census_2008_bw
,
census_2014_bw
,
census_2_ex
,
focal_vs_comp_ex
,
growth_ex
,
growth_spatial_ex
,
growth_toy
,
species_bw
,
study_region_bw
,
study_region_ex
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(dplyr)
library(yardstick)
# 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)
# Plot posterior parameters
comp_bayes_lm_ex %>%
autoplot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.