Description Usage Arguments Details Value Author(s) References See Also Examples
Produces a ggplot object for the results of the mtarforecast function.
1 2 |
object |
Object of class “ |
type |
numeric giving the type of plot to be computed. Allowed
values are 1 for list of “ |
... |
other arguments passed to specific methods |
Graph the strings for the outputs corresponding to the functions “mtarforecast
” which return an object of class “regim_forecast
”. The chains corresponding to the samplings in each case do not contain the burning period.
Return a ggplot object.
Valeria Bejarano vbejaranos@unal.edu.co & Andrey Rincon adrincont@unal.edu.co
Calderon, S. and Nieto, F. (2017) Bayesian analysis of multivariate threshold autoregress models with missing data. Communications in Statistics - Theory and Methods 46 (1):296–318. doi:10.1080/03610926.2014.990758.
1 2 3 4 5 6 7 | library(ggplot2)
data('datasim')
estim = mtarns(mtarinipars(tsregime(datasim$Sim$Yt,datasim$Sim$Zt),
list_model = list(pars = list(l = datasim$Sim$l,r = datasim$Sim$r,
orders = list(pj = datasim$pj)))))
forecast = mtarforecast(estim,h = 10)
autoplot.regime_forecast(forecast,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.