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
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)
#> Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
#> ℹ Please use tidy evaluation idioms with `aes()`.
#> ℹ See also `vignette("ggplot2-in-packages")` for more information.
#> ℹ The deprecated feature was likely used in the MultiATSM package.
#> Please report the issue at
#> <https://github.com/rubensmoura87/MultiATSM/issues>.
#> $Brazil
#> $Brazil$Gl_Eco_Act
#>
#> $Brazil$Eco_Act.Brazil
#>
#> $Brazil$Level.Brazil
#>
#>