| Bootstrap | R Documentation |
Generates the bootstrap-related outputs
Bootstrap(
ModelType,
ModelParaPE,
NumOutPE,
Economies,
InputsForOutputs,
FactorLabels,
JLLlist,
GVARlist,
WishBC = FALSE,
BRWlist = NULL,
Folder2save = NULL,
verbose = TRUE
)
ModelType |
character. Model type to be estimated. Permissible choices: "JPS original", "JPS global", "GVAR single", "JPS multi", "GVAR multi", "JLL original", "JLL No DomUnit", "JLL joint Sigma". |
ModelParaPE |
list. Point estimates of the model parameters. See outputs from |
NumOutPE |
list. Point estimates from numerical outputs. See outputs from |
Economies |
character vector. Names of the |
InputsForOutputs |
list. Inputs for generating IRFs, GIRFs, FEVDs, GFEVDs, and Term Premia. |
FactorLabels |
list. Labels for all variables present in the model, as returned by |
JLLlist |
list. Inputs for JLL model estimation (see |
GVARlist |
list. Inputs for GVAR model estimation (see |
WishBC |
logical. Whether to estimate the physical parameter model with bias correction (see |
BRWlist |
list. Inputs for bias-corrected estimation (see |
Folder2save |
character. Folder path where outputs will be stored. Default saves outputs in a temporary directory. |
verbose |
logical. Print progress messages. Default is TRUE. |
An object of class 'ATSMModelBoot' containing:
List of model parameters for each draw
List of numerical outputs (IRFs, GIRFs, FEVDs, GFEVDs) for each draw
Confidence bounds for the chosen level of significance
InputsForOutputsmethodBS : "bs" (standard bootstrap), "wild" (wild bootstrap), "block" (block bootstrap)
BlockLength : required input for the block bootstrap method. Block length must be larger than 0 and smallar than the model time series dimension (Td).
ndraws: number of draws. Must be a positive integer.
pctg : confidence level. Must be a positive integer. Common choices are: 68, 90 and 95.
- autoplot(object, NumOutPE, type)
data("ParaSetEx")
data("InpForOutEx")
data("NumOutEx")
ModelType <- "JPS original"
Economy <- "Brazil"
FacLab <- LabFac(N = 1, DomVar = "Eco_Act", GlobalVar = "Gl_Eco_Act", Economy, ModelType)
# Adjust Forecasting setting
InpForOutEx[[ModelType]]$Bootstrap <- list(
WishBootstrap = 1, methodBS = "bs", BlockLength = 4,
ndraws = 5, pctg = 95
)
Boot <- Bootstrap(ModelType, ParaSetEx, NumOutEx, Economy, InpForOutEx, FacLab,
JLLlist = NULL,
GVARlist = NULL, WishBC = FALSE, BRWlist = NULL, Folder2save = NULL, verbose = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.