uTAR.pred | R Documentation |
Prediction of a fitted univariate TAR model.
uTAR.pred(model, orig, h = 1, iterations = 3000, ci = 0.95, output = TRUE)
model |
univariate TAR model. |
orig |
forecast origin. |
h |
forecast horizon. |
iterations |
number of iterations. |
ci |
confidence level. |
output |
a logical value for output, default is TRUE. |
uTAR.pred returns a list with components:
model |
univariate TAR model. |
pred |
prediction. |
Ysim |
fitted y. |
phi=t(matrix(c(-0.3, 0.5,0.6,-0.3),2,2))
y=uTAR.sim(nob=2000, arorder=c(2,2), phi=phi, d=2, thr=0.2, cnst=c(1,-1), sigma=c(1, 1))
thr.est=uTAR(y=y$series, p1=2, p2=2, d=2, thrQ=c(0,1), Trim=c(0.1,0.9), method="RLS")
est=uTAR.est(y=y$series, arorder=c(2,2), thr=thr.est$thr, d=2)
uTAR.pred(mode=est, orig=2000,h=1,iteration=100,ci=0.95,output=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.