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, 05 Dec 2011 10:50:57 -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/05/t1323100442j5xfjgq0kcgat6c.htm/, Retrieved Fri, 03 May 2024 04:47:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=151004, Retrieved Fri, 03 May 2024 04:47:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Backward Selection] [] [2011-12-02 12:51:14] [f1de53e71fac758e9834be8effee591f]
- RMP     [ARIMA Forecasting] [] [2011-12-05 15:50:57] [13d85cac30d4a10947636c080219d4f4] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.829
9.125
9.782
9.441
9.162
9.915
10.444
10.209
9.985
9.842
9.429
10.132
9.849
9.172
10.313
9.819
9.955
10.048
10.082
10.541
10.208
10.233
9.439
9.963
10.158
9.225
10.474
9.757
10.490
10.281
10.444
10.640
10.695
10.786
9.832
9.747
10.411
9.511
10.402
9.701
10.540
10.112
10.915
11.183
10.384
10.834
9.886
10.216
10.943
9.867
10.203
10.837
10.573
10.647
11.502
10.656
10.866
10.835
9.945
10.331




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151004&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151004&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151004&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'Herman Ole Andreas Wold' @ wold.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[48])
479.886-------
4810.216-------
4910.94310.16969.267511.07170.04640.45980.45980.4598
509.86710.08249.145211.01960.32620.03590.03590.39
5110.20310.17549.079811.27110.48030.70950.70950.4711
5210.83710.12018.910211.330.12270.44660.44660.4383
5310.57310.13828.845611.43080.25490.14470.14470.453
5410.64710.14098.744811.5370.23870.27210.27210.458
5511.50210.13218.655311.6090.03450.24720.24720.4557
5610.65610.13928.580611.69790.25790.04330.04330.4615
5710.86610.13588.499211.77240.19090.26660.26660.4617
5810.83510.13648.427411.84550.21150.20140.20140.4637
599.94510.1378.356811.91730.41630.22110.22110.4654
6010.33110.13638.288411.98410.41820.58040.58040.4663

