Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationThu, 20 Dec 2007 07:30:53 -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/2007/Dec/20/t1198159998poiaqj0yx85udr5.htm/, Retrieved Mon, 29 Apr 2024 12:13:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4720, Retrieved Mon, 29 Apr 2024 12:13:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact232
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [arima forecast in...] [2007-12-20 14:30:53] [7c5f7a910a5108d789a748f71ee8daf4] [Current]
Feedback Forum

Post a new message
Dataseries X:
93,9
89,8
93,4
101,5
110,4
105,9
108,4
113,9
86,1
69,4
101,2
100,5
98,0
106,6
90,1
96,9
125,9
112,0
100,0
123,9
79,8
83,4
113,6
112,9
104,0
109,9
99,0
106,3
128,9
111,1
102,9
130,0
87,0
87,5
117,6
103,4
110,8
112,6
102,5
112,4
135,6
105,1
127,7
137,0
91,0
90,5
122,4
123,3
124,3
120,0
118,1
119,0
142,7
123,6
129,6
151,6
110,4
99,3
129,1
134,1




Summary of compuational 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 compuational 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=4720&T=0

[TABLE]
[ROW][C]Summary of compuational 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=4720&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4720&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 compuational 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[48])
47122.4-------
48123.3-------
49124.3117.360193.9014142.86530.29690.3240.3240.324
50120124.32898.421152.60060.38210.50080.50080.5284
51118.1112.704787.326140.60810.35240.30420.30420.2284
52119104.994780.0514132.57190.15980.17580.17580.0966
53142.7113.697487.8744142.11390.02270.35730.35730.2539
54123.6113.479287.428142.17820.24470.0230.0230.2512
55129.6112.508885.4513142.46260.13170.2340.2340.2401
56151.6118.525290.2175149.83980.01920.24410.24410.3825
57110.4115.875887.8179146.96020.36490.01210.01210.3198
5899.3112.067783.8935143.41190.21230.54150.54150.2412
59129.1114.58686.0031146.35670.18530.82720.82720.2954
60134.1113.509285.0422145.17040.10120.16720.16720.2722

