Learn R Programming

vars (version 0.1.7)

fanchart: Fanchart plot for objects of class varprd

Description

Time Series plots of VAR forecasts with differently shaded confidence regions (fanchart) for each endogenous variable.

Usage

fanchart(x, colors = NULL, cis = NULL)

Arguments

x
An object of class varprd; generated by predict.varest().
colors
Character vector of colors to be used for shading. If unset, a color scheme according to heat.map is used.
cis
A numeric vector of confidence intervals. If unset the sequence from 0.1 to 0.9 is used (step size 0.1).
...
Currently not used.

concept

Fanchart

References

Britton, E., P.G. Fisher and J.D. Whitley (1998), Inflation Report projections: understanding the fan chart, Bank of England Quarterly Bulletin, February, Bank of England, pages 30-37.

See Also

VAR, predict.varest , plot.varprd

Examples

Run this code
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
var.2c.prd <- predict(var.2c, n.ahead = 8, ci = 0.95)
fanchart(var.2c.prd)

Run the code above in your browser using DataLab