coef_hist | R Documentation |
This function draws graphs of the distribution (in the form of histogram or kernel density) of the coefficients for all the considered regressors over the part of the model space that includes this regressors (half of the model space).
bma_list |
bma object (the result of the bma function) |
BW |
Parameter indicating what method should be chosen to find bin widths for the histograms:
|
binW |
A vector with bin widths to be used to construct histograms for the regressors. The vector must be of the size equal to total number of regressors. The vector with bin widths is used only if parameter BW="vec". |
BN |
Parameter taking the values (default: BN = 0): |
num |
A vector with the numbers of bins used to be used to construct histograms for the regressors. The vector must be of the size equal to total number of regressors. The vector with bin widths is used only if parameter BN=1. |
kernel |
A parameter taking the values (default: kernel = 0): |
A list with the graphs of the distribution of coefficients for all the considered regressors.
library(magrittr)
data_prepared <- economic_growth[,1:7] %>%
feature_standardization(timestamp_col = year, entity_col = country) %>%
feature_standardization(timestamp_col = year, entity_col = country,
time_effects = TRUE, scale = FALSE)
model_space <- optimal_model_space(df = data_prepared, dep_var_col = gdp,
timestamp_col = year, entity_col = country,
init_value = 0.5)
bma_results <- bma(df = data_prepared, dep_var_col = gdp, timestamp_col = year,
entity_col = country, model_space = model_space, run_parallel = FALSE, dilution = 0)
coef_plots <- coef_hist(bma_results, kernel = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.