| rbfmvar | R Documentation |
Estimates a Residual-Based Fully Modified Vector Autoregression (RBFM-VAR) model following Chang (2000). The RBFM-VAR procedure extends Phillips (1995) FM-VAR to handle any unknown mixture of I(0), I(1), and I(2) components without prior knowledge of the number or location of unit roots.
rbfmvar(
data,
lags = 2,
max_lags = 8,
ic = "none",
kernel = "bartlett",
bandwidth = -1,
level = 95
)
data |
A numeric matrix or data frame containing the time series variables. Must have at least 2 columns. |
lags |
Integer. The VAR lag order p. Must be at least 1. Default is 2. |
max_lags |
Integer. Maximum number of lags to consider for information criterion selection. Default is 8. |
ic |
Character string specifying the information criterion for lag
selection: |
kernel |
Character string specifying the kernel for long-run variance
estimation: |
bandwidth |
Numeric. Bandwidth for kernel estimation. If |
level |
Numeric. Confidence level for coefficient intervals (0-100). Default is 95. |
The RBFM-VAR model is specified as:
\Delta^2 y_t = \sum_{j=1}^{p-2} \Gamma_j \Delta^2 y_{t-j} + \Pi_1 \Delta y_{t-1} + \Pi_2 y_{t-1} + e_t
where \Delta is the difference operator and \Delta^2 = \Delta \circ \Delta.
The FM+ correction eliminates the second-order asymptotic bias that arises from the correlation between the regression errors and the innovations in integrated regressors. The estimator achieves:
Zero mean mixed normal limiting distribution
Chi-square Wald statistics for hypothesis testing
Robustness to unknown integration orders
An object of class "rbfmvar" containing:
OLS coefficient matrix.
FM+ corrected coefficient matrix.
Standard errors for FM+ coefficients.
Coefficient matrices for \Delta y_{t-1}.
Coefficient matrices for y_{t-1}.
Coefficient matrices for \Delta^2 y_{t-j} (if p >= 3).
Residual covariance matrix.
Long-run variance components.
One-sided long-run covariance for FM correction.
Matrix of residuals from FM+ estimation.
Matrix of fitted values.
Number of observations in original data.
Effective sample size after differencing.
Number of variables.
VAR lag order used.
Bandwidth used for LRV estimation.
Kernel used for LRV estimation.
Information criterion used (if any).
Variable names.
The matched call.
Chang, Y. (2000). Vector Autoregressions with Unknown Mixtures of I(0), I(1), and I(2) Components. Econometric Theory, 16(6), 905-926. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1017/S0266466600166071")}
Phillips, P. C. B. (1995). Fully Modified Least Squares and Vector Autoregression. Econometrica, 63(5), 1023-1078. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2307/2171721")}
Andrews, D. W. K. (1991). Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation. Econometrica, 59(3), 817-858. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2307/2938229")}
# Simulate a simple VAR(2) process
set.seed(123)
n <- 200
e <- matrix(rnorm(n * 3), n, 3)
y <- matrix(0, n, 3)
for (t in 3:n) {
y[t, ] <- 0.3 * y[t-1, ] + 0.2 * y[t-2, ] + e[t, ]
}
colnames(y) <- c("y1", "y2", "y3")
# Estimate RBFM-VAR
fit <- rbfmvar(y, lags = 2)
summary(fit)
# With automatic lag selection
fit_aic <- rbfmvar(y, max_lags = 6, ic = "aic")
summary(fit_aic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.