BIARforecast | R Documentation |
Forecast from models fitted by BIARkalman
BIARforecast(phiR, phiI, y1, y2, t, tAhead)
phiR |
Autocorrelation coefficient of BIAR model. |
phiI |
Cross-correlation coefficient of BIAR model. |
y1 |
Array with the observations of the first time series of the BIAR process. |
y2 |
Array with the observations of the second time series of the BIAR process. |
t |
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 BIAR model.
forecast Point forecast in the time ahead required.
Lambda Lambda value estimated by the BIAR model at the last time point.
Sighat Covariance matrix estimated by the BIAR model at the last time point.
Elorrieta_2021iAR
BIARsample
, BIARkalman
, BIARfit
#Simulated Data n=100 set.seed(6714) st<-gentime(n) x=BIARsample(n=n,phiR=0.9,phiI=0.3,st=st) biar=iAR::BIARkalman(y1=x$y[1,],y2=x$y[2,],t=st) forBIAR<-BIARforecast(phiR=biar$phiR,phiI=biar$phiI,y1=x$y[1,],y2=x$y[2,],t=st,tAhead=c(1.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.