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 computationWed, 17 Dec 2008 06:13:45 -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/17/t1229519701riy7brl2g2dy22r.htm/, Retrieved Sun, 19 May 2024 07:59:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34329, Retrieved Sun, 19 May 2024 07:59:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA forecasting] [2008-12-17 13:13:45] [21a82be02162ee9c644b6689eefbb825] [Current]
Feedback Forum

Post a new message
Dataseries X:
97,7
101,5
119,6
108,1
117,8
125,5
89,2
92,3
104,6
122,8
96,0
94,6
93,3
101,1
114,2
104,7
113,3
118,2
83,6
73,9
99,5
97,7
103,0
106,3
92,2
101,8
122,8
111,8
106,3
121,5
81,9
85,4
110,9
117,3
106,3
105,5
101,3
105,9
126,3
111,9
108,9
127,2
94,2
85,7
116,2
107,2
110,6
112,0
104,5
112,0
132,8
110,8
128,7
136,8
94,9
88,8
123,2
125,3
122,7
125,7
116,3
118,7
142,0
127,9
131,9
152,3
110,8
99,1
135,0
133,2
131,0
133,9
119,9
136,9
148,9
145,1
142,4
159,6
120,7
109,0
142,0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34329&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[69])
6899.1-------
69135-------
70133.2125.484497.7384159.20170.32690.29010.29010.2901
71131123.071495.0453157.35020.32510.28120.28120.2476
72133.9122.651694.6415156.93280.26010.31660.31660.2401
73119.9122.715194.6491157.07610.43620.26170.26170.2417
74136.9122.840194.6734157.34410.21220.56630.56630.2449
75148.9122.93394.6329157.63160.07120.21510.21510.2477
76145.1122.988694.5334157.91720.10730.0730.0730.2502
77142.4123.018794.3964158.19760.14010.10930.10930.2522
78159.6123.034294.2391158.47360.02160.14210.14210.2541
79120.7123.041894.0718158.74610.44890.02240.02240.2558
80109123.045593.9004159.0160.2220.55080.55080.2574
81142123.047293.7277159.28390.15270.77630.77630.259

