Do you have any comment about the RStudio package “DynareR: A Seamless Integration of R and Dynare”? Have you ever used it? Recommend any package in R to DSGE models?
I just had a quick look and it seems to simply be a wrapper for the Dynare Octave routines. Thus, there is not really any gain except for having the model output in R for e.g. plotting.
My understanding is that https://gecon.r-forge.r-project.org/ is the de facto standard in R.
Thank you for your interest in DynareR
package, @Fabio1. Thank you
dynare
team for your efforts.
I am the author of DynareR
package.
DynareR
package started as a wrapper around dynare
and Octave
usable in R Markdown
documents on Windows only. However, based on
suggestions from its users, the package has improved as follows:
-
DynareR
is platform-indepedent, it works on all the major
Operating Systems -
If
dynare
andOctave
are installed in the standard location,
DynareR
will automatically do all the configurations and
prerequisites to run dynare models -
You can embed
dynare
codes inR Markdown
orQuarto
documents.
You don’t have to openOctave
,dynare
and back and forth. To
embeddynare
code use the format below:
```{dynare}
First line of dynare codes
Second line of dynare codes
Last line of dynare codes
```
-
DynareR
allows you to run alldynare
models that live in
particular path:run_models()
will run all thedynare
models in
the current working directory,
run_models("path/to/your/fooDirectory*")
(note the * at the end)
will run all thedynare
models inpath/to/your/fooDirectory
,
whilerun_models(c("model1","model2","model3")
will run models 1,
2, and 3 at once. -
DynareR
is designed to create separate folder for the outputs of
each model. For example if you runrun_models("model1")
, a folder
model1
will created to put the outputs. -
You can run
dynare
codes in base R or file with.R
extension.
For example save yourdynare
codes in an R objectdynareCode
,
then executerun_dynare(code=dynareCode,model="modelName")
-
You can use
import_log
function to readdynare
log file into R
as a list of dataframes. You can access the list using
dynare$modelName
. You can further customise it in R as you wish,
for example generate tables (usingkable
,flextable
,huxtable
and so on) or fetch values dynamically.
Please look at the package
README, or CRAN
page for
more details. You can also download the example
files.
Thank you once again.