bma_summary | R Documentation |
A summary of a given model space is prepared. This include things such as posterior inclusion probability (PIP), posterior mean and so on. This is the core function of the package, because it allows to make assessments and decisions about the parameters and models.
bma_summary(
df,
dep_var_col,
timestamp_col,
entity_col,
model_space,
exact_value = TRUE,
model_prior = "uniform",
run_parallel = FALSE
)
df |
Data frame with data for the SEM analysis. |
dep_var_col |
Column with the dependent variable |
timestamp_col |
The name of the column with timestamps |
entity_col |
Column with entities (e.g. countries) |
model_space |
A matrix (with named rows) with each column corresponding to a model. Each column specifies model parameters. Compare with optimal_model_space |
exact_value |
Whether the exact value of the likelihood should be
computed ( |
model_prior |
Which model prior to use. For now there are two options:
|
run_parallel |
If |
List of parameters describing analyzed models
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)
bma_result <- bma_summary(df = data_prepared, dep_var_col = gdp,
timestamp_col = year, entity_col = country,
model_space = economic_growth_ms)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.