Learn R Programming

MultiATSM (version 1.4.0)

Fitgraphs: Model fit graphs for all models

Description

Model fit graphs for all models

Usage

Fitgraphs(
  ModelType,
  WishFitgraphs,
  ModelPara,
  NumOut,
  Economies,
  PathsGraphs,
  Folder2save,
  verbose
)

Arguments

ModelType

A character vector indicating the estimated model type

WishFitgraphs

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

ModelPara

List of model parameter estimates (See the Optimization function)

NumOut

A list of outputs containing the model fit, IRFs, FEVDs, GIRFs, GFEVDs and Term premia

Economies

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

PathsGraphs

Path of the folder in which the graphs will be saved

Folder2save

Desired folder path to save outputs

verbose

Logical flag controlling function messaging

Available Methods

- `autoplot(object, type = "Fit")`

Examples

Run this code
data("ParaSetEx")
data("NumOutEx")
ModelType <- "JPS original"
Economy <- "Brazil"

Fitgraphs(ModelType, WishFitgraphs = 1, ModelParaEx, NumOutEx, Economy, PathsGraphs = NULL,
          Folder2save = NULL, verbose = FALSE)

Run the code above in your browser using DataLab