model_sizes {bdsm} | R Documentation |
Graphs of the prior and posterior model probabilities of the model sizes
Description
This function draws four graphs of prior and posterior model probabilities:
a) The results with binomial model prior (based on PMP - posterior model probability)
b) The results with binomial-beta model prior (based on PMP - posterior model probability)
Arguments
bma_list |
bma_list object (the result of the bma function) |
Value
A list with three graphs with prior and posterior model probabilities for model sizes:
The results with binomial model prior (based on PMP - posterior model probability)
The results with binomial-beta model prior (based on PMP - posterior model probability)
One graph combining all the aforementioned graphs
Examples
library(magrittr)
data_prepared <- bdsm::economic_growth[, 1:6] %>%
bdsm::feature_standardization(
excluded_cols = c(country, year, gdp)
) %>%
bdsm::feature_standardization(
group_by_col = year,
excluded_cols = country,
scale = FALSE
)
bma_results <- bma(
model_space = bdsm::small_model_space,
df = data_prepared,
round = 3,
dilution = 0
)
size_graphs <- model_sizes(bma_results)
[Package bdsm version 0.2.1 Index]