Import dynare output result file into R.
This is a basic example which shows you how to import a ’*_results.mat’ file
library(dynar)
model <- mat2r("inst/main_basic_results.mat") %>%
clean_dynare()
str(model, 1)
#> List of 9
#> $ M :List of 59
#> $ oo :List of 14
#> $ options :List of 230
#> $ estim.params : NULL
#> $ bayestopt : NULL
#> $ dataset : NULL
#> $ estimation.info:List of 21
#> $ dataset.info : NULL
#> $ oo.recursive : NULL
model %>%
irf_long() %>%
autoplot(filter_shock = "chi",
filter_var = c("data_qhc", "data_qhd", "data_IHc", "data_IHd"))
Please note that the ‘dynar’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.