# NOT RUN {
model.ssvs <- bgvar(Data=eerData,W=W.trade0012,plag=1,draws=100,burnin=100,
prior="SSVS")
# }
# NOT RUN {
# example for class 'bgvar'
plot(model.ssvs, resp=c("EA.y","US.Dp"))
# }
# NOT RUN {
# example for class 'bgvar.resid'
res <- residuals(model.ssvs)
plot(res, resp="EA.y")
# }
# NOT RUN {
# example for class 'bgvar.pred'
fcast <- predict(model.ssvs,n.ahead=8)
plot(fcast, resp="y", cut=20)
# }
# NOT RUN {
# example for class 'bgvar.irf'
shockinfo <- get_shockinfo("chol")
shockinfo$shock <- "US.stir"; shockinfo$scale <- +1
irf.chol<-irf(model.ssvs, n.ahead=24, ident="chol", shockinfo=shockinfo)
plot(irf.chol, resp="US")
# }
# NOT RUN {
# example for class 'bgvar.fevd'
fevd.us=fevd(irf.chol,var.slct=c("US.stir"))
plot(fevd.us, resp="US.stir", k.max=10)
# }
Run the code above in your browser using DataLab