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 computationMon, 15 Dec 2008 13:15:57 -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/15/t122937219040h0a4uj9i7q8m2.htm/, Retrieved Wed, 15 May 2024 12:31:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33808, Retrieved Wed, 15 May 2024 12:31:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords4
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2008-12-15 19:56:43] [fe7291e888d31b8c4db0b24d6c0f75c6]
-    D    [ARIMA Forecasting] [4] [2008-12-15 20:15:57] [458fee276d63daa9deadf4e7db401a64] [Current]
Feedback Forum

Post a new message
Dataseries X:
29
18
31
31
35
38
36
33
29
37
28
32
31
24
25
27
27
29
33
26
16
15
13
18
8
21
21
25
28
27
24
24
24
28
31
26
28
34
33
24
30
31
28
35
33
34
31
21
21
22
9
15
13
17
19
14
8
3
0
10
12
9
9




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33808&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]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33808&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33808&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'Herman Ole Andreas Wold' @ 193.190.124.10:1001







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[51])
5022-------
519-------
52159.0975-2.934721.12970.16820.50630.50630.5063
53133.7591-13.489921.00810.14680.10070.10070.2757
5417-3.1258-27.908421.65690.05570.10110.10110.1688
5519-5.6697-40.426229.08680.08210.10060.10060.204
5614-11.6295-55.745232.48620.12740.08680.08680.1797
578-16.5315-71.65238.5890.19150.13880.13880.182
583-20.6801-87.573146.2130.24390.20040.20040.1922
590-26.1136-105.175552.94840.25870.23520.23520.192
6010-30.6902-122.931661.55120.19360.25720.25720.1995
6112-35.4299-141.371870.5120.19010.20030.20030.2055
629-40.4581-160.698879.78250.21010.19620.19620.2101
639-45.1206-180.346690.10540.21640.21640.21640.2164

