View source: R/BiasCorrection.R
| Bias_Correc_VAR | R Documentation |
Estimates an unbiased VAR(1) using stochastic approximation (Bauer, Rudebusch and Wu, 2012)
Bias_Correc_VAR(
ModelType,
BRWinputs,
RiskFactors,
Economies,
FactorLabels,
GVARinputs = NULL,
JLLinputs = 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". |
BRWinputs |
list. Contains the necessary inputs for the BRW model estimation:
|
RiskFactors |
numeric matrix ( |
Economies |
character vector. Names of the |
FactorLabels |
list. Labels for all variables in the model. |
GVARinputs |
list. Inputs for GVAR model estimation (see |
JLLinputs |
list. Inputs for JLL model estimation (see |
verbose |
logical. Flag controlling function messaging. Default TRUE. |
Bias-corrected VAR parameters based on the framework of Bauer, Rudebusch and Wu (2012). The list contains:
KOZ_BC: estimated intercept (K x 1);
K1Z_BC: estimated feedback matrix (K x K);
SSZ_BC: estimated variance-covariance matrix (K x K);
dist: root mean square distance (scalar);
Td denotes the model time series dimension.
C number of countries in the system.
K denotes the total number of risk factors.
Bauer, Rudebusch and, Wu (2012). "Correcting Estimation Bias in Dynamic Term Structure Models"
This function offers an independent R implementation that is informed
by the conceptual framework outlined in Bauer, Rudebusch and Wu (2012), but adapted to the
present modeling context. Related Matlab routines are available on Cynthia Wu's
website (https://sites.google.com/view/jingcynthiawu/).
data(RiskFacFull)
Factors <- t(RiskFacFull[1:7, ])
BRWinputs <- list(
Cent_Measure = "Mean", gamma = 0.4, N_iter = 1000, N_burn = 100,
B = 10, check = 1, B_check = 5000
)
Economies <- "China"
N <- 3
ModelType <- "JPS original"
FactorLabels <- NULL
BRWpara <- Bias_Correc_VAR(ModelType, BRWinputs, Factors, Economies, FactorLabels, verbose = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.