estimate_cross_lrv(); estimate_onesided_lrv() sums k(j/K) T^{-1} sum_t a_{t+j} b_t' as in the convention of Chang (2000, p. 909); the Quadratic Spectral kernel now uses all lags (its weights do not vanish beyond the bandwidth). The automatic bandwidth is Andrews (1991) applied to v_t.granger_test(): the modified Wald statistic ignored the covariances between the tested coefficients (it summed squared t ratios). It now uses Sigma_e[i, i] (X'X)^{-1} for the tested block (Chang, 2000, eq. 20); the chi-square p-value is conservative (Theorem 2).irf(): the responses used only Pi_1 as a VAR(1) matrix, and the "bootstrap" intervals added random noise to the point estimates. The responses are now those of the levels VAR implied by the estimates, and the intervals come from a recursive-design residual bootstrap that re-estimates the model. fevd() inherits the correction.forecast(): forecasts were Pi_1 times the last fitted second difference. They are now level forecasts from the implied levels VAR, with the forecast error variance sum Psi_i Sigma_e Psi_i'.ic_table() returned nothing; it now reports the criteria from the stored data. Lag selection compares all lag orders on a common sample and counts n p parameters per equation (there is no constant).data, XtX_inv and N_hat.Implements Residual-Based Fully Modified VAR (RBFM-VAR) estimator following Chang (2000).
Core estimation:
rbfmvar(): Main estimation function for RBFM-VAR models.Lag selection:
ic_table(): Display information criteria comparison.Long-run variance estimation:
Inference:
granger_test(): Granger non-causality testing with modified Wald statistics.granger_matrix(): Pairwise Granger causality tests.Impulse response analysis:
irf(): Orthogonalized impulse response functions.Forecast error variance decomposition:
fevd(): Cholesky-identified variance decomposition.Forecasting:
forecast(): Out-of-sample forecasting with prediction intervals.Methods:
print(), summary(), plot() methods for all major objects.coef(), residuals(), fitted(), vcov() extractors.Chang, Y. (2000). Vector Autoregressions with Unknown Mixtures of I(0), I(1), and I(2) Components. Econometric Theory, 16(6), 905-926. doi:10.1017/S0266466600166058