Learn R Programming

BGVAR (version 2.0.1)

plot.bgvar.resid: Plotting function for residuals

Description

Either plots country-residuals or the global-residuals.

Usage

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

Arguments

x

an object of class bgvar.res.

...

additional arguments.

global

if TRUE global residuals are plotted, otherwise country residuals.

resp

default to NULL. Either specify a single country or a group of variables to be 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)
res <- residuals(model.ssvs)
plot(res, resp="EA")
# }

Run the code above in your browser using DataLab