Find mean or median of OLS when DGP is VAR(1)
m_var( theta, M, RiskFactors, N, GVARinputs, JLLinputs, FactorLabels, Economies, ModelType, flag_mean = TRUE )
theta
: parameters from the feedback matrix in vector formM
: number of Monte Carlo replicationsRiskFactors
: time series of the risk factors (T x F)N
: number of country-specific spanned factors (scalar)GVARinputs
: inputs used in the estimation of the GVAR-based models (see "GVAR" function). Default is set to NULLJLLinputs
: inputs used in the estimation of the JLL-based models (see "JLL" function). Default is set to NULLFactorLabels
: string-list based which contains the labels of all variables present in the modelEconomies
: string-vector containing the names of the economies which are part of the economic systemModelType
: string-vector containing the label of the model to be estimatedflag_mean
: flag whether mean- (TRUE) or median- (FALSE) unbiased estimation is desired. Default is set to TRUEBauer, Rudebusch and, Wu (2012). "Correcting Estimation Bias in Dynamic Term Structure Models".
This function is similar to the "m_var" Matlab function available at Cynthia Wu's website (https://sites.google.com/view/jingcynthiawu/).
Useful links