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 computationSat, 19 Dec 2009 10:39:15 -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/2009/Dec/19/t12612444669f3jp5lu91ovuqm.htm/, Retrieved Sat, 04 May 2024 02:24:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69721, Retrieved Sat, 04 May 2024 02:24:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [ARIMA Forecasting] [2008-12-23 17:44:33] [74be16979710d4c4e7c6647856088456]
-  M      [ARIMA Forecasting] [ARIMA forecasting...] [2009-12-19 17:39:15] [986e3c28a4248c495afaef9fd432264f] [Current]
Feedback Forum

Post a new message
Dataseries X:
621
604
584
574
555
545
599
620
608
590
579
580
579
572
560
551
537
541
588
607
599
578
563
566
561
554
540
526
512
505
554
584
569
540
522
526
527
516
503
489
479
475
524
552
532
511
492
492
493
481
462
457
442
439
488
521
501
485
464
460
467
460
448
443
436
431
484
510
513
503
471
471
476
475
470
461
455
456
517
525
523
519
509
512
519
517
510
509
501
507
569
580
578
565
547
555
562
561
555
544
537
543
594
611
613
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69721&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[143])
142527-------
143510-------
144514508.383473.4173543.34880.37640.46390.46390.4639
145517510.8913456.4739565.30880.41290.45540.45540.5128
146508513.5325446.3173580.74770.43590.45970.45970.541
147493515.1973439.1791591.21540.28360.57360.57360.5533
148490515.8114433.2475598.37520.270.70590.70590.5549
149469515.597427.7283603.46570.14930.7160.7160.5497
150478514.8053422.2973607.31330.21780.83410.83410.5405
151528513.6372416.8306610.44390.38560.76470.76470.5294
152534512.234411.2843613.18360.33630.37980.37980.5173
153518510.6878405.645615.73060.44570.33180.33180.5051
154506509.0567399.9108618.20260.47810.43620.43620.4932
155502507.3759394.0833620.66850.46290.50950.50950.4819

