Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS9 Q1 Arima forecasting marleen
Estimated Impact199
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [WS9 Q1 Arima fore...] [2007-12-07 14:12:19] [87b6915e48e03972eaa4a0940182012f] [Current]
Feedback Forum

Post a new message
Dataseries X:
108,4
117
103,8
100,8
110,6
104
112,6
107,3
98,9
109,8
104,9
102,2
123,9
124,9
112,7
121,9
100,6
104,3
120,4
107,5
102,9
125,6
107,5
108,8
128,4
121,1
119,5
128,7
108,7
105,5
119,8
111,3
110,6
120,1
97,5
107,7
127,3
117,2
119,8
116,2
111
112,4
130,6
109,1
118,8
123,9
101,6
112,8




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=2837&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=2837&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2837&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[36])
3597.5-------
36107.7-------
37127.3119.4982106.8018133.70390.14090.94820.94820.9482
38117.2102.626690.4134116.48950.01972e-042e-040.2366
39119.8113.9339100.382129.31530.22740.33860.33860.7865
40116.2117.9352102.8648135.21350.4220.41620.41620.8772
41111102.878789.7326117.95080.14550.04160.04160.2653
42112.4114.557199.8179131.47280.40130.65990.65990.7866
43130.6115.048899.5668132.93810.04420.61420.61420.7896
44109.1104.159190.1439120.35320.27497e-047e-040.3341
45118.8115.8396100.2563133.8450.37360.76840.76840.8122
46123.9113.307297.6105131.52810.12730.27730.27730.7268
47101.6105.544590.886122.56720.32490.01730.01730.402
48112.8116.1436100.0224134.86310.36310.93610.93610.8117

