View source: R/irf.varshrinkest.R
| irf.varshrinkest | R Documentation |
Computes the impulse response coefficients of a VAR(p) (or transformed VECM to VAR(p)) for n.ahead steps.
## S3 method for class 'varshrinkest'
irf(
x,
impulse = NULL,
response = NULL,
n.ahead = 10,
ortho = TRUE,
cumulative = FALSE,
boot = TRUE,
ci = 0.95,
runs = 100,
seed = NULL,
...
)
x |
Object of class "varshrinkest",
generated by |
impulse |
A character vector of the impulses, default is all variables. |
response |
A character vector of the responses, default is all variables. |
n.ahead |
Integer specifying the steps. |
ortho |
Logical, if TRUE (the default) the orthogonalised impulse response coefficients are computed (only for objects of class 'varshrinkest'). |
cumulative |
Logical, if TRUE the cumulated impulse response coefficients are computed. The default value is false. |
boot |
Logical, if TRUE (the default) bootstrapped error bands for the imuplse response coefficients are computed. |
ci |
Numeric, the confidence interval for the bootstrapped errors bands. |
runs |
An integer, specifying the runs for the bootstrap. |
seed |
An integer, specifying the seed for the rng of the bootstrap. |
... |
Currently not used. |
This function runs vars::irf() for an object of class "varshrinkest".
An object of class "varirf", computed by vars::irf().
irf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.