Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSat, 19 Dec 2009 09:42:34 -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/2009/Dec/19/t1261240995y1kh2a2l6lx0cfg.htm/, Retrieved Sat, 04 May 2024 00:16:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69695, Retrieved Sat, 04 May 2024 00:16:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2009-12-19 16:42:34] [e24e91da8d334fb8882bf413603fde71] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.8
7.5
7.6
7.8
8
8.1
8.2
8.3
8.2
8
7.9
7.6
7.6
8.3
8.4
8.4
8.4
8.4
8.6
8.9
8.8
8.3
7.5
7.2
7.4
8.8
9.3
9.3
8.7
8.2
8.3
8.5
8.6
8.5
8.2
8.1
7.9
8.6
8.7
8.7
8.5
8.4
8.5
8.7
8.7
8.6
8.5
8.3
8
8.2
8.1
8.1
8
7.9
7.9
8
8
7.9
8
7.7
7.2
7.5
7.3
7
7
7
7.2
7.3
7.1
6.8
6.4
6.1
6.5
7.7
7.9
7.5
6.9
6.6
6.9
7.7
8
8
7.7
7.3
7.4
8.1
8.3




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69695&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]2 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=69695&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69695&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 time2 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[75])
747.7-------
757.9-------
767.57.59627.04938.14310.36520.13810.13810.1381
776.96.98376.09017.87730.42720.12870.12870.0222
786.66.62395.53197.71580.48290.31010.31010.011
796.96.69615.54387.84850.36440.5650.5650.0203
807.77.04635.88068.21210.13590.59720.59720.0756
8187.35466.17718.53220.14140.28270.28270.182
8287.41186.19618.62760.17150.17150.17150.2156
837.77.23915.94268.53570.2430.1250.1250.1589
847.37.01675.62638.40710.34480.16770.16770.1065
857.46.91555.45578.37530.25770.30280.30280.0931
868.16.97775.47768.47790.07130.29060.29060.1141
878.37.11855.59138.64570.06470.10390.10390.1579

