plot.shrinkTVP_forc {shrinkTVP} | R Documentation |
Graphical summary of posterior predictive density
Description
plot.shrinkTVP_forc
generates plots visualizing the posterior predictive density generated by forecast_shrinkTVP
.
Usage
## S3 method for class 'shrinkTVP_forc'
plot(x, showgap = FALSE, ...)
Arguments
x |
a |
showgap |
if |
... |
further arguments to be passed to |
Value
Called for its side effects and returns invisibly.
Author(s)
Peter Knaus peter.knaus@wu.ac.at
See Also
Other plotting functions:
plot.mcmc.tvp()
,
plot.shrinkTVP()
Examples
set.seed(123)
sim <- simTVP()
train <- sim$data[1:190, ]
test <- sim$data[191:200, ]
res <- shrinkTVP(y ~ x1 + x2, train)
forecast <- forecast_shrinkTVP(res, test)
plot(forecast)
lines(sim$data$y, col = "forestgreen")
[Package shrinkTVP version 3.0.1 Index]