\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 & 122.4 & - & - & - & - & - & - & - \tabularnewline
48 & 123.3 & - & - & - & - & - & - & - \tabularnewline
49 & 124.3 & 117.3601 & 93.9014 & 142.8653 & 0.2969 & 0.324 & 0.324 & 0.324 \tabularnewline
50 & 120 & 124.328 & 98.421 & 152.6006 & 0.3821 & 0.5008 & 0.5008 & 0.5284 \tabularnewline
51 & 118.1 & 112.7047 & 87.326 & 140.6081 & 0.3524 & 0.3042 & 0.3042 & 0.2284 \tabularnewline
52 & 119 & 104.9947 & 80.0514 & 132.5719 & 0.1598 & 0.1758 & 0.1758 & 0.0966 \tabularnewline
53 & 142.7 & 113.6974 & 87.8744 & 142.1139 & 0.0227 & 0.3573 & 0.3573 & 0.2539 \tabularnewline
54 & 123.6 & 113.4792 & 87.428 & 142.1782 & 0.2447 & 0.023 & 0.023 & 0.2512 \tabularnewline
55 & 129.6 & 112.5088 & 85.4513 & 142.4626 & 0.1317 & 0.234 & 0.234 & 0.2401 \tabularnewline
56 & 151.6 & 118.5252 & 90.2175 & 149.8398 & 0.0192 & 0.2441 & 0.2441 & 0.3825 \tabularnewline
57 & 110.4 & 115.8758 & 87.8179 & 146.9602 & 0.3649 & 0.0121 & 0.0121 & 0.3198 \tabularnewline
58 & 99.3 & 112.0677 & 83.8935 & 143.4119 & 0.2123 & 0.5415 & 0.5415 & 0.2412 \tabularnewline
59 & 129.1 & 114.586 & 86.0031 & 146.3567 & 0.1853 & 0.8272 & 0.8272 & 0.2954 \tabularnewline
60 & 134.1 & 113.5092 & 85.0422 & 145.1704 & 0.1012 & 0.1672 & 0.1672 & 0.2722 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4720&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]122.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]123.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]124.3[/C][C]117.3601[/C][C]93.9014[/C][C]142.8653[/C][C]0.2969[/C][C]0.324[/C][C]0.324[/C][C]0.324[/C][/ROW]
[ROW][C]50[/C][C]120[/C][C]124.328[/C][C]98.421[/C][C]152.6006[/C][C]0.3821[/C][C]0.5008[/C][C]0.5008[/C][C]0.5284[/C][/ROW]
[ROW][C]51[/C][C]118.1[/C][C]112.7047[/C][C]87.326[/C][C]140.6081[/C][C]0.3524[/C][C]0.3042[/C][C]0.3042[/C][C]0.2284[/C][/ROW]
[ROW][C]52[/C][C]119[/C][C]104.9947[/C][C]80.0514[/C][C]132.5719[/C][C]0.1598[/C][C]0.1758[/C][C]0.1758[/C][C]0.0966[/C][/ROW]
[ROW][C]53[/C][C]142.7[/C][C]113.6974[/C][C]87.8744[/C][C]142.1139[/C][C]0.0227[/C][C]0.3573[/C][C]0.3573[/C][C]0.2539[/C][/ROW]
[ROW][C]54[/C][C]123.6[/C][C]113.4792[/C][C]87.428[/C][C]142.1782[/C][C]0.2447[/C][C]0.023[/C][C]0.023[/C][C]0.2512[/C][/ROW]
[ROW][C]55[/C][C]129.6[/C][C]112.5088[/C][C]85.4513[/C][C]142.4626[/C][C]0.1317[/C][C]0.234[/C][C]0.234[/C][C]0.2401[/C][/ROW]
[ROW][C]56[/C][C]151.6[/C][C]118.5252[/C][C]90.2175[/C][C]149.8398[/C][C]0.0192[/C][C]0.2441[/C][C]0.2441[/C][C]0.3825[/C][/ROW]
[ROW][C]57[/C][C]110.4[/C][C]115.8758[/C][C]87.8179[/C][C]146.9602[/C][C]0.3649[/C][C]0.0121[/C][C]0.0121[/C][C]0.3198[/C][/ROW]
[ROW][C]58[/C][C]99.3[/C][C]112.0677[/C][C]83.8935[/C][C]143.4119[/C][C]0.2123[/C][C]0.5415[/C][C]0.5415[/C][C]0.2412[/C][/ROW]
[ROW][C]59[/C][C]129.1[/C][C]114.586[/C][C]86.0031[/C][C]146.3567[/C][C]0.1853[/C][C]0.8272[/C][C]0.8272[/C][C]0.2954[/C][/ROW]
[ROW][C]60[/C][C]134.1[/C][C]113.5092[/C][C]85.0422[/C][C]145.1704[/C][C]0.1012[/C][C]0.1672[/C][C]0.1672[/C][C]0.2722[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4720&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4720&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])
47122.4-------
48123.3-------
49124.3117.360193.9014142.86530.29690.3240.3240.324
50120124.32898.421152.60060.38210.50080.50080.5284
51118.1112.704787.326140.60810.35240.30420.30420.2284
52119104.994780.0514132.57190.15980.17580.17580.0966
53142.7113.697487.8744142.11390.02270.35730.35730.2539
54123.6113.479287.428142.17820.24470.0230.0230.2512
55129.6112.508885.4513142.46260.13170.2340.2340.2401
56151.6118.525290.2175149.83980.01920.24410.24410.3825
57110.4115.875887.8179146.96020.36490.01210.01210.3198
5899.3112.067783.8935143.41190.21230.54150.54150.2412
59129.1114.58686.0031146.35670.18530.82720.82720.2954
60134.1113.509285.0422145.17040.10120.16720.16720.2722







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
490.11090.05910.004948.16184.01352.0034
500.116-0.03480.002918.73161.5611.2494
510.12630.04790.00429.10892.42571.5575
520.1340.13340.0111196.147716.34564.043
530.12750.25510.0213841.149570.09588.3723
540.1290.08920.0074102.438.53582.9216
550.13580.15190.0127292.110324.34254.9338
560.13480.27910.02331093.940391.16179.5479
570.1369-0.04730.003929.98472.49871.5807
580.1427-0.11390.0095163.014813.58463.6857
590.14150.12670.0106210.656317.55474.1898
600.14230.18140.0151423.979235.33165.944

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
49 & 0.1109 & 0.0591 & 0.0049 & 48.1618 & 4.0135 & 2.0034 \tabularnewline
50 & 0.116 & -0.0348 & 0.0029 & 18.7316 & 1.561 & 1.2494 \tabularnewline
51 & 0.1263 & 0.0479 & 0.004 & 29.1089 & 2.4257 & 1.5575 \tabularnewline
52 & 0.134 & 0.1334 & 0.0111 & 196.1477 & 16.3456 & 4.043 \tabularnewline
53 & 0.1275 & 0.2551 & 0.0213 & 841.1495 & 70.0958 & 8.3723 \tabularnewline
54 & 0.129 & 0.0892 & 0.0074 & 102.43 & 8.5358 & 2.9216 \tabularnewline
55 & 0.1358 & 0.1519 & 0.0127 & 292.1103 & 24.3425 & 4.9338 \tabularnewline
56 & 0.1348 & 0.2791 & 0.0233 & 1093.9403 & 91.1617 & 9.5479 \tabularnewline
57 & 0.1369 & -0.0473 & 0.0039 & 29.9847 & 2.4987 & 1.5807 \tabularnewline
58 & 0.1427 & -0.1139 & 0.0095 & 163.0148 & 13.5846 & 3.6857 \tabularnewline
59 & 0.1415 & 0.1267 & 0.0106 & 210.6563 & 17.5547 & 4.1898 \tabularnewline
60 & 0.1423 & 0.1814 & 0.0151 & 423.9792 & 35.3316 & 5.944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4720&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.1109[/C][C]0.0591[/C][C]0.0049[/C][C]48.1618[/C][C]4.0135[/C][C]2.0034[/C][/ROW]
[ROW][C]50[/C][C]0.116[/C][C]-0.0348[/C][C]0.0029[/C][C]18.7316[/C][C]1.561[/C][C]1.2494[/C][/ROW]
[ROW][C]51[/C][C]0.1263[/C][C]0.0479[/C][C]0.004[/C][C]29.1089[/C][C]2.4257[/C][C]1.5575[/C][/ROW]
[ROW][C]52[/C][C]0.134[/C][C]0.1334[/C][C]0.0111[/C][C]196.1477[/C][C]16.3456[/C][C]4.043[/C][/ROW]
[ROW][C]53[/C][C]0.1275[/C][C]0.2551[/C][C]0.0213[/C][C]841.1495[/C][C]70.0958[/C][C]8.3723[/C][/ROW]
[ROW][C]54[/C][C]0.129[/C][C]0.0892[/C][C]0.0074[/C][C]102.43[/C][C]8.5358[/C][C]2.9216[/C][/ROW]
[ROW][C]55[/C][C]0.1358[/C][C]0.1519[/C][C]0.0127[/C][C]292.1103[/C][C]24.3425[/C][C]4.9338[/C][/ROW]
[ROW][C]56[/C][C]0.1348[/C][C]0.2791[/C][C]0.0233[/C][C]1093.9403[/C][C]91.1617[/C][C]9.5479[/C][/ROW]
[ROW][C]57[/C][C]0.1369[/C][C]-0.0473[/C][C]0.0039[/C][C]29.9847[/C][C]2.4987[/C][C]1.5807[/C][/ROW]
[ROW][C]58[/C][C]0.1427[/C][C]-0.1139[/C][C]0.0095[/C][C]163.0148[/C][C]13.5846[/C][C]3.6857[/C][/ROW]
[ROW][C]59[/C][C]0.1415[/C][C]0.1267[/C][C]0.0106[/C][C]210.6563[/C][C]17.5547[/C][C]4.1898[/C][/ROW]
[ROW][C]60[/C][C]0.1423[/C][C]0.1814[/C][C]0.0151[/C][C]423.9792[/C][C]35.3316[/C][C]5.944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4720&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4720&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.11090.05910.004948.16184.01352.0034
500.116-0.03480.002918.73161.5611.2494
510.12630.04790.00429.10892.42571.5575
520.1340.13340.0111196.147716.34564.043
530.12750.25510.0213841.149570.09588.3723
540.1290.08920.0074102.438.53582.9216
550.13580.15190.0127292.110324.34254.9338
560.13480.27910.02331093.940391.16179.5479
570.1369-0.04730.003929.98472.49871.5807
580.1427-0.11390.0095163.014813.58463.6857
590.14150.12670.0106210.656317.55474.1898
600.14230.18140.0151423.979235.33165.944



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