Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationWed, 17 Dec 2008 11:35:44 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/17/t1229539004ymbfpqhk23ye3wy.htm/, Retrieved Sun, 19 May 2024 00:53:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34479, Retrieved Sun, 19 May 2024 00:53:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [werkloosheid onde...] [2008-12-17 18:35:44] [f24298b2e4c2a19d76cf4460ec5d2246] [Current]
Feedback Forum

Post a new message
Dataseries X:
21,1
21,0
20,4
19,5
18,6
18,8
23,7
24,8
25,0
23,6
22,3
21,8
20,8
19,7
18,3
17,4
17,0
18,1
23,9
25,6
25,3
23,6
21,9
21,4
20,6
20,5
20,2
20,6
19,7
19,3
22,8
23,5
23,8
22,6
22,0
21,7
20,7
20,2
19,1
19,5
18,7
18,6
22,2
23,2
23,5
21,3
20,0
18,7
18,9
18,3
18,4
19,9
19,2
18,5
20,9
20,5
19,4
18,1
17,0
17,0
17,3
16,7
15,5
15,3
13,7
14,1
17,3
18,1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 9 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34479&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]9 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34479&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34479&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Univariate ARIMA Extrapolation Forecast
timeY[t]F[t]95% LB95% UBp-value(H0: Y[t] = F[t])P(F[t]>Y[t-1])P(F[t]>Y[t-s])P(F[t]>Y[68])
5620.5-------
5719.4-------
5818.1-------
5917-------
6017-------
6117.3-------
6216.7-------
6315.5-------
6415.3-------
6513.7-------
6614.1-------
6717.3-------
6818.1-------
69NA17.144716.040618.2488NA0.04500.045
70NA15.405213.430417.38NANA0.00370.0037
71NA13.525510.663816.3871NANA0.00879e-04
72NA12.93069.592116.2692NANA0.00840.0012
73NA12.93149.338616.5242NANA0.00860.0024
74NA12.58958.896416.2826NANA0.01460.0017
75NA11.82678.04615.6074NANA0.02846e-04
76NA12.08968.185315.994NANA0.05350.0013
77NA10.57866.448714.7084NANA0.06922e-04
78NA10.54926.124514.9739NANA0.05794e-04
79NA13.36828.63618.1004NANA0.05170.025
80NA13.82668.845218.8081NANA0.04630.0463

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast \tabularnewline
time & Y[t] & F[t] & 95% LB & 95% UB & p-value(H0: Y[t] = F[t]) & P(F[t]>Y[t-1]) & P(F[t]>Y[t-s]) & P(F[t]>Y[68]) \tabularnewline
56 & 20.5 & - & - & - & - & - & - & - \tabularnewline
57 & 19.4 & - & - & - & - & - & - & - \tabularnewline
58 & 18.1 & - & - & - & - & - & - & - \tabularnewline
59 & 17 & - & - & - & - & - & - & - \tabularnewline
60 & 17 & - & - & - & - & - & - & - \tabularnewline
61 & 17.3 & - & - & - & - & - & - & - \tabularnewline
62 & 16.7 & - & - & - & - & - & - & - \tabularnewline
63 & 15.5 & - & - & - & - & - & - & - \tabularnewline
64 & 15.3 & - & - & - & - & - & - & - \tabularnewline
65 & 13.7 & - & - & - & - & - & - & - \tabularnewline
66 & 14.1 & - & - & - & - & - & - & - \tabularnewline
67 & 17.3 & - & - & - & - & - & - & - \tabularnewline
68 & 18.1 & - & - & - & - & - & - & - \tabularnewline
69 & NA & 17.1447 & 16.0406 & 18.2488 & NA & 0.045 & 0 & 0.045 \tabularnewline
70 & NA & 15.4052 & 13.4304 & 17.38 & NA & NA & 0.0037 & 0.0037 \tabularnewline
71 & NA & 13.5255 & 10.6638 & 16.3871 & NA & NA & 0.0087 & 9e-04 \tabularnewline
72 & NA & 12.9306 & 9.5921 & 16.2692 & NA & NA & 0.0084 & 0.0012 \tabularnewline
73 & NA & 12.9314 & 9.3386 & 16.5242 & NA & NA & 0.0086 & 0.0024 \tabularnewline
74 & NA & 12.5895 & 8.8964 & 16.2826 & NA & NA & 0.0146 & 0.0017 \tabularnewline
75 & NA & 11.8267 & 8.046 & 15.6074 & NA & NA & 0.0284 & 6e-04 \tabularnewline
76 & NA & 12.0896 & 8.1853 & 15.994 & NA & NA & 0.0535 & 0.0013 \tabularnewline
77 & NA & 10.5786 & 6.4487 & 14.7084 & NA & NA & 0.0692 & 2e-04 \tabularnewline
78 & NA & 10.5492 & 6.1245 & 14.9739 & NA & NA & 0.0579 & 4e-04 \tabularnewline
79 & NA & 13.3682 & 8.636 & 18.1004 & NA & NA & 0.0517 & 0.025 \tabularnewline
80 & NA & 13.8266 & 8.8452 & 18.8081 & NA & NA & 0.0463 & 0.0463 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34479&T=1

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast[/C][/ROW]
[ROW][C]time[/C][C]Y[t][/C][C]F[t][/C][C]95% LB[/C][C]95% UB[/C][C]p-value(H0: Y[t] = F[t])[/C][C]P(F[t]>Y[t-1])[/C][C]P(F[t]>Y[t-s])[/C][C]P(F[t]>Y[68])[/C][/ROW]
[ROW][C]56[/C][C]20.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]19.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]18.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]17[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]17[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]17.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]62[/C][C]16.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]63[/C][C]15.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]64[/C][C]15.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]65[/C][C]13.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]66[/C][C]14.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]67[/C][C]17.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]68[/C][C]18.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]NA[/C][C]17.1447[/C][C]16.0406[/C][C]18.2488[/C][C]NA[/C][C]0.045[/C][C]0[/C][C]0.045[/C][/ROW]
[ROW][C]70[/C][C]NA[/C][C]15.4052[/C][C]13.4304[/C][C]17.38[/C][C]NA[/C][C]NA[/C][C]0.0037[/C][C]0.0037[/C][/ROW]
[ROW][C]71[/C][C]NA[/C][C]13.5255[/C][C]10.6638[/C][C]16.3871[/C][C]NA[/C][C]NA[/C][C]0.0087[/C][C]9e-04[/C][/ROW]
[ROW][C]72[/C][C]NA[/C][C]12.9306[/C][C]9.5921[/C][C]16.2692[/C][C]NA[/C][C]NA[/C][C]0.0084[/C][C]0.0012[/C][/ROW]
[ROW][C]73[/C][C]NA[/C][C]12.9314[/C][C]9.3386[/C][C]16.5242[/C][C]NA[/C][C]NA[/C][C]0.0086[/C][C]0.0024[/C][/ROW]
[ROW][C]74[/C][C]NA[/C][C]12.5895[/C][C]8.8964[/C][C]16.2826[/C][C]NA[/C][C]NA[/C][C]0.0146[/C][C]0.0017[/C][/ROW]
[ROW][C]75[/C][C]NA[/C][C]11.8267[/C][C]8.046[/C][C]15.6074[/C][C]NA[/C][C]NA[/C][C]0.0284[/C][C]6e-04[/C][/ROW]
[ROW][C]76[/C][C]NA[/C][C]12.0896[/C][C]8.1853[/C][C]15.994[/C][C]NA[/C][C]NA[/C][C]0.0535[/C][C]0.0013[/C][/ROW]
[ROW][C]77[/C][C]NA[/C][C]10.5786[/C][C]6.4487[/C][C]14.7084[/C][C]NA[/C][C]NA[/C][C]0.0692[/C][C]2e-04[/C][/ROW]
[ROW][C]78[/C][C]NA[/C][C]10.5492[/C][C]6.1245[/C][C]14.9739[/C][C]NA[/C][C]NA[/C][C]0.0579[/C][C]4e-04[/C][/ROW]
[ROW][C]79[/C][C]NA[/C][C]13.3682[/C][C]8.636[/C][C]18.1004[/C][C]NA[/C][C]NA[/C][C]0.0517[/C][C]0.025[/C][/ROW]
[ROW][C]80[/C][C]NA[/C][C]13.8266[/C][C]8.8452[/C][C]18.8081[/C][C]NA[/C][C]NA[/C][C]0.0463[/C][C]0.0463[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34479&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34479&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Univariate ARIMA Extrapolation Forecast
timeY[t]F[t]95% LB95% UBp-value(H0: Y[t] = F[t])P(F[t]>Y[t-1])P(F[t]>Y[t-s])P(F[t]>Y[68])
5620.5-------
5719.4-------
5818.1-------
5917-------
6017-------
6117.3-------
6216.7-------
6315.5-------
6415.3-------
6513.7-------
6614.1-------
6717.3-------
6818.1-------
69NA17.144716.040618.2488NA0.04500.045
70NA15.405213.430417.38NANA0.00370.0037
71NA13.525510.663816.3871NANA0.00879e-04
72NA12.93069.592116.2692NANA0.00840.0012
73NA12.93149.338616.5242NANA0.00860.0024
74NA12.58958.896416.2826NANA0.01460.0017
75NA11.82678.04615.6074NANA0.02846e-04
76NA12.08968.185315.994NANA0.05350.0013
77NA10.57866.448714.7084NANA0.06922e-04
78NA10.54926.124514.9739NANA0.05794e-04
79NA13.36828.63618.1004NANA0.05170.025
80NA13.82668.845218.8081NANA0.04630.0463







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
690.0329NANANANANA
700.0654NANANANANA
710.1079NANANANANA
720.1317NANANANANA
730.1418NANANANANA
740.1497NANANANANA
750.1631NANANANANA
760.1648NANANANANA
770.1992NANANANANA
780.214NANANANANA
790.1806NANANANANA
800.1838NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
69 & 0.0329 & NA & NA & NA & NA & NA \tabularnewline
70 & 0.0654 & NA & NA & NA & NA & NA \tabularnewline
71 & 0.1079 & NA & NA & NA & NA & NA \tabularnewline
72 & 0.1317 & NA & NA & NA & NA & NA \tabularnewline
73 & 0.1418 & NA & NA & NA & NA & NA \tabularnewline
74 & 0.1497 & NA & NA & NA & NA & NA \tabularnewline
75 & 0.1631 & NA & NA & NA & NA & NA \tabularnewline
76 & 0.1648 & NA & NA & NA & NA & NA \tabularnewline
77 & 0.1992 & NA & NA & NA & NA & NA \tabularnewline
78 & 0.214 & NA & NA & NA & NA & NA \tabularnewline
79 & 0.1806 & NA & NA & NA & NA & NA \tabularnewline
80 & 0.1838 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34479&T=2

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast Performance[/C][/ROW]
[ROW][C]time[/C][C]% S.E.[/C][C]PE[/C][C]MAPE[/C][C]Sq.E[/C][C]MSE[/C][C]RMSE[/C][/ROW]
[ROW][C]69[/C][C]0.0329[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]70[/C][C]0.0654[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]71[/C][C]0.1079[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]72[/C][C]0.1317[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]73[/C][C]0.1418[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]74[/C][C]0.1497[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]75[/C][C]0.1631[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]76[/C][C]0.1648[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]77[/C][C]0.1992[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]78[/C][C]0.214[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]79[/C][C]0.1806[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]80[/C][C]0.1838[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34479&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34479&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
690.0329NANANANANA
700.0654NANANANANA
710.1079NANANANANA
720.1317NANANANANA
730.1418NANANANANA
740.1497NANANANANA
750.1631NANANANANA
760.1648NANANANANA
770.1992NANANANANA
780.214NANANANANA
790.1806NANANANANA
800.1838NANANANANA



Parameters (Session):
par1 = 0 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 0 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ; par10 = FALSE ;
R code (references can be found in the software module):
par1 <- as.numeric(par1) #cut off periods
par2 <- as.numeric(par2) #lambda
par3 <- as.numeric(par3) #degree of non-seasonal differencing
par4 <- as.numeric(par4) #degree of seasonal differencing
par5 <- as.numeric(par5) #seasonal period
par6 <- as.numeric(par6) #p
par7 <- as.numeric(par7) #q
par8 <- as.numeric(par8) #P
par9 <- as.numeric(par9) #Q
if (par10 == 'TRUE') par10 <- TRUE
if (par10 == 'FALSE') par10 <- FALSE
if (par2 == 0) x <- log(x)
if (par2 != 0) x <- x^par2
lx <- length(x)
first <- lx - 2*par1
nx <- lx - par1
nx1 <- nx + 1
fx <- lx - nx
if (fx < 1) {
fx <- par5
nx1 <- lx + fx - 1
first <- lx - 2*fx
}
first <- 1
if (fx < 3) fx <- round(lx/10,0)
(arima.out <- arima(x[1:nx], order=c(par6,par3,par7), seasonal=list(order=c(par8,par4,par9), period=par5), include.mean=par10, method='ML'))
(forecast <- predict(arima.out,fx))
(lb <- forecast$pred - 1.96 * forecast$se)
(ub <- forecast$pred + 1.96 * forecast$se)
if (par2 == 0) {
x <- exp(x)
forecast$pred <- exp(forecast$pred)
lb <- exp(lb)
ub <- exp(ub)
}
if (par2 != 0) {
x <- x^(1/par2)
forecast$pred <- forecast$pred^(1/par2)
lb <- lb^(1/par2)
ub <- ub^(1/par2)
}
if (par2 < 0) {
olb <- lb
lb <- ub
ub <- olb
}
(actandfor <- c(x[1:nx], forecast$pred))
(perc.se <- (ub-forecast$pred)/1.96/forecast$pred)
bitmap(file='test1.png')
opar <- par(mar=c(4,4,2,2),las=1)
ylim <- c( min(x[first:nx],lb), max(x[first:nx],ub))
plot(x,ylim=ylim,type='n',xlim=c(first,lx))
usr <- par('usr')
rect(usr[1],usr[3],nx+1,usr[4],border=NA,col='lemonchiffon')
rect(nx1,usr[3],usr[2],usr[4],border=NA,col='lavender')
abline(h= (-3:3)*2 , col ='gray', lty =3)
polygon( c(nx1:lx,lx:nx1), c(lb,rev(ub)), col = 'orange', lty=2,border=NA)
lines(nx1:lx, lb , lty=2)
lines(nx1:lx, ub , lty=2)
lines(x, lwd=2)
lines(nx1:lx, forecast$pred , lwd=2 , col ='white')
box()
par(opar)
dev.off()
prob.dec <- array(NA, dim=fx)
prob.sdec <- array(NA, dim=fx)
prob.ldec <- array(NA, dim=fx)
prob.pval <- array(NA, dim=fx)
perf.pe <- array(0, dim=fx)
perf.mape <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.rmse <- array(0, dim=fx)
for (i in 1:fx) {
locSD <- (ub[i] - forecast$pred[i]) / 1.96
perf.pe[i] = (x[nx+i] - forecast$pred[i]) / forecast$pred[i]
perf.mape[i] = perf.mape[i] + abs(perf.pe[i])
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
perf.mse[i] = perf.mse[i] + perf.se[i]
prob.dec[i] = pnorm((x[nx+i-1] - forecast$pred[i]) / locSD)
prob.sdec[i] = pnorm((x[nx+i-par5] - forecast$pred[i]) / locSD)
prob.ldec[i] = pnorm((x[nx] - forecast$pred[i]) / locSD)
prob.pval[i] = pnorm(abs(x[nx+i] - forecast$pred[i]) / locSD)
}
perf.mape = perf.mape / fx
perf.mse = perf.mse / fx
perf.rmse = sqrt(perf.mse)
bitmap(file='test2.png')
plot(forecast$pred, pch=19, type='b',main='ARIMA Extrapolation Forecast', ylab='Forecast and 95% CI', xlab='time',ylim=c(min(lb),max(ub)))
dum <- forecast$pred
dum[1:12] <- x[(nx+1):lx]
lines(dum, lty=1)
lines(ub,lty=3)
lines(lb,lty=3)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'Y[t]',1,header=TRUE)
a<-table.element(a,'F[t]',1,header=TRUE)
a<-table.element(a,'95% LB',1,header=TRUE)
a<-table.element(a,'95% UB',1,header=TRUE)
a<-table.element(a,'p-value
(H0: Y[t] = F[t])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-1])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-s])',1,header=TRUE)
mylab <- paste('P(F[t]>Y[',nx,sep='')
mylab <- paste(mylab,'])',sep='')
a<-table.element(a,mylab,1,header=TRUE)
a<-table.row.end(a)
for (i in (nx-par5):nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.row.end(a)
}
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(x[nx+i],4))
a<-table.element(a,round(forecast$pred[i],4))
a<-table.element(a,round(lb[i],4))
a<-table.element(a,round(ub[i],4))
a<-table.element(a,round((1-prob.pval[i]),4))
a<-table.element(a,round((1-prob.dec[i]),4))
a<-table.element(a,round((1-prob.sdec[i]),4))
a<-table.element(a,round((1-prob.ldec[i]),4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast Performance',7,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'% S.E.',1,header=TRUE)
a<-table.element(a,'PE',1,header=TRUE)
a<-table.element(a,'MAPE',1,header=TRUE)
a<-table.element(a,'Sq.E',1,header=TRUE)
a<-table.element(a,'MSE',1,header=TRUE)
a<-table.element(a,'RMSE',1,header=TRUE)
a<-table.row.end(a)
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(perc.se[i],4))
a<-table.element(a,round(perf.pe[i],4))
a<-table.element(a,round(perf.mape[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse[i],4))
a<-table.element(a,round(perf.rmse[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')