include_IRF | R Documentation |
Use this function to include Dynare
IRF into the R Markdown document
include_IRF(path = ".", model = "", IRF = "", crop = TRUE)
path |
A character string for the path to the IRF graph. |
model |
Object or a character string representing the name of the |
IRF |
A character string for the name of the Impulse Response Function as defined in the |
crop |
Whether to crop the white space around the graph |
Set of Dynare
(open-source software for DSGE modelling) outputs
Sagiru Mati, ORCID: 0000-0003-1413-3974
Yusuf Maitama Sule (Northwest) University Kano, Nigeria
SMATI Academy
Bob Rudis (2015).Running Go language chunks in R Markdown (Rmd) files. Available at: https://gist.github.com/hrbrmstr/9accf90e63d852337cb7
Yihui Xie (2019). knitr: A General-Purpose Package for Dynamic Report Generation in R. R package version 1.24.
Yihui Xie (2015) Dynamic Documents with R and knitr. 2nd edition. Chapman and Hall/CRC. ISBN 978-1498716963
Yihui Xie (2014) knitr: A Comprehensive Tool for Reproducible Research in R. In Victoria Stodden, Friedrich Leisch and Roger D. Peng, editors, Implementing Reproducible Computational Research. Chapman and Hall/CRC. ISBN 978-1466561595
Other important functions:
DynareR-package
,
add_matlab_path()
,
add_path()
,
eng_dynare()
,
import_log()
,
input_tex()
,
run_dynare()
,
run_models()
,
set_dynare_version()
,
set_matlab_path()
,
set_octave_path()
,
write_dyn()
,
write_mod()
## Not run:
library(DynareR)
demo(bkk)
include_IRF(model="bkk",IRF="E_H2")
# The above code fetches the IRF graph from "bkk/bkk/graphs/bkk_IRF_E_H2.pdf"
# Alternatively, the `path` argument can be used as follows
include_IRF(path="bkk/bkk/graphs/bkk_IRF_E_H2.pdf")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.