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 computationTue, 06 Dec 2011 10:52:20 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/06/t13231867531zh55i7wn7mw7jb.htm/, Retrieved Sun, 28 Apr 2024 22:12:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=151702, Retrieved Sun, 28 Apr 2024 22:12:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2011-12-06 15:52:20] [888e326c8b932e070d5e53fa2c51e0f3] [Current]
Feedback Forum

Post a new message
Dataseries X:
112
118
132
129
121
135
148
148
136
119
104
118
115
126
141
135
125
149
170
170
158
133
114
140
145
150
178
163
172
178
199
199
184
162
146
166
171
180
193
181
183
218
230
242
209
191
172
194
196
196
236
235
229
243
264
272
237
211
180
201
204
188
235
227
234
264
302
293
259
229
203
229
242
233
267
269
270
315
364
347
312
274
237
278
284
277
317
313
318
374
413
405
355
306
271
306
315
301
356
348
355
422
465
467
404
347
305
336
340
318
362
348
363
435
491
505
404
359
310
337
360
342
406
396
420
472
548
559
463
407
362
405
417
391
419
461
472
535
622
606
508
461
390
432




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151702&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]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151702&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151702&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'Gertrude Mary Cox' @ cox.wessa.net







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[132])
131362-------
132405-------
133417431.8813376.249487.51360.30.82820.82820.8282
134391417.6352320.6371514.63340.29520.50510.50510.6008
135419422.5365301.4665543.60650.47720.69520.69520.6118
136461413.3298269.5039557.15570.2580.46920.46920.5452
137472413.3907251.9544574.8270.23840.28160.28160.5406
138535407.2735229.2043585.34260.07990.23810.23810.51
139622405.3351212.9454597.72480.01360.09330.09330.5014
140606400.6548194.7758606.53380.02530.01750.01750.4835
141508397.8604179.7832615.93760.16110.03070.03070.4744
142461393.8573164.2732623.44130.28330.16490.16490.4621
143390390.7141150.4585630.96970.49770.28320.28320.4536
144432387.0472136.6883637.40620.36240.49080.49080.4441