\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[75]) \tabularnewline
74 & 7.7 & - & - & - & - & - & - & - \tabularnewline
75 & 7.9 & - & - & - & - & - & - & - \tabularnewline
76 & 7.5 & 7.5962 & 7.0493 & 8.1431 & 0.3652 & 0.1381 & 0.1381 & 0.1381 \tabularnewline
77 & 6.9 & 6.9837 & 6.0901 & 7.8773 & 0.4272 & 0.1287 & 0.1287 & 0.0222 \tabularnewline
78 & 6.6 & 6.6239 & 5.5319 & 7.7158 & 0.4829 & 0.3101 & 0.3101 & 0.011 \tabularnewline
79 & 6.9 & 6.6961 & 5.5438 & 7.8485 & 0.3644 & 0.565 & 0.565 & 0.0203 \tabularnewline
80 & 7.7 & 7.0463 & 5.8806 & 8.2121 & 0.1359 & 0.5972 & 0.5972 & 0.0756 \tabularnewline
81 & 8 & 7.3546 & 6.1771 & 8.5322 & 0.1414 & 0.2827 & 0.2827 & 0.182 \tabularnewline
82 & 8 & 7.4118 & 6.1961 & 8.6276 & 0.1715 & 0.1715 & 0.1715 & 0.2156 \tabularnewline
83 & 7.7 & 7.2391 & 5.9426 & 8.5357 & 0.243 & 0.125 & 0.125 & 0.1589 \tabularnewline
84 & 7.3 & 7.0167 & 5.6263 & 8.4071 & 0.3448 & 0.1677 & 0.1677 & 0.1065 \tabularnewline
85 & 7.4 & 6.9155 & 5.4557 & 8.3753 & 0.2577 & 0.3028 & 0.3028 & 0.0931 \tabularnewline
86 & 8.1 & 6.9777 & 5.4776 & 8.4779 & 0.0713 & 0.2906 & 0.2906 & 0.1141 \tabularnewline
87 & 8.3 & 7.1185 & 5.5913 & 8.6457 & 0.0647 & 0.1039 & 0.1039 & 0.1579 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69695&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[75])[/C][/ROW]
[ROW][C]74[/C][C]7.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]75[/C][C]7.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]76[/C][C]7.5[/C][C]7.5962[/C][C]7.0493[/C][C]8.1431[/C][C]0.3652[/C][C]0.1381[/C][C]0.1381[/C][C]0.1381[/C][/ROW]
[ROW][C]77[/C][C]6.9[/C][C]6.9837[/C][C]6.0901[/C][C]7.8773[/C][C]0.4272[/C][C]0.1287[/C][C]0.1287[/C][C]0.0222[/C][/ROW]
[ROW][C]78[/C][C]6.6[/C][C]6.6239[/C][C]5.5319[/C][C]7.7158[/C][C]0.4829[/C][C]0.3101[/C][C]0.3101[/C][C]0.011[/C][/ROW]
[ROW][C]79[/C][C]6.9[/C][C]6.6961[/C][C]5.5438[/C][C]7.8485[/C][C]0.3644[/C][C]0.565[/C][C]0.565[/C][C]0.0203[/C][/ROW]
[ROW][C]80[/C][C]7.7[/C][C]7.0463[/C][C]5.8806[/C][C]8.2121[/C][C]0.1359[/C][C]0.5972[/C][C]0.5972[/C][C]0.0756[/C][/ROW]
[ROW][C]81[/C][C]8[/C][C]7.3546[/C][C]6.1771[/C][C]8.5322[/C][C]0.1414[/C][C]0.2827[/C][C]0.2827[/C][C]0.182[/C][/ROW]
[ROW][C]82[/C][C]8[/C][C]7.4118[/C][C]6.1961[/C][C]8.6276[/C][C]0.1715[/C][C]0.1715[/C][C]0.1715[/C][C]0.2156[/C][/ROW]
[ROW][C]83[/C][C]7.7[/C][C]7.2391[/C][C]5.9426[/C][C]8.5357[/C][C]0.243[/C][C]0.125[/C][C]0.125[/C][C]0.1589[/C][/ROW]
[ROW][C]84[/C][C]7.3[/C][C]7.0167[/C][C]5.6263[/C][C]8.4071[/C][C]0.3448[/C][C]0.1677[/C][C]0.1677[/C][C]0.1065[/C][/ROW]
[ROW][C]85[/C][C]7.4[/C][C]6.9155[/C][C]5.4557[/C][C]8.3753[/C][C]0.2577[/C][C]0.3028[/C][C]0.3028[/C][C]0.0931[/C][/ROW]
[ROW][C]86[/C][C]8.1[/C][C]6.9777[/C][C]5.4776[/C][C]8.4779[/C][C]0.0713[/C][C]0.2906[/C][C]0.2906[/C][C]0.1141[/C][/ROW]
[ROW][C]87[/C][C]8.3[/C][C]7.1185[/C][C]5.5913[/C][C]8.6457[/C][C]0.0647[/C][C]0.1039[/C][C]0.1039[/C][C]0.1579[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69695&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69695&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[75])
747.7-------
757.9-------
767.57.59627.04938.14310.36520.13810.13810.1381
776.96.98376.09017.87730.42720.12870.12870.0222
786.66.62395.53197.71580.48290.31010.31010.011
796.96.69615.54387.84850.36440.5650.5650.0203
807.77.04635.88068.21210.13590.59720.59720.0756
8187.35466.17718.53220.14140.28270.28270.182
8287.41186.19618.62760.17150.17150.17150.2156
837.77.23915.94268.53570.2430.1250.1250.1589
847.37.01675.62638.40710.34480.16770.16770.1065
857.46.91555.45578.37530.25770.30280.30280.0931
868.16.97775.47768.47790.07130.29060.29060.1141
878.37.11855.59138.64570.06470.10390.10390.1579







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
760.0367-0.012700.009200
770.0653-0.0120.01230.0070.00810.0902
780.0841-0.00360.00946e-040.00560.0749
790.08780.03040.01470.04160.01460.1208
800.08440.09280.03030.42730.09710.3117
810.08170.08770.03990.41650.15040.3878
820.08370.07940.04550.3460.17830.4223
830.09140.06370.04780.21240.18260.4273
840.10110.04040.0470.08030.17120.4138
850.10770.07010.04930.23470.17750.4214
860.10970.16080.05941.25950.27590.5253
870.10950.1660.06831.39590.36920.6077

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
76 & 0.0367 & -0.0127 & 0 & 0.0092 & 0 & 0 \tabularnewline
77 & 0.0653 & -0.012 & 0.0123 & 0.007 & 0.0081 & 0.0902 \tabularnewline
78 & 0.0841 & -0.0036 & 0.0094 & 6e-04 & 0.0056 & 0.0749 \tabularnewline
79 & 0.0878 & 0.0304 & 0.0147 & 0.0416 & 0.0146 & 0.1208 \tabularnewline
80 & 0.0844 & 0.0928 & 0.0303 & 0.4273 & 0.0971 & 0.3117 \tabularnewline
81 & 0.0817 & 0.0877 & 0.0399 & 0.4165 & 0.1504 & 0.3878 \tabularnewline
82 & 0.0837 & 0.0794 & 0.0455 & 0.346 & 0.1783 & 0.4223 \tabularnewline
83 & 0.0914 & 0.0637 & 0.0478 & 0.2124 & 0.1826 & 0.4273 \tabularnewline
84 & 0.1011 & 0.0404 & 0.047 & 0.0803 & 0.1712 & 0.4138 \tabularnewline
85 & 0.1077 & 0.0701 & 0.0493 & 0.2347 & 0.1775 & 0.4214 \tabularnewline
86 & 0.1097 & 0.1608 & 0.0594 & 1.2595 & 0.2759 & 0.5253 \tabularnewline
87 & 0.1095 & 0.166 & 0.0683 & 1.3959 & 0.3692 & 0.6077 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69695&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]76[/C][C]0.0367[/C][C]-0.0127[/C][C]0[/C][C]0.0092[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]77[/C][C]0.0653[/C][C]-0.012[/C][C]0.0123[/C][C]0.007[/C][C]0.0081[/C][C]0.0902[/C][/ROW]
[ROW][C]78[/C][C]0.0841[/C][C]-0.0036[/C][C]0.0094[/C][C]6e-04[/C][C]0.0056[/C][C]0.0749[/C][/ROW]
[ROW][C]79[/C][C]0.0878[/C][C]0.0304[/C][C]0.0147[/C][C]0.0416[/C][C]0.0146[/C][C]0.1208[/C][/ROW]
[ROW][C]80[/C][C]0.0844[/C][C]0.0928[/C][C]0.0303[/C][C]0.4273[/C][C]0.0971[/C][C]0.3117[/C][/ROW]
[ROW][C]81[/C][C]0.0817[/C][C]0.0877[/C][C]0.0399[/C][C]0.4165[/C][C]0.1504[/C][C]0.3878[/C][/ROW]
[ROW][C]82[/C][C]0.0837[/C][C]0.0794[/C][C]0.0455[/C][C]0.346[/C][C]0.1783[/C][C]0.4223[/C][/ROW]
[ROW][C]83[/C][C]0.0914[/C][C]0.0637[/C][C]0.0478[/C][C]0.2124[/C][C]0.1826[/C][C]0.4273[/C][/ROW]
[ROW][C]84[/C][C]0.1011[/C][C]0.0404[/C][C]0.047[/C][C]0.0803[/C][C]0.1712[/C][C]0.4138[/C][/ROW]
[ROW][C]85[/C][C]0.1077[/C][C]0.0701[/C][C]0.0493[/C][C]0.2347[/C][C]0.1775[/C][C]0.4214[/C][/ROW]
[ROW][C]86[/C][C]0.1097[/C][C]0.1608[/C][C]0.0594[/C][C]1.2595[/C][C]0.2759[/C][C]0.5253[/C][/ROW]
[ROW][C]87[/C][C]0.1095[/C][C]0.166[/C][C]0.0683[/C][C]1.3959[/C][C]0.3692[/C][C]0.6077[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69695&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69695&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
760.0367-0.012700.009200
770.0653-0.0120.01230.0070.00810.0902
780.0841-0.00360.00946e-040.00560.0749
790.08780.03040.01470.04160.01460.1208
800.08440.09280.03030.42730.09710.3117
810.08170.08770.03990.41650.15040.3878
820.08370.07940.04550.3460.17830.4223
830.09140.06370.04780.21240.18260.4273
840.10110.04040.0470.08030.17120.4138
850.10770.07010.04930.23470.17750.4214
860.10970.16080.05941.25950.27590.5253
870.10950.1660.06831.39590.36920.6077



Parameters (Session):
par1 = FALSE ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 3 ; par7 = 0 ; par8 = 1 ; 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,par1))
(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.mape1 <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.mse1 <- 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.se[i] = (x[nx+i] - forecast$pred[i])^2
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[1] = abs(perf.pe[1])
perf.mse[1] = abs(perf.se[1])
for (i in 2:fx) {
perf.mape[i] = perf.mape[i-1] + abs(perf.pe[i])
perf.mape1[i] = perf.mape[i] / i
perf.mse[i] = perf.mse[i-1] + perf.se[i]
perf.mse1[i] = perf.mse[i] / i
}
perf.rmse = sqrt(perf.mse1)
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:par1] <- 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.mape1[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse1[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')