Skip to content

mislabeling in irf plot #7

@giancarlobruno

Description

@giancarlobruno

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions