fevd.nlVar | R Documentation |
Use the fevd
function from package vars to compute the forecast
error variance decomposition of a VAR(p) or VECM for n.ahead
steps.
## S3 method for class 'nlVar'
fevd(x, n.ahead = 10, ...)
x |
Object of class ‘ |
n.ahead |
Integer specifying the number of steps. |
... |
Currently not used. |
The function converts the VAR or VECM computed by package tsDyn into an
object of class ‘vec2var
’, on which then the
fevd
method is applied. For details, see package
vars.
A list with class attribute ‘varfevd
’ of length
K
holding the forecast error variances as matrices.
Bernhard Pfaff
Hamilton, J. (1994), Time Series Analysis, Princeton University Press, Princeton.
Lutkepohl, H. (2006), New Introduction to Multiple Time Series Analysis, Springer, New York.
plot
for the plot method. lineVar
,
VECM
for the models.
data(zeroyld)
mod_vecm <- VECM(zeroyld, lag = 2)
fevd(mod_vecm, n.ahead = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.