Learn R Programming

MultiATSM (version 1.4.0)

IRFandGIRFgraphs: IRF and GIRF graphs for all models

Description

IRF and GIRF graphs for all models

Usage

IRFandGIRFgraphs(
  ModelType,
  NumOut,
  WishPdynamicsgraphs,
  WishYieldsgraphs,
  IRFhoriz,
  PathsGraphs,
  OutputType,
  Economies,
  Folder2save,
  verbose
)

Arguments

ModelType

A character vector indicating the estimated model type

NumOut

list of computed outputs containing the model fit, IRFs, FEVDs, GIRFs, GFEVDs and perm premia

WishPdynamicsgraphs

binary variable: set 1, if the user wishes graphs to be generated; or set 0, otherwise

WishYieldsgraphs

binary variable: set 1, if the user wishes graphs to be generated; or set 0, otherwise

IRFhoriz

single numerical vector containing the desired horizon of analysis for the IRFs

PathsGraphs

Path of the folder in which the graphs will be saved

OutputType

Available options are 'IRF' and 'GIRF'

Economies

A character vector containing the names of the economies included in the system.

Folder2save

Folder path where the outputs will be stored.

verbose

Logical flag controlling function messaging.

Available Methods

- `autoplot(object, type = "IRF_Factor")`, `autoplot(object, type = "IRF_Yields")`, `autoplot(object, type = "GIRF_Yields")`, `autoplot(object, type = "GIRF_Yields")`.

- For JLL-based models other option available are: `autoplot(object, type = "IRF_Factor-_Ortho")`, `autoplot(object, type = "IRF_Yields_Ortho")`, `autoplot(object, type = "GIRF_Yields_Ortho")`, `autoplot(object, type = "GIRF_Yields_Ortho")`.

Examples

Run this code
data("NumOutEx")
ModelType <- "JPS original"
Economy <- "Brazil"
IRFhoriz <- 20
IRFandGIRFgraphs(ModelType, NumOutEx, WishPdynamicsgraphs = 0, WishYieldsgraphs = 1, IRFhoriz,
                PathsGraphs = NULL, OutputType = "GIRF", Economy, Folder2save = NULL,
                verbose = FALSE)

Run the code above in your browser using DataLab