CIARforecast | R Documentation |
Forecast from models fitted by CIARkalman
CIARforecast(phiR, phiI, y1, st, tAhead)
phiR |
Real part of the phi coefficient of CIAR model. |
phiI |
Imaginary part of the phi coefficient of CIAR model. |
y1 |
Array with the time series observations. |
st |
Array with the observational times. |
tAhead |
The time ahead for which the forecast is required. |
A list with the following components:
fitted Fitted values by the CIAR model.
forecast Point forecast in the time ahead required.
Lambda Lambda value estimated by the CIAR model at the last time point.
Sighat Covariance matrix estimated by the CIAR model at the last time point.
Elorrieta_2019iAR
CIARsample
, CIARkalman
, CIARfit
#Simulated Data n=100 set.seed(6714) st<-gentime(n) x=CIARsample(n=n,phiR=0.9,phiI=0,st=st,c=1) y=x$y y1=y/sd(y) n=length(y1) p=trunc(n*0.99) ytr=y1[1:p] yte=y1[(p+1):n] str=st[1:p] ste=st[(p+1):n] tahead=ste-str[p] ciar=CIARkalman(y=ytr,t=str) forCIAR<-CIARforecast(ciar$phiR,ciar$phiI,ytr,str,tAhead=tahead)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.