Collects the inputs that are used to construct the numerical and the graphical outputs
InputsForOutputs(
ModelType,
Horiz,
ListOutputWished,
OutputLabel,
WishStationarityQ,
DataFrequency,
WishGraphYields = 0,
WishGraphRiskFactors = 0,
WishOrthoJLLgraphs = 0,
WishForwardPremia = 0,
LimFP = NULL,
WishBootstrap = 0,
ListBoot = NULL,
WishForecast = 0,
ListForecast = NULL,
UnitYields = "Month"
)
List of necessary inputs to generate the graphs of the outputs of the desired model
A character vector indicating the model type to be estimated.
A numeric scalar specifying the desired analysis horizon for the outputs.
A list of desired graphical outputs. Available options are: "Fit", "IRF", "FEVD", "GIRF", "GFEVD", "TermPremia".
A string for the name of the output label to be stored.
A binary variable (1 or 0) indicating whether to impose that the largest eigenvalue under Q is strictly smaller than 1. Set to 1 to impose the restriction, or 0 otherwise.
A character vector specifying the data frequency. Available options: "Daily All Days", "Daily Business Days", "Weekly", "Monthly", "Quarterly", "Annually".
A binary variable (1 or 0) indicating whether the user wishes to generate graphs for yields. Default is 0.
A binary variable (1 or 0) indicating whether the user wishes to generate graphs for risk factors. Default is 0.
A binary variable (1 or 0) indicating whether the user wishes to generate orthogonalized JLL-based graphs. Default is 0.
A binary variable (1 or 0) indicating whether the user wishes to generate forward premia graphs. Default is 0.
A numeric vector containing the maturities associated with the start and end dates of the loan.
A binary variable (1 or 0) indicating whether the user wishes to perform bootstrap-based estimation. Default is 0.
A List containing the following four elements:
methodBS
: Desired bootstrap method: (a) 'bs' for standard residual bootstrap, (b) 'wild' for wild bootstrap,
or (c) 'block' for block bootstrap.
BlockLength
: If block bootstrap is chosen, specify the block length (numeric scalar).
ndraws
: Number of bootstrap draws.
pctg
: Confidence level expressed in basis points (numeric vector).
A binary variable (1 or 0) indicating whether the user wishes to generate forecasts. Default is 0.
A list containing the following three elements:
ForHoriz
: forecast horizon;
t0Sample
: Index of the first variable in the information set.
t0Forecast
: Index of the first forecast cut-off date.
ForType
: A string specifying the desired forecast type. Available options are: "Rolling" or "Expanding".
A character string indicating the maturity unit of yields. Options are: (i) "Month" for yields expressed in months, or (ii) "Year" for yields expressed in years. Default is "Month".
ModelType <- "JPS original"
Horiz <- 100
DesiredOutputGraphs <- c("Fit", "GIRF", "GFEVD")
OutputLabel <- "Test"
WishStationarityQ <- 1
WishGraphRiskFac <- 0
WishGraphYields <- 1
InputsList <- InputsForOutputs(ModelType, Horiz, DesiredOutputGraphs, OutputLabel,
WishStationarityQ, WishGraphYields, WishGraphRiskFac)
Run the code above in your browser using DataLab