Description Usage Arguments Value Examples
Computes and plots the impulse response function in black/white manner for suitability with common journals.
1 2 |
var |
Object package with impulse response function, i.e. type
|
impulse |
String identifier which variable experiences a shock. |
response |
String identfier which variable is the response. |
n.ahead |
Optional parameter to later choose a smaller x-range for the impulse response function. Argument expects a numeric value with the maximum step. Default is 10. |
filename |
Filename to export the table as LaTeX. Default is
|
width |
Width of exported figure (default: 10). |
height |
Height of exported figure (default: 6). |
... |
Further arguments passed on to |
Object of ggplot
.
1 2 3 4 5 6 7 8 9 10 | library(vars)
data(Canada)
# For VAR
var.2c <- VAR(Canada, p = 2, type = "const")
## Not run:
impulseResponsePlot(var.2c, impulse = "e", response = "prod", ylab = "Production")
impulseResponsePlot(var.2c, impulse = "e", response = "prod", ylab = "Production",
n.ahead = 5, filename = "irf_e_prod.pdf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.