\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[51]) \tabularnewline
50 & 22 & - & - & - & - & - & - & - \tabularnewline
51 & 9 & - & - & - & - & - & - & - \tabularnewline
52 & 15 & 9.0975 & -2.9347 & 21.1297 & 0.1682 & 0.5063 & 0.5063 & 0.5063 \tabularnewline
53 & 13 & 3.7591 & -13.4899 & 21.0081 & 0.1468 & 0.1007 & 0.1007 & 0.2757 \tabularnewline
54 & 17 & -3.1258 & -27.9084 & 21.6569 & 0.0557 & 0.1011 & 0.1011 & 0.1688 \tabularnewline
55 & 19 & -5.6697 & -40.4262 & 29.0868 & 0.0821 & 0.1006 & 0.1006 & 0.204 \tabularnewline
56 & 14 & -11.6295 & -55.7452 & 32.4862 & 0.1274 & 0.0868 & 0.0868 & 0.1797 \tabularnewline
57 & 8 & -16.5315 & -71.652 & 38.589 & 0.1915 & 0.1388 & 0.1388 & 0.182 \tabularnewline
58 & 3 & -20.6801 & -87.5731 & 46.213 & 0.2439 & 0.2004 & 0.2004 & 0.1922 \tabularnewline
59 & 0 & -26.1136 & -105.1755 & 52.9484 & 0.2587 & 0.2352 & 0.2352 & 0.192 \tabularnewline
60 & 10 & -30.6902 & -122.9316 & 61.5512 & 0.1936 & 0.2572 & 0.2572 & 0.1995 \tabularnewline
61 & 12 & -35.4299 & -141.3718 & 70.512 & 0.1901 & 0.2003 & 0.2003 & 0.2055 \tabularnewline
62 & 9 & -40.4581 & -160.6988 & 79.7825 & 0.2101 & 0.1962 & 0.1962 & 0.2101 \tabularnewline
63 & 9 & -45.1206 & -180.3466 & 90.1054 & 0.2164 & 0.2164 & 0.2164 & 0.2164 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33808&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[51])[/C][/ROW]
[ROW][C]50[/C][C]22[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]15[/C][C]9.0975[/C][C]-2.9347[/C][C]21.1297[/C][C]0.1682[/C][C]0.5063[/C][C]0.5063[/C][C]0.5063[/C][/ROW]
[ROW][C]53[/C][C]13[/C][C]3.7591[/C][C]-13.4899[/C][C]21.0081[/C][C]0.1468[/C][C]0.1007[/C][C]0.1007[/C][C]0.2757[/C][/ROW]
[ROW][C]54[/C][C]17[/C][C]-3.1258[/C][C]-27.9084[/C][C]21.6569[/C][C]0.0557[/C][C]0.1011[/C][C]0.1011[/C][C]0.1688[/C][/ROW]
[ROW][C]55[/C][C]19[/C][C]-5.6697[/C][C]-40.4262[/C][C]29.0868[/C][C]0.0821[/C][C]0.1006[/C][C]0.1006[/C][C]0.204[/C][/ROW]
[ROW][C]56[/C][C]14[/C][C]-11.6295[/C][C]-55.7452[/C][C]32.4862[/C][C]0.1274[/C][C]0.0868[/C][C]0.0868[/C][C]0.1797[/C][/ROW]
[ROW][C]57[/C][C]8[/C][C]-16.5315[/C][C]-71.652[/C][C]38.589[/C][C]0.1915[/C][C]0.1388[/C][C]0.1388[/C][C]0.182[/C][/ROW]
[ROW][C]58[/C][C]3[/C][C]-20.6801[/C][C]-87.5731[/C][C]46.213[/C][C]0.2439[/C][C]0.2004[/C][C]0.2004[/C][C]0.1922[/C][/ROW]
[ROW][C]59[/C][C]0[/C][C]-26.1136[/C][C]-105.1755[/C][C]52.9484[/C][C]0.2587[/C][C]0.2352[/C][C]0.2352[/C][C]0.192[/C][/ROW]
[ROW][C]60[/C][C]10[/C][C]-30.6902[/C][C]-122.9316[/C][C]61.5512[/C][C]0.1936[/C][C]0.2572[/C][C]0.2572[/C][C]0.1995[/C][/ROW]
[ROW][C]61[/C][C]12[/C][C]-35.4299[/C][C]-141.3718[/C][C]70.512[/C][C]0.1901[/C][C]0.2003[/C][C]0.2003[/C][C]0.2055[/C][/ROW]
[ROW][C]62[/C][C]9[/C][C]-40.4581[/C][C]-160.6988[/C][C]79.7825[/C][C]0.2101[/C][C]0.1962[/C][C]0.1962[/C][C]0.2101[/C][/ROW]
[ROW][C]63[/C][C]9[/C][C]-45.1206[/C][C]-180.3466[/C][C]90.1054[/C][C]0.2164[/C][C]0.2164[/C][C]0.2164[/C][C]0.2164[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33808&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33808&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[51])
5022-------
519-------
52159.0975-2.934721.12970.16820.50630.50630.5063
53133.7591-13.489921.00810.14680.10070.10070.2757
5417-3.1258-27.908421.65690.05570.10110.10110.1688
5519-5.6697-40.426229.08680.08210.10060.10060.204
5614-11.6295-55.745232.48620.12740.08680.08680.1797
578-16.5315-71.65238.5890.19150.13880.13880.182
583-20.6801-87.573146.2130.24390.20040.20040.1922
590-26.1136-105.175552.94840.25870.23520.23520.192
6010-30.6902-122.931661.55120.19360.25720.25720.1995
6112-35.4299-141.371870.5120.19010.20030.20030.2055
629-40.4581-160.698879.78250.21010.19620.19620.2101
639-45.1206-180.346690.10540.21640.21640.21640.2164







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
520.67480.64880.054134.842.90331.7039
532.34112.45830.204985.39447.11622.6676
54-4.0452-6.43870.5366405.046533.75395.8098
55-3.1277-4.35120.3626608.593150.71617.1215
56-1.9354-2.20380.1837656.871354.73937.3986
57-1.7012-1.48390.1237601.79450.14957.0816
58-1.6503-1.14510.0954560.745346.72886.8358
59-1.5447-10.0833681.917956.82657.5383
60-1.5335-1.32580.11051655.6939137.974511.7463
61-1.5256-1.33870.11162249.597187.466413.6918
62-1.5163-1.22250.10192446.106203.842214.2773
63-1.5291-1.19950.12929.0385244.086515.6233

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
52 & 0.6748 & 0.6488 & 0.0541 & 34.84 & 2.9033 & 1.7039 \tabularnewline
53 & 2.3411 & 2.4583 & 0.2049 & 85.3944 & 7.1162 & 2.6676 \tabularnewline
54 & -4.0452 & -6.4387 & 0.5366 & 405.0465 & 33.7539 & 5.8098 \tabularnewline
55 & -3.1277 & -4.3512 & 0.3626 & 608.5931 & 50.7161 & 7.1215 \tabularnewline
56 & -1.9354 & -2.2038 & 0.1837 & 656.8713 & 54.7393 & 7.3986 \tabularnewline
57 & -1.7012 & -1.4839 & 0.1237 & 601.794 & 50.1495 & 7.0816 \tabularnewline
58 & -1.6503 & -1.1451 & 0.0954 & 560.7453 & 46.7288 & 6.8358 \tabularnewline
59 & -1.5447 & -1 & 0.0833 & 681.9179 & 56.8265 & 7.5383 \tabularnewline
60 & -1.5335 & -1.3258 & 0.1105 & 1655.6939 & 137.9745 & 11.7463 \tabularnewline
61 & -1.5256 & -1.3387 & 0.1116 & 2249.597 & 187.4664 & 13.6918 \tabularnewline
62 & -1.5163 & -1.2225 & 0.1019 & 2446.106 & 203.8422 & 14.2773 \tabularnewline
63 & -1.5291 & -1.1995 & 0.1 & 2929.0385 & 244.0865 & 15.6233 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33808&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]52[/C][C]0.6748[/C][C]0.6488[/C][C]0.0541[/C][C]34.84[/C][C]2.9033[/C][C]1.7039[/C][/ROW]
[ROW][C]53[/C][C]2.3411[/C][C]2.4583[/C][C]0.2049[/C][C]85.3944[/C][C]7.1162[/C][C]2.6676[/C][/ROW]
[ROW][C]54[/C][C]-4.0452[/C][C]-6.4387[/C][C]0.5366[/C][C]405.0465[/C][C]33.7539[/C][C]5.8098[/C][/ROW]
[ROW][C]55[/C][C]-3.1277[/C][C]-4.3512[/C][C]0.3626[/C][C]608.5931[/C][C]50.7161[/C][C]7.1215[/C][/ROW]
[ROW][C]56[/C][C]-1.9354[/C][C]-2.2038[/C][C]0.1837[/C][C]656.8713[/C][C]54.7393[/C][C]7.3986[/C][/ROW]
[ROW][C]57[/C][C]-1.7012[/C][C]-1.4839[/C][C]0.1237[/C][C]601.794[/C][C]50.1495[/C][C]7.0816[/C][/ROW]
[ROW][C]58[/C][C]-1.6503[/C][C]-1.1451[/C][C]0.0954[/C][C]560.7453[/C][C]46.7288[/C][C]6.8358[/C][/ROW]
[ROW][C]59[/C][C]-1.5447[/C][C]-1[/C][C]0.0833[/C][C]681.9179[/C][C]56.8265[/C][C]7.5383[/C][/ROW]
[ROW][C]60[/C][C]-1.5335[/C][C]-1.3258[/C][C]0.1105[/C][C]1655.6939[/C][C]137.9745[/C][C]11.7463[/C][/ROW]
[ROW][C]61[/C][C]-1.5256[/C][C]-1.3387[/C][C]0.1116[/C][C]2249.597[/C][C]187.4664[/C][C]13.6918[/C][/ROW]
[ROW][C]62[/C][C]-1.5163[/C][C]-1.2225[/C][C]0.1019[/C][C]2446.106[/C][C]203.8422[/C][C]14.2773[/C][/ROW]
[ROW][C]63[/C][C]-1.5291[/C][C]-1.1995[/C][C]0.1[/C][C]2929.0385[/C][C]244.0865[/C][C]15.6233[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33808&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33808&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
520.67480.64880.054134.842.90331.7039
532.34112.45830.204985.39447.11622.6676
54-4.0452-6.43870.5366405.046533.75395.8098
55-3.1277-4.35120.3626608.593150.71617.1215
56-1.9354-2.20380.1837656.871354.73937.3986
57-1.7012-1.48390.1237601.79450.14957.0816
58-1.6503-1.14510.0954560.745346.72886.8358
59-1.5447-10.0833681.917956.82657.5383
60-1.5335-1.32580.11051655.6939137.974511.7463
61-1.5256-1.33870.11162249.597187.466413.6918
62-1.5163-1.22250.10192446.106203.842214.2773
63-1.5291-1.19950.12929.0385244.086515.6233



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