Learn R Programming

BGVAR (version 2.0.0)

plot.bgvar: Plotting function for fitted values

Description

Plots the fitted values in red of either the country VARs or the GVAR (default) along with the original data.

Usage

# S3 method for bgvar
plot(x, ..., global = TRUE, resp = NULL)

Arguments

x

an object of class bgvar.

...

additional arguments.

global

if TRUE global fitted values are plotted, otherwise country fitted values.

resp

if only a subset of variables or countries should be plotted. If set to default value NULL all countries/variables are plotted.

Value

No return value.

Examples

Run this code
# NOT RUN {
library(BGVAR)
data(eerData)
model.ssvs <- bgvar(Data=eerData,W=W.trade0012,plag=1,saves=100,burns=100,
                    prior="SSVS")
summary(model.ssvs)
plot(model.ssvs, resp="EA")
# }

Run the code above in your browser using DataLab