plot.varstan {bayesforecast} | R Documentation |
plot methods for varstan models.
Description
Preliminary plot methods for varstan models only valid for univariate time series models. The function prints the fitted values time series, the trace and density plots for the sampled model parameters, or the residuals' posterior mean time series.
Usage
## S3 method for class 'varstan'
plot(x, prob = 0.95, ...)
Arguments
x |
An object of class |
prob |
A number |
... |
Further arguments passed to |
Value
None. Function produces a ggplot2 graph.
Examples
library(astsa)
sf1 = auto.sarima(ts = birth,iter = 500,chains = 1)
# fitted model
plot(sf1)
[Package bayesforecast version 1.0.1 Index]