\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[36]) \tabularnewline
35 & 97.5 & - & - & - & - & - & - & - \tabularnewline
36 & 107.7 & - & - & - & - & - & - & - \tabularnewline
37 & 127.3 & 119.4982 & 106.8018 & 133.7039 & 0.1409 & 0.9482 & 0.9482 & 0.9482 \tabularnewline
38 & 117.2 & 102.6266 & 90.4134 & 116.4895 & 0.0197 & 2e-04 & 2e-04 & 0.2366 \tabularnewline
39 & 119.8 & 113.9339 & 100.382 & 129.3153 & 0.2274 & 0.3386 & 0.3386 & 0.7865 \tabularnewline
40 & 116.2 & 117.9352 & 102.8648 & 135.2135 & 0.422 & 0.4162 & 0.4162 & 0.8772 \tabularnewline
41 & 111 & 102.8787 & 89.7326 & 117.9508 & 0.1455 & 0.0416 & 0.0416 & 0.2653 \tabularnewline
42 & 112.4 & 114.5571 & 99.8179 & 131.4728 & 0.4013 & 0.6599 & 0.6599 & 0.7866 \tabularnewline
43 & 130.6 & 115.0488 & 99.5668 & 132.9381 & 0.0442 & 0.6142 & 0.6142 & 0.7896 \tabularnewline
44 & 109.1 & 104.1591 & 90.1439 & 120.3532 & 0.2749 & 7e-04 & 7e-04 & 0.3341 \tabularnewline
45 & 118.8 & 115.8396 & 100.2563 & 133.845 & 0.3736 & 0.7684 & 0.7684 & 0.8122 \tabularnewline
46 & 123.9 & 113.3072 & 97.6105 & 131.5281 & 0.1273 & 0.2773 & 0.2773 & 0.7268 \tabularnewline
47 & 101.6 & 105.5445 & 90.886 & 122.5672 & 0.3249 & 0.0173 & 0.0173 & 0.402 \tabularnewline
48 & 112.8 & 116.1436 & 100.0224 & 134.8631 & 0.3631 & 0.9361 & 0.9361 & 0.8117 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2837&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[36])[/C][/ROW]
[ROW][C]35[/C][C]97.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]36[/C][C]107.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]37[/C][C]127.3[/C][C]119.4982[/C][C]106.8018[/C][C]133.7039[/C][C]0.1409[/C][C]0.9482[/C][C]0.9482[/C][C]0.9482[/C][/ROW]
[ROW][C]38[/C][C]117.2[/C][C]102.6266[/C][C]90.4134[/C][C]116.4895[/C][C]0.0197[/C][C]2e-04[/C][C]2e-04[/C][C]0.2366[/C][/ROW]
[ROW][C]39[/C][C]119.8[/C][C]113.9339[/C][C]100.382[/C][C]129.3153[/C][C]0.2274[/C][C]0.3386[/C][C]0.3386[/C][C]0.7865[/C][/ROW]
[ROW][C]40[/C][C]116.2[/C][C]117.9352[/C][C]102.8648[/C][C]135.2135[/C][C]0.422[/C][C]0.4162[/C][C]0.4162[/C][C]0.8772[/C][/ROW]
[ROW][C]41[/C][C]111[/C][C]102.8787[/C][C]89.7326[/C][C]117.9508[/C][C]0.1455[/C][C]0.0416[/C][C]0.0416[/C][C]0.2653[/C][/ROW]
[ROW][C]42[/C][C]112.4[/C][C]114.5571[/C][C]99.8179[/C][C]131.4728[/C][C]0.4013[/C][C]0.6599[/C][C]0.6599[/C][C]0.7866[/C][/ROW]
[ROW][C]43[/C][C]130.6[/C][C]115.0488[/C][C]99.5668[/C][C]132.9381[/C][C]0.0442[/C][C]0.6142[/C][C]0.6142[/C][C]0.7896[/C][/ROW]
[ROW][C]44[/C][C]109.1[/C][C]104.1591[/C][C]90.1439[/C][C]120.3532[/C][C]0.2749[/C][C]7e-04[/C][C]7e-04[/C][C]0.3341[/C][/ROW]
[ROW][C]45[/C][C]118.8[/C][C]115.8396[/C][C]100.2563[/C][C]133.845[/C][C]0.3736[/C][C]0.7684[/C][C]0.7684[/C][C]0.8122[/C][/ROW]
[ROW][C]46[/C][C]123.9[/C][C]113.3072[/C][C]97.6105[/C][C]131.5281[/C][C]0.1273[/C][C]0.2773[/C][C]0.2773[/C][C]0.7268[/C][/ROW]
[ROW][C]47[/C][C]101.6[/C][C]105.5445[/C][C]90.886[/C][C]122.5672[/C][C]0.3249[/C][C]0.0173[/C][C]0.0173[/C][C]0.402[/C][/ROW]
[ROW][C]48[/C][C]112.8[/C][C]116.1436[/C][C]100.0224[/C][C]134.8631[/C][C]0.3631[/C][C]0.9361[/C][C]0.9361[/C][C]0.8117[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2837&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2837&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[36])
3597.5-------
36107.7-------
37127.3119.4982106.8018133.70390.14090.94820.94820.9482
38117.2102.626690.4134116.48950.01972e-042e-040.2366
39119.8113.9339100.382129.31530.22740.33860.33860.7865
40116.2117.9352102.8648135.21350.4220.41620.41620.8772
41111102.878789.7326117.95080.14550.04160.04160.2653
42112.4114.557199.8179131.47280.40130.65990.65990.7866
43130.6115.048899.5668132.93810.04420.61420.61420.7896
44109.1104.159190.1439120.35320.27497e-047e-040.3341
45118.8115.8396100.2563133.8450.37360.76840.76840.8122
46123.9113.307297.6105131.52810.12730.27730.27730.7268
47101.6105.544590.886122.56720.32490.01730.01730.402
48112.8116.1436100.0224134.86310.36310.93610.93610.8117







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
370.06070.06530.005460.86785.07232.2522
380.06890.1420.0118212.384117.69874.207
390.06890.05150.004334.41092.86761.6934
400.0747-0.01470.00123.0110.25090.5009
410.07470.07890.006665.95495.49622.3444
420.0753-0.01880.00164.65320.38780.6227
430.07930.13520.0113241.840720.15344.4893
440.07930.04740.00424.41292.03441.4263
450.07930.02560.00218.7640.73030.8546
460.0820.09350.0078112.20739.35063.0579
470.0823-0.03740.003115.55931.29661.1387
480.0822-0.02880.002411.17940.93160.9652

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
37 & 0.0607 & 0.0653 & 0.0054 & 60.8678 & 5.0723 & 2.2522 \tabularnewline
38 & 0.0689 & 0.142 & 0.0118 & 212.3841 & 17.6987 & 4.207 \tabularnewline
39 & 0.0689 & 0.0515 & 0.0043 & 34.4109 & 2.8676 & 1.6934 \tabularnewline
40 & 0.0747 & -0.0147 & 0.0012 & 3.011 & 0.2509 & 0.5009 \tabularnewline
41 & 0.0747 & 0.0789 & 0.0066 & 65.9549 & 5.4962 & 2.3444 \tabularnewline
42 & 0.0753 & -0.0188 & 0.0016 & 4.6532 & 0.3878 & 0.6227 \tabularnewline
43 & 0.0793 & 0.1352 & 0.0113 & 241.8407 & 20.1534 & 4.4893 \tabularnewline
44 & 0.0793 & 0.0474 & 0.004 & 24.4129 & 2.0344 & 1.4263 \tabularnewline
45 & 0.0793 & 0.0256 & 0.0021 & 8.764 & 0.7303 & 0.8546 \tabularnewline
46 & 0.082 & 0.0935 & 0.0078 & 112.2073 & 9.3506 & 3.0579 \tabularnewline
47 & 0.0823 & -0.0374 & 0.0031 & 15.5593 & 1.2966 & 1.1387 \tabularnewline
48 & 0.0822 & -0.0288 & 0.0024 & 11.1794 & 0.9316 & 0.9652 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2837&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]37[/C][C]0.0607[/C][C]0.0653[/C][C]0.0054[/C][C]60.8678[/C][C]5.0723[/C][C]2.2522[/C][/ROW]
[ROW][C]38[/C][C]0.0689[/C][C]0.142[/C][C]0.0118[/C][C]212.3841[/C][C]17.6987[/C][C]4.207[/C][/ROW]
[ROW][C]39[/C][C]0.0689[/C][C]0.0515[/C][C]0.0043[/C][C]34.4109[/C][C]2.8676[/C][C]1.6934[/C][/ROW]
[ROW][C]40[/C][C]0.0747[/C][C]-0.0147[/C][C]0.0012[/C][C]3.011[/C][C]0.2509[/C][C]0.5009[/C][/ROW]
[ROW][C]41[/C][C]0.0747[/C][C]0.0789[/C][C]0.0066[/C][C]65.9549[/C][C]5.4962[/C][C]2.3444[/C][/ROW]
[ROW][C]42[/C][C]0.0753[/C][C]-0.0188[/C][C]0.0016[/C][C]4.6532[/C][C]0.3878[/C][C]0.6227[/C][/ROW]
[ROW][C]43[/C][C]0.0793[/C][C]0.1352[/C][C]0.0113[/C][C]241.8407[/C][C]20.1534[/C][C]4.4893[/C][/ROW]
[ROW][C]44[/C][C]0.0793[/C][C]0.0474[/C][C]0.004[/C][C]24.4129[/C][C]2.0344[/C][C]1.4263[/C][/ROW]
[ROW][C]45[/C][C]0.0793[/C][C]0.0256[/C][C]0.0021[/C][C]8.764[/C][C]0.7303[/C][C]0.8546[/C][/ROW]
[ROW][C]46[/C][C]0.082[/C][C]0.0935[/C][C]0.0078[/C][C]112.2073[/C][C]9.3506[/C][C]3.0579[/C][/ROW]
[ROW][C]47[/C][C]0.0823[/C][C]-0.0374[/C][C]0.0031[/C][C]15.5593[/C][C]1.2966[/C][C]1.1387[/C][/ROW]
[ROW][C]48[/C][C]0.0822[/C][C]-0.0288[/C][C]0.0024[/C][C]11.1794[/C][C]0.9316[/C][C]0.9652[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2837&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2837&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
370.06070.06530.005460.86785.07232.2522
380.06890.1420.0118212.384117.69874.207
390.06890.05150.004334.41092.86761.6934
400.0747-0.01470.00123.0110.25090.5009
410.07470.07890.006665.95495.49622.3444
420.0753-0.01880.00164.65320.38780.6227
430.07930.13520.0113241.840720.15344.4893
440.07930.04740.00424.41292.03441.4263
450.07930.02560.00218.7640.73030.8546
460.0820.09350.0078112.20739.35063.0579
470.0823-0.03740.003115.55931.29661.1387
480.0822-0.02880.002411.17940.93160.9652



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