Learn R Programming

MultiATSM (version 1.5.0)

FEVDandGFEVDgraphs: FEVD and GFEVD graphs for all models

Description

FEVD and GFEVD graphs for all models

Usage

FEVDandGFEVDgraphs(
  ModelType,
  NumOut,
  WishPdynamicsgraphs,
  WishYieldsgraphs,
  FEVDhoriz,
  PathsGraphs,
  OutputType,
  Economies,
  Folder2save,
  verbose
)

Arguments

ModelType

character. Estimated model type. Permissible choices: "JPS original", "JPS global", "GVAR single", "JPS multi", "GVAR multi", "JLL original", "JLL No DomUnit", "JLL joint Sigma".

NumOut

list. Computed outputs containing model fit, IRFs, FEVDs, GIRFs, GFEVDs and Term premia.

WishPdynamicsgraphs

logical. Set TRUE to generate risk factor graphs, FALSE otherwise.

WishYieldsgraphs

logical. Set TRUE to generate bond yield graphs, FALSE otherwise.

FEVDhoriz

integer. Desired horizon of analysis for the FEVDs.

PathsGraphs

character. Path of the folder in which the graphs will be saved.

OutputType

character. Available options: "FEVD", "GFEVD", "FEVD Ortho", "GFEVD Ortho".

Economies

character vector. Names of the C economies included in the system.

Folder2save

character. Folder path where the outputs will be stored.

verbose

logical. Flag controlling function messaging.

Available Methods

- `autoplot(object, type = "FEVD_Factor")`, `autoplot(object, type = "FEVD_Yields")`, `autoplot(object, type = "GFEVD_Yields")`, `autoplot(object, type = "GFEVD_Yields")`. For JLL-based models: `autoplot(object, type = "FEVD_Factor-_Ortho")`,
`autoplot(object, type = "FEVD_Yields_Ortho")`, `autoplot(object, type = "GFEVD_Yields_Ortho")`, `autoplot(object, type = "GFEVD_Yields_Ortho")`.

Examples

Run this code
data("NumOutEx")
ModelType <- "JPS original"
Economy <- "Brazil"
FEVDhoriz <- 20
FEVDandGFEVDgraphs(ModelType, NumOutEx,
  WishPdynamicsgraphs = FALSE, WishYieldsgraphs = TRUE, FEVDhoriz,
  PathsGraphs = NULL, OutputType = "FEVD", Economy,
  Folder2save = NULL, verbose = FALSE
)

Run the code above in your browser using DataLab