| fevd | R Documentation |
Computes the forecast error variance decomposition (FEVD) from an RBFM-VAR model.
fevd(object, horizon = 20)
object |
An |
horizon |
Integer. Number of periods for the FEVD. Default is 20. |
The FEVD shows the proportion of the forecast error variance of each variable that is attributable to shocks in each of the structural innovations. The decomposition is based on the Cholesky identification scheme, so the ordering of variables matters.
At each horizon h, the FEVD sums to 1 (100
An object of class "rbfmvar_fevd" containing:
Array of FEVD values (horizon x n x n). Element [h, i, j] is the proportion of variable i's forecast error variance at horizon h explained by shocks in variable j.
FEVD horizon.
Variable names.
Lutkepohl, H. (2005). New Introduction to Multiple Time Series Analysis. Springer-Verlag. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-3-540-27752-1")}
# Simulate VAR data
set.seed(123)
n <- 200
e <- matrix(rnorm(n * 3), n, 3)
y <- matrix(0, n, 3)
colnames(y) <- c("y1", "y2", "y3")
for (t in 3:n) {
y[t, ] <- 0.3 * y[t-1, ] + 0.2 * y[t-2, ] + e[t, ]
}
fit <- rbfmvar(y, lags = 2)
fv <- fevd(fit, horizon = 20)
plot(fv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.