| run_models | R Documentation |
mod or dyn files.Use this function to execute multiple existing Dynare files.
Use run_models(model='someModel') if the Dynare files live in the current working directory.
Use run_models(model='someDirectory/someModel') if the Dynare files live in the path different from the current working directory (for example, someDirectory).
run_models(model = "*", import_log = FALSE)
model |
Object or a vector of character strings representing the names of the |
import_log |
Logical. Whether or not to import |
Set of Dynare (open-source software for DSGE modelling) outputs
Other important functions:
DynareR-package,
add_matlab_path(),
add_path(),
eng_dynare(),
import_log(),
include_IRF(),
input_tex(),
run_dynare(),
set_dynare_version(),
set_matlab_path(),
set_octave_path(),
write_dyn(),
write_mod()
library(DynareR)
## Not run:
demo(agtrend)
demo(bkk)
demo(example1)
# Provide the list of the `Dynare` files in a vector
# Ensure that "agtrend.mod", "bkk.mod" and "example1.mod"
# live in the current working directory
# Copy the dynare files to the current working directory
lapply(c("agtrend","bkk","example1"),\(x) file.copy(paste0(x,"/",x,".mod"),"."))
run_models(c("agtrend","bkk","example1")) # Run the models in the vector.
run_models() # Run all models in Current Working Directory.
# You can run all models that live in "DynareR/run_dynare/" folder
# Copy the dynare files to the 'DynareR/run_dynare' directory
lapply(c("agtrend","bkk","example1"),\(x) file.copy(paste0(x,".mod"),"DynareR/run_dynare"))
run_models("DynareR/run_dynare*") # Note the * at the end.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.