View source: R/exdqlmForecast.R
exdqlmForecast | R Documentation |
The function estimates and plots the k-step-ahead forecasted quantile distribution from the filtered quantile estimates.
exdqlmForecast( y, start.t, k, m1, fFF = NULL, fGG = NULL, plot = TRUE, add = FALSE, cols = c("purple", "magenta"), cr.percent = 0.95 )
y |
A univariate time-series. |
start.t |
Time index at which to start the forecast. |
k |
Number of k-steps-ahead to forecast. |
m1 |
An object of class " |
fFF |
State vector for the forecast steps. |
fGG |
Evolution matrix for the forecast steps. |
plot |
If |
add |
If |
cols |
Two colors used to plot filtered and forecasted quantile estimates respectively. Default is |
cr.percent |
Percentage used in the calculation of the credible intervals. |
A list containing the following is returned:
fa
- The forecasted state mean vectors.
fR
- The forecasted state covariance matrices.
ff
- The forecasted quantile mean estimates.
fQ
- The forecasted quantile variances.
y = scIVTmag[1:100] model = polytrendMod(1,quantile(y,0.85),10) M0 = exdqlmISVB(y,p0=0.85,model,df=c(0.98),dim.df = c(1), gam.init=-3.5,sig.init=15) exdqlmForecast(y,start.t=90,k=10,M0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.