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 computationSun, 06 Dec 2009 12:52:36 -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/06/t1260129293ugey8ievgjw12vu.htm/, Retrieved Mon, 06 May 2024 05:59:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64487, Retrieved Mon, 06 May 2024 05:59:13 +0000
QR Codes:

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

Post a new message
Dataseries X:
10
9.2
9.2
9.5
9.6
9.5
9.1
8.9
9
10.1
10.3
10.2
9.6
9.2
9.3
9.4
9.4
9.2
9
9
9
9.8
10
9.8
9.3
9
9
9.1
9.1
9.1
9.2
8.8
8.3
8.4
8.1
7.7
7.9
7.9
8
7.9
7.6
7.1
6.8
6.5
6.9
8.2
8.7
8.3
7.9
7.5
7.8
8.3
8.4
8.2
7.7
7.2
7.3
8.1
8.5
8.4




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64487&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 time1 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[48])
478.7-------
488.3-------
497.97.43916.82078.05740.0720.00320.00320.0032
507.56.88635.80197.97070.13370.03350.03350.0053
517.86.96375.59888.32860.11490.22060.22060.0275
528.37.42385.96458.88310.11960.30670.30670.1196
538.47.77116.28459.25770.20350.24280.24280.2428
548.27.71686.29.23350.26620.18860.18860.2255
557.77.35865.75978.95750.33780.15120.15120.1243
567.27.0135.26888.75730.41680.22010.22010.0741
577.36.9125.01958.80440.34390.38270.38270.0753
588.17.03875.0449.03350.14850.39870.39870.1076
598.57.19955.14139.25770.10780.19560.19560.1473
608.47.2195.10699.33110.13660.11730.11730.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[48]) \tabularnewline
47 & 8.7 & - & - & - & - & - & - & - \tabularnewline
48 & 8.3 & - & - & - & - & - & - & - \tabularnewline
49 & 7.9 & 7.4391 & 6.8207 & 8.0574 & 0.072 & 0.0032 & 0.0032 & 0.0032 \tabularnewline
50 & 7.5 & 6.8863 & 5.8019 & 7.9707 & 0.1337 & 0.0335 & 0.0335 & 0.0053 \tabularnewline
51 & 7.8 & 6.9637 & 5.5988 & 8.3286 & 0.1149 & 0.2206 & 0.2206 & 0.0275 \tabularnewline
52 & 8.3 & 7.4238 & 5.9645 & 8.8831 & 0.1196 & 0.3067 & 0.3067 & 0.1196 \tabularnewline
53 & 8.4 & 7.7711 & 6.2845 & 9.2577 & 0.2035 & 0.2428 & 0.2428 & 0.2428 \tabularnewline
54 & 8.2 & 7.7168 & 6.2 & 9.2335 & 0.2662 & 0.1886 & 0.1886 & 0.2255 \tabularnewline
55 & 7.7 & 7.3586 & 5.7597 & 8.9575 & 0.3378 & 0.1512 & 0.1512 & 0.1243 \tabularnewline
56 & 7.2 & 7.013 & 5.2688 & 8.7573 & 0.4168 & 0.2201 & 0.2201 & 0.0741 \tabularnewline
57 & 7.3 & 6.912 & 5.0195 & 8.8044 & 0.3439 & 0.3827 & 0.3827 & 0.0753 \tabularnewline
58 & 8.1 & 7.0387 & 5.044 & 9.0335 & 0.1485 & 0.3987 & 0.3987 & 0.1076 \tabularnewline
59 & 8.5 & 7.1995 & 5.1413 & 9.2577 & 0.1078 & 0.1956 & 0.1956 & 0.1473 \tabularnewline
60 & 8.4 & 7.219 & 5.1069 & 9.3311 & 0.1366 & 0.1173 & 0.1173 & 0.1579 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64487&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[48])[/C][/ROW]
[ROW][C]47[/C][C]8.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]8.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.4391[/C][C]6.8207[/C][C]8.0574[/C][C]0.072[/C][C]0.0032[/C][C]0.0032[/C][C]0.0032[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]6.8863[/C][C]5.8019[/C][C]7.9707[/C][C]0.1337[/C][C]0.0335[/C][C]0.0335[/C][C]0.0053[/C][/ROW]
[ROW][C]51[/C][C]7.8[/C][C]6.9637[/C][C]5.5988[/C][C]8.3286[/C][C]0.1149[/C][C]0.2206[/C][C]0.2206[/C][C]0.0275[/C][/ROW]
[ROW][C]52[/C][C]8.3[/C][C]7.4238[/C][C]5.9645[/C][C]8.8831[/C][C]0.1196[/C][C]0.3067[/C][C]0.3067[/C][C]0.1196[/C][/ROW]
[ROW][C]53[/C][C]8.4[/C][C]7.7711[/C][C]6.2845[/C][C]9.2577[/C][C]0.2035[/C][C]0.2428[/C][C]0.2428[/C][C]0.2428[/C][/ROW]
[ROW][C]54[/C][C]8.2[/C][C]7.7168[/C][C]6.2[/C][C]9.2335[/C][C]0.2662[/C][C]0.1886[/C][C]0.1886[/C][C]0.2255[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.3586[/C][C]5.7597[/C][C]8.9575[/C][C]0.3378[/C][C]0.1512[/C][C]0.1512[/C][C]0.1243[/C][/ROW]
[ROW][C]56[/C][C]7.2[/C][C]7.013[/C][C]5.2688[/C][C]8.7573[/C][C]0.4168[/C][C]0.2201[/C][C]0.2201[/C][C]0.0741[/C][/ROW]
[ROW][C]57[/C][C]7.3[/C][C]6.912[/C][C]5.0195[/C][C]8.8044[/C][C]0.3439[/C][C]0.3827[/C][C]0.3827[/C][C]0.0753[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]7.0387[/C][C]5.044[/C][C]9.0335[/C][C]0.1485[/C][C]0.3987[/C][C]0.3987[/C][C]0.1076[/C][/ROW]
[ROW][C]59[/C][C]8.5[/C][C]7.1995[/C][C]5.1413[/C][C]9.2577[/C][C]0.1078[/C][C]0.1956[/C][C]0.1956[/C][C]0.1473[/C][/ROW]
[ROW][C]60[/C][C]8.4[/C][C]7.219[/C][C]5.1069[/C][C]9.3311[/C][C]0.1366[/C][C]0.1173[/C][C]0.1173[/C][C]0.1579[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64487&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64487&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[48])
478.7-------
488.3-------
497.97.43916.82078.05740.0720.00320.00320.0032
507.56.88635.80197.97070.13370.03350.03350.0053
517.86.96375.59888.32860.11490.22060.22060.0275
528.37.42385.96458.88310.11960.30670.30670.1196
538.47.77116.28459.25770.20350.24280.24280.2428
548.27.71686.29.23350.26620.18860.18860.2255
557.77.35865.75978.95750.33780.15120.15120.1243
567.27.0135.26888.75730.41680.22010.22010.0741
577.36.9125.01958.80440.34390.38270.38270.0753
588.17.03875.0449.03350.14850.39870.39870.1076
598.57.19955.14139.25770.10780.19560.19560.1473
608.47.2195.10699.33110.13660.11730.11730.1579







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
490.04240.06200.212500
500.08030.08910.07550.37660.29450.5427
510.10.12010.09040.69940.42950.6553
520.10030.1180.09730.76770.5140.717
530.09760.08090.0940.39550.49030.7002
540.10030.06260.08880.23350.44750.669
550.11090.04640.08270.11650.40020.6326
560.12690.02670.07570.0350.35460.5955
570.13970.05610.07350.15060.33190.5761
580.14460.15080.08131.12630.41130.6414
590.14590.18060.09031.69120.52770.7264
600.14930.16360.09641.39470.59990.7746

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
49 & 0.0424 & 0.062 & 0 & 0.2125 & 0 & 0 \tabularnewline
50 & 0.0803 & 0.0891 & 0.0755 & 0.3766 & 0.2945 & 0.5427 \tabularnewline
51 & 0.1 & 0.1201 & 0.0904 & 0.6994 & 0.4295 & 0.6553 \tabularnewline
52 & 0.1003 & 0.118 & 0.0973 & 0.7677 & 0.514 & 0.717 \tabularnewline
53 & 0.0976 & 0.0809 & 0.094 & 0.3955 & 0.4903 & 0.7002 \tabularnewline
54 & 0.1003 & 0.0626 & 0.0888 & 0.2335 & 0.4475 & 0.669 \tabularnewline
55 & 0.1109 & 0.0464 & 0.0827 & 0.1165 & 0.4002 & 0.6326 \tabularnewline
56 & 0.1269 & 0.0267 & 0.0757 & 0.035 & 0.3546 & 0.5955 \tabularnewline
57 & 0.1397 & 0.0561 & 0.0735 & 0.1506 & 0.3319 & 0.5761 \tabularnewline
58 & 0.1446 & 0.1508 & 0.0813 & 1.1263 & 0.4113 & 0.6414 \tabularnewline
59 & 0.1459 & 0.1806 & 0.0903 & 1.6912 & 0.5277 & 0.7264 \tabularnewline
60 & 0.1493 & 0.1636 & 0.0964 & 1.3947 & 0.5999 & 0.7746 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64487&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]49[/C][C]0.0424[/C][C]0.062[/C][C]0[/C][C]0.2125[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]50[/C][C]0.0803[/C][C]0.0891[/C][C]0.0755[/C][C]0.3766[/C][C]0.2945[/C][C]0.5427[/C][/ROW]
[ROW][C]51[/C][C]0.1[/C][C]0.1201[/C][C]0.0904[/C][C]0.6994[/C][C]0.4295[/C][C]0.6553[/C][/ROW]
[ROW][C]52[/C][C]0.1003[/C][C]0.118[/C][C]0.0973[/C][C]0.7677[/C][C]0.514[/C][C]0.717[/C][/ROW]
[ROW][C]53[/C][C]0.0976[/C][C]0.0809[/C][C]0.094[/C][C]0.3955[/C][C]0.4903[/C][C]0.7002[/C][/ROW]
[ROW][C]54[/C][C]0.1003[/C][C]0.0626[/C][C]0.0888[/C][C]0.2335[/C][C]0.4475[/C][C]0.669[/C][/ROW]
[ROW][C]55[/C][C]0.1109[/C][C]0.0464[/C][C]0.0827[/C][C]0.1165[/C][C]0.4002[/C][C]0.6326[/C][/ROW]
[ROW][C]56[/C][C]0.1269[/C][C]0.0267[/C][C]0.0757[/C][C]0.035[/C][C]0.3546[/C][C]0.5955[/C][/ROW]
[ROW][C]57[/C][C]0.1397[/C][C]0.0561[/C][C]0.0735[/C][C]0.1506[/C][C]0.3319[/C][C]0.5761[/C][/ROW]
[ROW][C]58[/C][C]0.1446[/C][C]0.1508[/C][C]0.0813[/C][C]1.1263[/C][C]0.4113[/C][C]0.6414[/C][/ROW]
[ROW][C]59[/C][C]0.1459[/C][C]0.1806[/C][C]0.0903[/C][C]1.6912[/C][C]0.5277[/C][C]0.7264[/C][/ROW]
[ROW][C]60[/C][C]0.1493[/C][C]0.1636[/C][C]0.0964[/C][C]1.3947[/C][C]0.5999[/C][C]0.7746[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64487&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64487&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
490.04240.06200.212500
500.08030.08910.07550.37660.29450.5427
510.10.12010.09040.69940.42950.6553
520.10030.1180.09730.76770.5140.717
530.09760.08090.0940.39550.49030.7002
540.10030.06260.08880.23350.44750.669
550.11090.04640.08270.11650.40020.6326
560.12690.02670.07570.0350.35460.5955
570.13970.05610.07350.15060.33190.5761
580.14460.15080.08131.12630.41130.6414
590.14590.18060.09031.69120.52770.7264
600.14930.16360.09641.39470.59990.7746



Parameters (Session):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 1 ; par9 = 0 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 1 ; par9 = 0 ; 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')