\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[143]) \tabularnewline
142 & 527 & - & - & - & - & - & - & - \tabularnewline
143 & 510 & - & - & - & - & - & - & - \tabularnewline
144 & 514 & 508.383 & 473.4173 & 543.3488 & 0.3764 & 0.4639 & 0.4639 & 0.4639 \tabularnewline
145 & 517 & 510.8913 & 456.4739 & 565.3088 & 0.4129 & 0.4554 & 0.4554 & 0.5128 \tabularnewline
146 & 508 & 513.5325 & 446.3173 & 580.7477 & 0.4359 & 0.4597 & 0.4597 & 0.541 \tabularnewline
147 & 493 & 515.1973 & 439.1791 & 591.2154 & 0.2836 & 0.5736 & 0.5736 & 0.5533 \tabularnewline
148 & 490 & 515.8114 & 433.2475 & 598.3752 & 0.27 & 0.7059 & 0.7059 & 0.5549 \tabularnewline
149 & 469 & 515.597 & 427.7283 & 603.4657 & 0.1493 & 0.716 & 0.716 & 0.5497 \tabularnewline
150 & 478 & 514.8053 & 422.2973 & 607.3133 & 0.2178 & 0.8341 & 0.8341 & 0.5405 \tabularnewline
151 & 528 & 513.6372 & 416.8306 & 610.4439 & 0.3856 & 0.7647 & 0.7647 & 0.5294 \tabularnewline
152 & 534 & 512.234 & 411.2843 & 613.1836 & 0.3363 & 0.3798 & 0.3798 & 0.5173 \tabularnewline
153 & 518 & 510.6878 & 405.645 & 615.7306 & 0.4457 & 0.3318 & 0.3318 & 0.5051 \tabularnewline
154 & 506 & 509.0567 & 399.9108 & 618.2026 & 0.4781 & 0.4362 & 0.4362 & 0.4932 \tabularnewline
155 & 502 & 507.3759 & 394.0833 & 620.6685 & 0.4629 & 0.5095 & 0.5095 & 0.4819 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69721&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[143])[/C][/ROW]
[ROW][C]142[/C][C]527[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]143[/C][C]510[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]144[/C][C]514[/C][C]508.383[/C][C]473.4173[/C][C]543.3488[/C][C]0.3764[/C][C]0.4639[/C][C]0.4639[/C][C]0.4639[/C][/ROW]
[ROW][C]145[/C][C]517[/C][C]510.8913[/C][C]456.4739[/C][C]565.3088[/C][C]0.4129[/C][C]0.4554[/C][C]0.4554[/C][C]0.5128[/C][/ROW]
[ROW][C]146[/C][C]508[/C][C]513.5325[/C][C]446.3173[/C][C]580.7477[/C][C]0.4359[/C][C]0.4597[/C][C]0.4597[/C][C]0.541[/C][/ROW]
[ROW][C]147[/C][C]493[/C][C]515.1973[/C][C]439.1791[/C][C]591.2154[/C][C]0.2836[/C][C]0.5736[/C][C]0.5736[/C][C]0.5533[/C][/ROW]
[ROW][C]148[/C][C]490[/C][C]515.8114[/C][C]433.2475[/C][C]598.3752[/C][C]0.27[/C][C]0.7059[/C][C]0.7059[/C][C]0.5549[/C][/ROW]
[ROW][C]149[/C][C]469[/C][C]515.597[/C][C]427.7283[/C][C]603.4657[/C][C]0.1493[/C][C]0.716[/C][C]0.716[/C][C]0.5497[/C][/ROW]
[ROW][C]150[/C][C]478[/C][C]514.8053[/C][C]422.2973[/C][C]607.3133[/C][C]0.2178[/C][C]0.8341[/C][C]0.8341[/C][C]0.5405[/C][/ROW]
[ROW][C]151[/C][C]528[/C][C]513.6372[/C][C]416.8306[/C][C]610.4439[/C][C]0.3856[/C][C]0.7647[/C][C]0.7647[/C][C]0.5294[/C][/ROW]
[ROW][C]152[/C][C]534[/C][C]512.234[/C][C]411.2843[/C][C]613.1836[/C][C]0.3363[/C][C]0.3798[/C][C]0.3798[/C][C]0.5173[/C][/ROW]
[ROW][C]153[/C][C]518[/C][C]510.6878[/C][C]405.645[/C][C]615.7306[/C][C]0.4457[/C][C]0.3318[/C][C]0.3318[/C][C]0.5051[/C][/ROW]
[ROW][C]154[/C][C]506[/C][C]509.0567[/C][C]399.9108[/C][C]618.2026[/C][C]0.4781[/C][C]0.4362[/C][C]0.4362[/C][C]0.4932[/C][/ROW]
[ROW][C]155[/C][C]502[/C][C]507.3759[/C][C]394.0833[/C][C]620.6685[/C][C]0.4629[/C][C]0.5095[/C][C]0.5095[/C][C]0.4819[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69721&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69721&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[143])
142527-------
143510-------
144514508.383473.4173543.34880.37640.46390.46390.4639
145517510.8913456.4739565.30880.41290.45540.45540.5128
146508513.5325446.3173580.74770.43590.45970.45970.541
147493515.1973439.1791591.21540.28360.57360.57360.5533
148490515.8114433.2475598.37520.270.70590.70590.5549
149469515.597427.7283603.46570.14930.7160.7160.5497
150478514.8053422.2973607.31330.21780.83410.83410.5405
151528513.6372416.8306610.44390.38560.76470.76470.5294
152534512.234411.2843613.18360.33630.37980.37980.5173
153518510.6878405.645615.73060.44570.33180.33180.5051
154506509.0567399.9108618.20260.47810.43620.43620.4932
155502507.3759394.0833620.66850.46290.50950.50950.4819







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
1440.03510.0119e-0431.55042.62921.6215
1450.05430.0120.00137.31573.10961.7634
1460.0668-0.01089e-0430.60812.55071.5971
1470.0753-0.04310.0036492.718541.05996.4078
1480.0817-0.050.0042666.226155.51887.4511
1490.0869-0.09040.00752171.2792180.939913.4514
1500.0917-0.07150.0061354.6289112.885710.6248
1510.09620.0280.0023206.288817.19074.1462
1520.10050.04250.0035473.760339.486.2833
1530.10490.01430.001253.46794.45572.1108
1540.1094-0.0065e-049.34350.77860.8824
1550.1139-0.01069e-0428.90022.40841.5519

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
144 & 0.0351 & 0.011 & 9e-04 & 31.5504 & 2.6292 & 1.6215 \tabularnewline
145 & 0.0543 & 0.012 & 0.001 & 37.3157 & 3.1096 & 1.7634 \tabularnewline
146 & 0.0668 & -0.0108 & 9e-04 & 30.6081 & 2.5507 & 1.5971 \tabularnewline
147 & 0.0753 & -0.0431 & 0.0036 & 492.7185 & 41.0599 & 6.4078 \tabularnewline
148 & 0.0817 & -0.05 & 0.0042 & 666.2261 & 55.5188 & 7.4511 \tabularnewline
149 & 0.0869 & -0.0904 & 0.0075 & 2171.2792 & 180.9399 & 13.4514 \tabularnewline
150 & 0.0917 & -0.0715 & 0.006 & 1354.6289 & 112.8857 & 10.6248 \tabularnewline
151 & 0.0962 & 0.028 & 0.0023 & 206.2888 & 17.1907 & 4.1462 \tabularnewline
152 & 0.1005 & 0.0425 & 0.0035 & 473.7603 & 39.48 & 6.2833 \tabularnewline
153 & 0.1049 & 0.0143 & 0.0012 & 53.4679 & 4.4557 & 2.1108 \tabularnewline
154 & 0.1094 & -0.006 & 5e-04 & 9.3435 & 0.7786 & 0.8824 \tabularnewline
155 & 0.1139 & -0.0106 & 9e-04 & 28.9002 & 2.4084 & 1.5519 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69721&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]144[/C][C]0.0351[/C][C]0.011[/C][C]9e-04[/C][C]31.5504[/C][C]2.6292[/C][C]1.6215[/C][/ROW]
[ROW][C]145[/C][C]0.0543[/C][C]0.012[/C][C]0.001[/C][C]37.3157[/C][C]3.1096[/C][C]1.7634[/C][/ROW]
[ROW][C]146[/C][C]0.0668[/C][C]-0.0108[/C][C]9e-04[/C][C]30.6081[/C][C]2.5507[/C][C]1.5971[/C][/ROW]
[ROW][C]147[/C][C]0.0753[/C][C]-0.0431[/C][C]0.0036[/C][C]492.7185[/C][C]41.0599[/C][C]6.4078[/C][/ROW]
[ROW][C]148[/C][C]0.0817[/C][C]-0.05[/C][C]0.0042[/C][C]666.2261[/C][C]55.5188[/C][C]7.4511[/C][/ROW]
[ROW][C]149[/C][C]0.0869[/C][C]-0.0904[/C][C]0.0075[/C][C]2171.2792[/C][C]180.9399[/C][C]13.4514[/C][/ROW]
[ROW][C]150[/C][C]0.0917[/C][C]-0.0715[/C][C]0.006[/C][C]1354.6289[/C][C]112.8857[/C][C]10.6248[/C][/ROW]
[ROW][C]151[/C][C]0.0962[/C][C]0.028[/C][C]0.0023[/C][C]206.2888[/C][C]17.1907[/C][C]4.1462[/C][/ROW]
[ROW][C]152[/C][C]0.1005[/C][C]0.0425[/C][C]0.0035[/C][C]473.7603[/C][C]39.48[/C][C]6.2833[/C][/ROW]
[ROW][C]153[/C][C]0.1049[/C][C]0.0143[/C][C]0.0012[/C][C]53.4679[/C][C]4.4557[/C][C]2.1108[/C][/ROW]
[ROW][C]154[/C][C]0.1094[/C][C]-0.006[/C][C]5e-04[/C][C]9.3435[/C][C]0.7786[/C][C]0.8824[/C][/ROW]
[ROW][C]155[/C][C]0.1139[/C][C]-0.0106[/C][C]9e-04[/C][C]28.9002[/C][C]2.4084[/C][C]1.5519[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69721&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69721&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
1440.03510.0119e-0431.55042.62921.6215
1450.05430.0120.00137.31573.10961.7634
1460.0668-0.01089e-0430.60812.55071.5971
1470.0753-0.04310.0036492.718541.05996.4078
1480.0817-0.050.0042666.226155.51887.4511
1490.0869-0.09040.00752171.2792180.939913.4514
1500.0917-0.07150.0061354.6289112.885710.6248
1510.09620.0280.0023206.288817.19074.1462
1520.10050.04250.0035473.760339.486.2833
1530.10490.01430.001253.46794.45572.1108
1540.1094-0.0065e-049.34350.77860.8824
1550.1139-0.01069e-0428.90022.40841.5519



Parameters (Session):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; par8 = 1 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; par8 = 1 ; par9 = 1 ; par10 = FALSE ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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')