\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[132]) \tabularnewline
131 & 362 & - & - & - & - & - & - & - \tabularnewline
132 & 405 & - & - & - & - & - & - & - \tabularnewline
133 & 417 & 431.8813 & 376.249 & 487.5136 & 0.3 & 0.8282 & 0.8282 & 0.8282 \tabularnewline
134 & 391 & 417.6352 & 320.6371 & 514.6334 & 0.2952 & 0.5051 & 0.5051 & 0.6008 \tabularnewline
135 & 419 & 422.5365 & 301.4665 & 543.6065 & 0.4772 & 0.6952 & 0.6952 & 0.6118 \tabularnewline
136 & 461 & 413.3298 & 269.5039 & 557.1557 & 0.258 & 0.4692 & 0.4692 & 0.5452 \tabularnewline
137 & 472 & 413.3907 & 251.9544 & 574.827 & 0.2384 & 0.2816 & 0.2816 & 0.5406 \tabularnewline
138 & 535 & 407.2735 & 229.2043 & 585.3426 & 0.0799 & 0.2381 & 0.2381 & 0.51 \tabularnewline
139 & 622 & 405.3351 & 212.9454 & 597.7248 & 0.0136 & 0.0933 & 0.0933 & 0.5014 \tabularnewline
140 & 606 & 400.6548 & 194.7758 & 606.5338 & 0.0253 & 0.0175 & 0.0175 & 0.4835 \tabularnewline
141 & 508 & 397.8604 & 179.7832 & 615.9376 & 0.1611 & 0.0307 & 0.0307 & 0.4744 \tabularnewline
142 & 461 & 393.8573 & 164.2732 & 623.4413 & 0.2833 & 0.1649 & 0.1649 & 0.4621 \tabularnewline
143 & 390 & 390.7141 & 150.4585 & 630.9697 & 0.4977 & 0.2832 & 0.2832 & 0.4536 \tabularnewline
144 & 432 & 387.0472 & 136.6883 & 637.4062 & 0.3624 & 0.4908 & 0.4908 & 0.4441 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151702&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[132])[/C][/ROW]
[ROW][C]131[/C][C]362[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]132[/C][C]405[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]133[/C][C]417[/C][C]431.8813[/C][C]376.249[/C][C]487.5136[/C][C]0.3[/C][C]0.8282[/C][C]0.8282[/C][C]0.8282[/C][/ROW]
[ROW][C]134[/C][C]391[/C][C]417.6352[/C][C]320.6371[/C][C]514.6334[/C][C]0.2952[/C][C]0.5051[/C][C]0.5051[/C][C]0.6008[/C][/ROW]
[ROW][C]135[/C][C]419[/C][C]422.5365[/C][C]301.4665[/C][C]543.6065[/C][C]0.4772[/C][C]0.6952[/C][C]0.6952[/C][C]0.6118[/C][/ROW]
[ROW][C]136[/C][C]461[/C][C]413.3298[/C][C]269.5039[/C][C]557.1557[/C][C]0.258[/C][C]0.4692[/C][C]0.4692[/C][C]0.5452[/C][/ROW]
[ROW][C]137[/C][C]472[/C][C]413.3907[/C][C]251.9544[/C][C]574.827[/C][C]0.2384[/C][C]0.2816[/C][C]0.2816[/C][C]0.5406[/C][/ROW]
[ROW][C]138[/C][C]535[/C][C]407.2735[/C][C]229.2043[/C][C]585.3426[/C][C]0.0799[/C][C]0.2381[/C][C]0.2381[/C][C]0.51[/C][/ROW]
[ROW][C]139[/C][C]622[/C][C]405.3351[/C][C]212.9454[/C][C]597.7248[/C][C]0.0136[/C][C]0.0933[/C][C]0.0933[/C][C]0.5014[/C][/ROW]
[ROW][C]140[/C][C]606[/C][C]400.6548[/C][C]194.7758[/C][C]606.5338[/C][C]0.0253[/C][C]0.0175[/C][C]0.0175[/C][C]0.4835[/C][/ROW]
[ROW][C]141[/C][C]508[/C][C]397.8604[/C][C]179.7832[/C][C]615.9376[/C][C]0.1611[/C][C]0.0307[/C][C]0.0307[/C][C]0.4744[/C][/ROW]
[ROW][C]142[/C][C]461[/C][C]393.8573[/C][C]164.2732[/C][C]623.4413[/C][C]0.2833[/C][C]0.1649[/C][C]0.1649[/C][C]0.4621[/C][/ROW]
[ROW][C]143[/C][C]390[/C][C]390.7141[/C][C]150.4585[/C][C]630.9697[/C][C]0.4977[/C][C]0.2832[/C][C]0.2832[/C][C]0.4536[/C][/ROW]
[ROW][C]144[/C][C]432[/C][C]387.0472[/C][C]136.6883[/C][C]637.4062[/C][C]0.3624[/C][C]0.4908[/C][C]0.4908[/C][C]0.4441[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151702&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151702&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[132])
131362-------
132405-------
133417431.8813376.249487.51360.30.82820.82820.8282
134391417.6352320.6371514.63340.29520.50510.50510.6008
135419422.5365301.4665543.60650.47720.69520.69520.6118
136461413.3298269.5039557.15570.2580.46920.46920.5452
137472413.3907251.9544574.8270.23840.28160.28160.5406
138535407.2735229.2043585.34260.07990.23810.23810.51
139622405.3351212.9454597.72480.01360.09330.09330.5014
140606400.6548194.7758606.53380.02530.01750.01750.4835
141508397.8604179.7832615.93760.16110.03070.03070.4744
142461393.8573164.2732623.44130.28330.16490.16490.4621
143390390.7141150.4585630.96970.49770.28320.28320.4536
144432387.0472136.6883637.40620.36240.49080.49080.4441







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
1330.0657-0.03450221.45300
1340.1185-0.06380.0491709.4348465.443921.5741
1350.1462-0.00840.035512.5067314.464917.7332
1360.17750.11530.05552272.4483803.960728.3542
1370.19920.14180.07273435.04751330.178136.4716
1380.22310.31360.112916314.06483827.492561.8667
1390.24220.53450.173146943.68589986.948799.9347
1400.26220.51250.215542166.652814009.4117118.3614
1410.27970.27680.222412130.730513800.6694117.4763
1420.29740.17050.21724508.148812871.4173113.4523
1430.3137-0.00180.19760.509911701.3348108.1727
1440.330.11610.19082020.7510894.6194104.3773

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
133 & 0.0657 & -0.0345 & 0 & 221.453 & 0 & 0 \tabularnewline
134 & 0.1185 & -0.0638 & 0.0491 & 709.4348 & 465.4439 & 21.5741 \tabularnewline
135 & 0.1462 & -0.0084 & 0.0355 & 12.5067 & 314.4649 & 17.7332 \tabularnewline
136 & 0.1775 & 0.1153 & 0.0555 & 2272.4483 & 803.9607 & 28.3542 \tabularnewline
137 & 0.1992 & 0.1418 & 0.0727 & 3435.0475 & 1330.1781 & 36.4716 \tabularnewline
138 & 0.2231 & 0.3136 & 0.1129 & 16314.0648 & 3827.4925 & 61.8667 \tabularnewline
139 & 0.2422 & 0.5345 & 0.1731 & 46943.6858 & 9986.9487 & 99.9347 \tabularnewline
140 & 0.2622 & 0.5125 & 0.2155 & 42166.6528 & 14009.4117 & 118.3614 \tabularnewline
141 & 0.2797 & 0.2768 & 0.2224 & 12130.7305 & 13800.6694 & 117.4763 \tabularnewline
142 & 0.2974 & 0.1705 & 0.2172 & 4508.1488 & 12871.4173 & 113.4523 \tabularnewline
143 & 0.3137 & -0.0018 & 0.1976 & 0.5099 & 11701.3348 & 108.1727 \tabularnewline
144 & 0.33 & 0.1161 & 0.1908 & 2020.75 & 10894.6194 & 104.3773 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151702&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]133[/C][C]0.0657[/C][C]-0.0345[/C][C]0[/C][C]221.453[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]134[/C][C]0.1185[/C][C]-0.0638[/C][C]0.0491[/C][C]709.4348[/C][C]465.4439[/C][C]21.5741[/C][/ROW]
[ROW][C]135[/C][C]0.1462[/C][C]-0.0084[/C][C]0.0355[/C][C]12.5067[/C][C]314.4649[/C][C]17.7332[/C][/ROW]
[ROW][C]136[/C][C]0.1775[/C][C]0.1153[/C][C]0.0555[/C][C]2272.4483[/C][C]803.9607[/C][C]28.3542[/C][/ROW]
[ROW][C]137[/C][C]0.1992[/C][C]0.1418[/C][C]0.0727[/C][C]3435.0475[/C][C]1330.1781[/C][C]36.4716[/C][/ROW]
[ROW][C]138[/C][C]0.2231[/C][C]0.3136[/C][C]0.1129[/C][C]16314.0648[/C][C]3827.4925[/C][C]61.8667[/C][/ROW]
[ROW][C]139[/C][C]0.2422[/C][C]0.5345[/C][C]0.1731[/C][C]46943.6858[/C][C]9986.9487[/C][C]99.9347[/C][/ROW]
[ROW][C]140[/C][C]0.2622[/C][C]0.5125[/C][C]0.2155[/C][C]42166.6528[/C][C]14009.4117[/C][C]118.3614[/C][/ROW]
[ROW][C]141[/C][C]0.2797[/C][C]0.2768[/C][C]0.2224[/C][C]12130.7305[/C][C]13800.6694[/C][C]117.4763[/C][/ROW]
[ROW][C]142[/C][C]0.2974[/C][C]0.1705[/C][C]0.2172[/C][C]4508.1488[/C][C]12871.4173[/C][C]113.4523[/C][/ROW]
[ROW][C]143[/C][C]0.3137[/C][C]-0.0018[/C][C]0.1976[/C][C]0.5099[/C][C]11701.3348[/C][C]108.1727[/C][/ROW]
[ROW][C]144[/C][C]0.33[/C][C]0.1161[/C][C]0.1908[/C][C]2020.75[/C][C]10894.6194[/C][C]104.3773[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151702&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151702&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
1330.0657-0.03450221.45300
1340.1185-0.06380.0491709.4348465.443921.5741
1350.1462-0.00840.035512.5067314.464917.7332
1360.17750.11530.05552272.4483803.960728.3542
1370.19920.14180.07273435.04751330.178136.4716
1380.22310.31360.112916314.06483827.492561.8667
1390.24220.53450.173146943.68589986.948799.9347
1400.26220.51250.215542166.652814009.4117118.3614
1410.27970.27680.222412130.730513800.6694117.4763
1420.29740.17050.21724508.148812871.4173113.4523
1430.3137-0.00180.19760.509911701.3348108.1727
1440.330.11610.19082020.7510894.6194104.3773



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