include_IRF {DynareR}R Documentation

Embed the graphs of Impulse Response Function (IRF) in R Markdown document

Description

Use this function to include Dynare IRF into the R Markdown document

Usage

include_IRF(path = ".", model = "", IRF = "")

Arguments

path

A character string for the path to the IRF graph.

model

Object or a character string representing the name of the Dynare model file (.mod or .dyn extension)

IRF

A character string for the name of the Impulse Response Function as defined in the Dynare codes.

Value

Set of Dynare (open-source software for DSGE modelling) outputs

Author(s)

Sagiru Mati, ORCID: 0000-0003-1413-3974

References

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

See Also

Other important functions: DynareR, add_matlab_path(), add_path(), eng_dynare(), import_log(), input_tex(), run_dynare(), run_models(), set_dynare_version(), set_octave_path(), write_dyn(), write_mod()

Examples

## 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)

[Package DynareR version 0.1.4 Index]