-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
When using the function irf() specifying the impulse variable it seems that the plot has the labels wrong. Here is an example:
library(vars)
dati <- ts.union(BJsales.lead,BJsales)
var.sales <- vars::VAR(y=diff(dati),p=8)
var.irf1 <- vars::irf(var.sales,
boot=FALSE,n.ahead=8,ortho=FALSE,cumulative=FALSE)
var.irf2 <- vars::irf(var.sales,impulse="BJsales.lead",response="BJsales",
boot=FALSE,n.ahead=8,ortho=FALSE,cumulative=FALSE)
first plot lower panel peak at 3
plot(var.irf1)
lower panel peak at 4
plot(var.irf2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels