mTAR.pred | R Documentation |
Prediction of a fitted multivariate TAR model.
mTAR.pred(model, orig, h = 1, iterations = 3000, ci = 0.95, output = TRUE)
model |
multivariate TAR model. |
orig |
forecast origin. |
h |
forecast horizon. |
iterations |
number of iterations. |
ci |
confidence level. |
output |
a logical value for output. |
mTAR.pred returns a list with components:
model |
the multivariate TAR model. |
pred |
prediction. |
Ysim |
fitted |
phi1=matrix(c(0.5,0.7,0.3,0.2),2,2)
phi2=matrix(c(0.4,0.6,0.5,-0.5),2,2)
sigma1=matrix(c(1,0,0,1),2,2)
sigma2=matrix(c(1,0,0,1),2,2)
c1=c(0,0)
c2=c(0,0)
delay=c(1,1)
y=mTAR.sim(100,0,phi1,phi2,sigma1,sigma2,c1,c2,delay,ini=500)
est=mTAR.est(y$series,c(1,1),0,delay)
pred=mTAR.pred(est,100,1,300,0.90,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.