\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[69]) \tabularnewline
68 & 99.1 & - & - & - & - & - & - & - \tabularnewline
69 & 135 & - & - & - & - & - & - & - \tabularnewline
70 & 133.2 & 125.4844 & 97.7384 & 159.2017 & 0.3269 & 0.2901 & 0.2901 & 0.2901 \tabularnewline
71 & 131 & 123.0714 & 95.0453 & 157.3502 & 0.3251 & 0.2812 & 0.2812 & 0.2476 \tabularnewline
72 & 133.9 & 122.6516 & 94.6415 & 156.9328 & 0.2601 & 0.3166 & 0.3166 & 0.2401 \tabularnewline
73 & 119.9 & 122.7151 & 94.6491 & 157.0761 & 0.4362 & 0.2617 & 0.2617 & 0.2417 \tabularnewline
74 & 136.9 & 122.8401 & 94.6734 & 157.3441 & 0.2122 & 0.5663 & 0.5663 & 0.2449 \tabularnewline
75 & 148.9 & 122.933 & 94.6329 & 157.6316 & 0.0712 & 0.2151 & 0.2151 & 0.2477 \tabularnewline
76 & 145.1 & 122.9886 & 94.5334 & 157.9172 & 0.1073 & 0.073 & 0.073 & 0.2502 \tabularnewline
77 & 142.4 & 123.0187 & 94.3964 & 158.1976 & 0.1401 & 0.1093 & 0.1093 & 0.2522 \tabularnewline
78 & 159.6 & 123.0342 & 94.2391 & 158.4736 & 0.0216 & 0.1421 & 0.1421 & 0.2541 \tabularnewline
79 & 120.7 & 123.0418 & 94.0718 & 158.7461 & 0.4489 & 0.0224 & 0.0224 & 0.2558 \tabularnewline
80 & 109 & 123.0455 & 93.9004 & 159.016 & 0.222 & 0.5508 & 0.5508 & 0.2574 \tabularnewline
81 & 142 & 123.0472 & 93.7277 & 159.2839 & 0.1527 & 0.7763 & 0.7763 & 0.259 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34329&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[69])[/C][/ROW]
[ROW][C]68[/C][C]99.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]135[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]70[/C][C]133.2[/C][C]125.4844[/C][C]97.7384[/C][C]159.2017[/C][C]0.3269[/C][C]0.2901[/C][C]0.2901[/C][C]0.2901[/C][/ROW]
[ROW][C]71[/C][C]131[/C][C]123.0714[/C][C]95.0453[/C][C]157.3502[/C][C]0.3251[/C][C]0.2812[/C][C]0.2812[/C][C]0.2476[/C][/ROW]
[ROW][C]72[/C][C]133.9[/C][C]122.6516[/C][C]94.6415[/C][C]156.9328[/C][C]0.2601[/C][C]0.3166[/C][C]0.3166[/C][C]0.2401[/C][/ROW]
[ROW][C]73[/C][C]119.9[/C][C]122.7151[/C][C]94.6491[/C][C]157.0761[/C][C]0.4362[/C][C]0.2617[/C][C]0.2617[/C][C]0.2417[/C][/ROW]
[ROW][C]74[/C][C]136.9[/C][C]122.8401[/C][C]94.6734[/C][C]157.3441[/C][C]0.2122[/C][C]0.5663[/C][C]0.5663[/C][C]0.2449[/C][/ROW]
[ROW][C]75[/C][C]148.9[/C][C]122.933[/C][C]94.6329[/C][C]157.6316[/C][C]0.0712[/C][C]0.2151[/C][C]0.2151[/C][C]0.2477[/C][/ROW]
[ROW][C]76[/C][C]145.1[/C][C]122.9886[/C][C]94.5334[/C][C]157.9172[/C][C]0.1073[/C][C]0.073[/C][C]0.073[/C][C]0.2502[/C][/ROW]
[ROW][C]77[/C][C]142.4[/C][C]123.0187[/C][C]94.3964[/C][C]158.1976[/C][C]0.1401[/C][C]0.1093[/C][C]0.1093[/C][C]0.2522[/C][/ROW]
[ROW][C]78[/C][C]159.6[/C][C]123.0342[/C][C]94.2391[/C][C]158.4736[/C][C]0.0216[/C][C]0.1421[/C][C]0.1421[/C][C]0.2541[/C][/ROW]
[ROW][C]79[/C][C]120.7[/C][C]123.0418[/C][C]94.0718[/C][C]158.7461[/C][C]0.4489[/C][C]0.0224[/C][C]0.0224[/C][C]0.2558[/C][/ROW]
[ROW][C]80[/C][C]109[/C][C]123.0455[/C][C]93.9004[/C][C]159.016[/C][C]0.222[/C][C]0.5508[/C][C]0.5508[/C][C]0.2574[/C][/ROW]
[ROW][C]81[/C][C]142[/C][C]123.0472[/C][C]93.7277[/C][C]159.2839[/C][C]0.1527[/C][C]0.7763[/C][C]0.7763[/C][C]0.259[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34329&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34329&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[69])
6899.1-------
69135-------
70133.2125.484497.7384159.20170.32690.29010.29010.2901
71131123.071495.0453157.35020.32510.28120.28120.2476
72133.9122.651694.6415156.93280.26010.31660.31660.2401
73119.9122.715194.6491157.07610.43620.26170.26170.2417
74136.9122.840194.6734157.34410.21220.56630.56630.2449
75148.9122.93394.6329157.63160.07120.21510.21510.2477
76145.1122.988694.5334157.91720.10730.0730.0730.2502
77142.4123.018794.3964158.19760.14010.10930.10930.2522
78159.6123.034294.2391158.47360.02160.14210.14210.2541
79120.7123.041894.0718158.74610.44890.02240.02240.2558
80109123.045593.9004159.0160.2220.55080.55080.2574
81142123.047293.7277159.28390.15270.77630.77630.259







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
700.13710.06150.005159.53044.96092.2273
710.14210.06440.005462.86345.23862.2888
720.14260.09170.0076126.52610.54383.2471
730.1429-0.02290.00197.92460.66040.8126
740.14330.11450.0095197.681716.47354.0588
750.1440.21120.0176674.287256.19067.496
760.14490.17980.015488.916140.7436.383
770.14590.15750.0131375.634731.30295.5949
780.1470.29720.02481337.0613111.421810.5557
790.1481-0.0190.00165.48390.4570.676
800.1492-0.11410.0095197.274816.43964.0546
810.15030.1540.0128359.20929.93415.4712

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
70 & 0.1371 & 0.0615 & 0.0051 & 59.5304 & 4.9609 & 2.2273 \tabularnewline
71 & 0.1421 & 0.0644 & 0.0054 & 62.8634 & 5.2386 & 2.2888 \tabularnewline
72 & 0.1426 & 0.0917 & 0.0076 & 126.526 & 10.5438 & 3.2471 \tabularnewline
73 & 0.1429 & -0.0229 & 0.0019 & 7.9246 & 0.6604 & 0.8126 \tabularnewline
74 & 0.1433 & 0.1145 & 0.0095 & 197.6817 & 16.4735 & 4.0588 \tabularnewline
75 & 0.144 & 0.2112 & 0.0176 & 674.2872 & 56.1906 & 7.496 \tabularnewline
76 & 0.1449 & 0.1798 & 0.015 & 488.9161 & 40.743 & 6.383 \tabularnewline
77 & 0.1459 & 0.1575 & 0.0131 & 375.6347 & 31.3029 & 5.5949 \tabularnewline
78 & 0.147 & 0.2972 & 0.0248 & 1337.0613 & 111.4218 & 10.5557 \tabularnewline
79 & 0.1481 & -0.019 & 0.0016 & 5.4839 & 0.457 & 0.676 \tabularnewline
80 & 0.1492 & -0.1141 & 0.0095 & 197.2748 & 16.4396 & 4.0546 \tabularnewline
81 & 0.1503 & 0.154 & 0.0128 & 359.209 & 29.9341 & 5.4712 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34329&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]70[/C][C]0.1371[/C][C]0.0615[/C][C]0.0051[/C][C]59.5304[/C][C]4.9609[/C][C]2.2273[/C][/ROW]
[ROW][C]71[/C][C]0.1421[/C][C]0.0644[/C][C]0.0054[/C][C]62.8634[/C][C]5.2386[/C][C]2.2888[/C][/ROW]
[ROW][C]72[/C][C]0.1426[/C][C]0.0917[/C][C]0.0076[/C][C]126.526[/C][C]10.5438[/C][C]3.2471[/C][/ROW]
[ROW][C]73[/C][C]0.1429[/C][C]-0.0229[/C][C]0.0019[/C][C]7.9246[/C][C]0.6604[/C][C]0.8126[/C][/ROW]
[ROW][C]74[/C][C]0.1433[/C][C]0.1145[/C][C]0.0095[/C][C]197.6817[/C][C]16.4735[/C][C]4.0588[/C][/ROW]
[ROW][C]75[/C][C]0.144[/C][C]0.2112[/C][C]0.0176[/C][C]674.2872[/C][C]56.1906[/C][C]7.496[/C][/ROW]
[ROW][C]76[/C][C]0.1449[/C][C]0.1798[/C][C]0.015[/C][C]488.9161[/C][C]40.743[/C][C]6.383[/C][/ROW]
[ROW][C]77[/C][C]0.1459[/C][C]0.1575[/C][C]0.0131[/C][C]375.6347[/C][C]31.3029[/C][C]5.5949[/C][/ROW]
[ROW][C]78[/C][C]0.147[/C][C]0.2972[/C][C]0.0248[/C][C]1337.0613[/C][C]111.4218[/C][C]10.5557[/C][/ROW]
[ROW][C]79[/C][C]0.1481[/C][C]-0.019[/C][C]0.0016[/C][C]5.4839[/C][C]0.457[/C][C]0.676[/C][/ROW]
[ROW][C]80[/C][C]0.1492[/C][C]-0.1141[/C][C]0.0095[/C][C]197.2748[/C][C]16.4396[/C][C]4.0546[/C][/ROW]
[ROW][C]81[/C][C]0.1503[/C][C]0.154[/C][C]0.0128[/C][C]359.209[/C][C]29.9341[/C][C]5.4712[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34329&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34329&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
700.13710.06150.005159.53044.96092.2273
710.14210.06440.005462.86345.23862.2888
720.14260.09170.0076126.52610.54383.2471
730.1429-0.02290.00197.92460.66040.8126
740.14330.11450.0095197.681716.47354.0588
750.1440.21120.0176674.287256.19067.496
760.14490.17980.015488.916140.7436.383
770.14590.15750.0131375.634731.30295.5949
780.1470.29720.02481337.0613111.421810.5557
790.1481-0.0190.00165.48390.4570.676
800.1492-0.11410.0095197.274816.43964.0546
810.15030.1540.0128359.20929.93415.4712



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