Description Usage Arguments Details Value Examples
View source: R/VAR-2-estimation.R
Compute moving average coefficient of a VAR up to horizon h given its
autoregressive coefficients. Particularly useful for computing impulse
response functions.
1 | MA_coeffs(A, h)
|
A |
A numeric matrix, the autoregressive coefficients of the VAR
process. Can either be of dimension |
h |
An integer scalar, the horizon. |
The input matrix A can be either in horizontally stacked format or
companion matrix format. In the former case the dimension is K x Kp where
K is the number of variables and p is the lag length. In that case
A = [A_1, A_2, ..., A_p]. Alternatively, matrix A can be in companion
matrix format. See companion_format() for details.
An array of dimension (K x K x h+1) with the matrix of moving average
coefficients at horizon i stored as element [, , i].
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.