\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[48]) \tabularnewline
47 & 9.886 & - & - & - & - & - & - & - \tabularnewline
48 & 10.216 & - & - & - & - & - & - & - \tabularnewline
49 & 10.943 & 10.1696 & 9.2675 & 11.0717 & 0.0464 & 0.4598 & 0.4598 & 0.4598 \tabularnewline
50 & 9.867 & 10.0824 & 9.1452 & 11.0196 & 0.3262 & 0.0359 & 0.0359 & 0.39 \tabularnewline
51 & 10.203 & 10.1754 & 9.0798 & 11.2711 & 0.4803 & 0.7095 & 0.7095 & 0.4711 \tabularnewline
52 & 10.837 & 10.1201 & 8.9102 & 11.33 & 0.1227 & 0.4466 & 0.4466 & 0.4383 \tabularnewline
53 & 10.573 & 10.1382 & 8.8456 & 11.4308 & 0.2549 & 0.1447 & 0.1447 & 0.453 \tabularnewline
54 & 10.647 & 10.1409 & 8.7448 & 11.537 & 0.2387 & 0.2721 & 0.2721 & 0.458 \tabularnewline
55 & 11.502 & 10.1321 & 8.6553 & 11.609 & 0.0345 & 0.2472 & 0.2472 & 0.4557 \tabularnewline
56 & 10.656 & 10.1392 & 8.5806 & 11.6979 & 0.2579 & 0.0433 & 0.0433 & 0.4615 \tabularnewline
57 & 10.866 & 10.1358 & 8.4992 & 11.7724 & 0.1909 & 0.2666 & 0.2666 & 0.4617 \tabularnewline
58 & 10.835 & 10.1364 & 8.4274 & 11.8455 & 0.2115 & 0.2014 & 0.2014 & 0.4637 \tabularnewline
59 & 9.945 & 10.137 & 8.3568 & 11.9173 & 0.4163 & 0.2211 & 0.2211 & 0.4654 \tabularnewline
60 & 10.331 & 10.1363 & 8.2884 & 11.9841 & 0.4182 & 0.5804 & 0.5804 & 0.4663 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151004&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[48])[/C][/ROW]
[ROW][C]47[/C][C]9.886[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]10.216[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]10.943[/C][C]10.1696[/C][C]9.2675[/C][C]11.0717[/C][C]0.0464[/C][C]0.4598[/C][C]0.4598[/C][C]0.4598[/C][/ROW]
[ROW][C]50[/C][C]9.867[/C][C]10.0824[/C][C]9.1452[/C][C]11.0196[/C][C]0.3262[/C][C]0.0359[/C][C]0.0359[/C][C]0.39[/C][/ROW]
[ROW][C]51[/C][C]10.203[/C][C]10.1754[/C][C]9.0798[/C][C]11.2711[/C][C]0.4803[/C][C]0.7095[/C][C]0.7095[/C][C]0.4711[/C][/ROW]
[ROW][C]52[/C][C]10.837[/C][C]10.1201[/C][C]8.9102[/C][C]11.33[/C][C]0.1227[/C][C]0.4466[/C][C]0.4466[/C][C]0.4383[/C][/ROW]
[ROW][C]53[/C][C]10.573[/C][C]10.1382[/C][C]8.8456[/C][C]11.4308[/C][C]0.2549[/C][C]0.1447[/C][C]0.1447[/C][C]0.453[/C][/ROW]
[ROW][C]54[/C][C]10.647[/C][C]10.1409[/C][C]8.7448[/C][C]11.537[/C][C]0.2387[/C][C]0.2721[/C][C]0.2721[/C][C]0.458[/C][/ROW]
[ROW][C]55[/C][C]11.502[/C][C]10.1321[/C][C]8.6553[/C][C]11.609[/C][C]0.0345[/C][C]0.2472[/C][C]0.2472[/C][C]0.4557[/C][/ROW]
[ROW][C]56[/C][C]10.656[/C][C]10.1392[/C][C]8.5806[/C][C]11.6979[/C][C]0.2579[/C][C]0.0433[/C][C]0.0433[/C][C]0.4615[/C][/ROW]
[ROW][C]57[/C][C]10.866[/C][C]10.1358[/C][C]8.4992[/C][C]11.7724[/C][C]0.1909[/C][C]0.2666[/C][C]0.2666[/C][C]0.4617[/C][/ROW]
[ROW][C]58[/C][C]10.835[/C][C]10.1364[/C][C]8.4274[/C][C]11.8455[/C][C]0.2115[/C][C]0.2014[/C][C]0.2014[/C][C]0.4637[/C][/ROW]
[ROW][C]59[/C][C]9.945[/C][C]10.137[/C][C]8.3568[/C][C]11.9173[/C][C]0.4163[/C][C]0.2211[/C][C]0.2211[/C][C]0.4654[/C][/ROW]
[ROW][C]60[/C][C]10.331[/C][C]10.1363[/C][C]8.2884[/C][C]11.9841[/C][C]0.4182[/C][C]0.5804[/C][C]0.5804[/C][C]0.4663[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151004&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151004&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[48])
479.886-------
4810.216-------
4910.94310.16969.267511.07170.04640.45980.45980.4598
509.86710.08249.145211.01960.32620.03590.03590.39
5110.20310.17549.079811.27110.48030.70950.70950.4711
5210.83710.12018.910211.330.12270.44660.44660.4383
5310.57310.13828.845611.43080.25490.14470.14470.453
5410.64710.14098.744811.5370.23870.27210.27210.458
5511.50210.13218.655311.6090.03450.24720.24720.4557
5610.65610.13928.580611.69790.25790.04330.04330.4615
5710.86610.13588.499211.77240.19090.26660.26660.4617
5810.83510.13648.427411.84550.21150.20140.20140.4637
599.94510.1378.356811.91730.41630.22110.22110.4654
6010.33110.13638.288411.98410.41820.58040.58040.4663







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
490.04530.076100.598200
500.0474-0.02140.04870.04640.32230.5677
510.05490.00270.03348e-040.21510.4638
520.0610.07080.04270.51390.28980.5384
530.06510.04290.04280.18910.26970.5193
540.07020.04990.0440.25610.26740.5171
550.07440.13520.0571.87660.49730.7052
560.07840.0510.05620.26710.46850.6845
570.08240.0720.0580.53320.47570.6897
580.0860.06890.05910.4880.47690.6906
590.0896-0.01890.05540.03690.43690.661
600.0930.01920.05240.03790.40370.6354

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
49 & 0.0453 & 0.0761 & 0 & 0.5982 & 0 & 0 \tabularnewline
50 & 0.0474 & -0.0214 & 0.0487 & 0.0464 & 0.3223 & 0.5677 \tabularnewline
51 & 0.0549 & 0.0027 & 0.0334 & 8e-04 & 0.2151 & 0.4638 \tabularnewline
52 & 0.061 & 0.0708 & 0.0427 & 0.5139 & 0.2898 & 0.5384 \tabularnewline
53 & 0.0651 & 0.0429 & 0.0428 & 0.1891 & 0.2697 & 0.5193 \tabularnewline
54 & 0.0702 & 0.0499 & 0.044 & 0.2561 & 0.2674 & 0.5171 \tabularnewline
55 & 0.0744 & 0.1352 & 0.057 & 1.8766 & 0.4973 & 0.7052 \tabularnewline
56 & 0.0784 & 0.051 & 0.0562 & 0.2671 & 0.4685 & 0.6845 \tabularnewline
57 & 0.0824 & 0.072 & 0.058 & 0.5332 & 0.4757 & 0.6897 \tabularnewline
58 & 0.086 & 0.0689 & 0.0591 & 0.488 & 0.4769 & 0.6906 \tabularnewline
59 & 0.0896 & -0.0189 & 0.0554 & 0.0369 & 0.4369 & 0.661 \tabularnewline
60 & 0.093 & 0.0192 & 0.0524 & 0.0379 & 0.4037 & 0.6354 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=151004&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]49[/C][C]0.0453[/C][C]0.0761[/C][C]0[/C][C]0.5982[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]50[/C][C]0.0474[/C][C]-0.0214[/C][C]0.0487[/C][C]0.0464[/C][C]0.3223[/C][C]0.5677[/C][/ROW]
[ROW][C]51[/C][C]0.0549[/C][C]0.0027[/C][C]0.0334[/C][C]8e-04[/C][C]0.2151[/C][C]0.4638[/C][/ROW]
[ROW][C]52[/C][C]0.061[/C][C]0.0708[/C][C]0.0427[/C][C]0.5139[/C][C]0.2898[/C][C]0.5384[/C][/ROW]
[ROW][C]53[/C][C]0.0651[/C][C]0.0429[/C][C]0.0428[/C][C]0.1891[/C][C]0.2697[/C][C]0.5193[/C][/ROW]
[ROW][C]54[/C][C]0.0702[/C][C]0.0499[/C][C]0.044[/C][C]0.2561[/C][C]0.2674[/C][C]0.5171[/C][/ROW]
[ROW][C]55[/C][C]0.0744[/C][C]0.1352[/C][C]0.057[/C][C]1.8766[/C][C]0.4973[/C][C]0.7052[/C][/ROW]
[ROW][C]56[/C][C]0.0784[/C][C]0.051[/C][C]0.0562[/C][C]0.2671[/C][C]0.4685[/C][C]0.6845[/C][/ROW]
[ROW][C]57[/C][C]0.0824[/C][C]0.072[/C][C]0.058[/C][C]0.5332[/C][C]0.4757[/C][C]0.6897[/C][/ROW]
[ROW][C]58[/C][C]0.086[/C][C]0.0689[/C][C]0.0591[/C][C]0.488[/C][C]0.4769[/C][C]0.6906[/C][/ROW]
[ROW][C]59[/C][C]0.0896[/C][C]-0.0189[/C][C]0.0554[/C][C]0.0369[/C][C]0.4369[/C][C]0.661[/C][/ROW]
[ROW][C]60[/C][C]0.093[/C][C]0.0192[/C][C]0.0524[/C][C]0.0379[/C][C]0.4037[/C][C]0.6354[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=151004&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=151004&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
490.04530.076100.598200
500.0474-0.02140.04870.04640.32230.5677
510.05490.00270.03348e-040.21510.4638
520.0610.07080.04270.51390.28980.5384
530.06510.04290.04280.18910.26970.5193
540.07020.04990.0440.25610.26740.5171
550.07440.13520.0571.87660.49730.7052
560.07840.0510.05620.26710.46850.6845
570.08240.0720.0580.53320.47570.6897
580.0860.06890.05910.4880.47690.6906
590.0896-0.01890.05540.03690.43690.661
600.0930.01920.05240.03790.40370.6354



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