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 07:32:39 -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/t12295246775dh2rnmsu52x8js.htm/, Retrieved Sun, 19 May 2024 05:56:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34370, Retrieved Sun, 19 May 2024 05:56:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact132
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 14:32:39] [21a82be02162ee9c644b6689eefbb825] [Current]
Feedback Forum

Post a new message
Dataseries X:
98,5
97,0
103,3
99,6
100,1
102,9
95,9
94,5
107,4
116,0
102,8
99,8
109,6
103,0
111,6
106,3
97,9
108,8
103,9
101,2
122,9
123,9
111,7
120,9
99,6
103,3
119,4
106,5
101,9
124,6
106,5
107,8
127,4
120,1
118,5
127,7
107,7
104,5
118,8
110,3
109,6
119,1
96,5
106,7
126,3
116,2
118,8
115,2
110,0
111,4
129,6
108,1
117,8
122,9
100,6
111,8
127,0
128,6
124,8
118,5
114,7
112,6
128,7
111,0
115,8
126,0
111,1
113,2
120,1
130,6
124,0
119,4
116,7
116,5
119,6
126,5
111,3
123,5
114,2
103,7
129,5




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34370&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34370&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34370&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'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])
68113.2-------
69120.1-------
70130.6112.517898.6359126.39980.00530.14220.14220.1422
71124116.8602101.881131.83950.17510.03610.03610.3358
72119.4120.4035105.4062135.40090.44780.31920.31920.5158
73116.7113.638997.613129.66480.35410.24050.24050.2147
74116.5116.4164100.3738132.45910.49590.48620.48620.3263
75119.6118.0798102.0109134.14880.42640.57640.57640.4027
76126.5113.960196.2707131.64950.08240.2660.2660.2482
77111.3116.980898.9975134.9640.26790.14980.14980.3669
78123.5117.807599.6446135.97040.26950.75870.75870.4023
79114.2114.870495.9053133.83550.47240.18620.18620.2944
80103.7116.996697.9314136.06180.08580.61310.61310.3748
81129.5117.027597.7896136.26550.10190.91270.91270.3771

\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 & 113.2 & - & - & - & - & - & - & - \tabularnewline
69 & 120.1 & - & - & - & - & - & - & - \tabularnewline
70 & 130.6 & 112.5178 & 98.6359 & 126.3998 & 0.0053 & 0.1422 & 0.1422 & 0.1422 \tabularnewline
71 & 124 & 116.8602 & 101.881 & 131.8395 & 0.1751 & 0.0361 & 0.0361 & 0.3358 \tabularnewline
72 & 119.4 & 120.4035 & 105.4062 & 135.4009 & 0.4478 & 0.3192 & 0.3192 & 0.5158 \tabularnewline
73 & 116.7 & 113.6389 & 97.613 & 129.6648 & 0.3541 & 0.2405 & 0.2405 & 0.2147 \tabularnewline
74 & 116.5 & 116.4164 & 100.3738 & 132.4591 & 0.4959 & 0.4862 & 0.4862 & 0.3263 \tabularnewline
75 & 119.6 & 118.0798 & 102.0109 & 134.1488 & 0.4264 & 0.5764 & 0.5764 & 0.4027 \tabularnewline
76 & 126.5 & 113.9601 & 96.2707 & 131.6495 & 0.0824 & 0.266 & 0.266 & 0.2482 \tabularnewline
77 & 111.3 & 116.9808 & 98.9975 & 134.964 & 0.2679 & 0.1498 & 0.1498 & 0.3669 \tabularnewline
78 & 123.5 & 117.8075 & 99.6446 & 135.9704 & 0.2695 & 0.7587 & 0.7587 & 0.4023 \tabularnewline
79 & 114.2 & 114.8704 & 95.9053 & 133.8355 & 0.4724 & 0.1862 & 0.1862 & 0.2944 \tabularnewline
80 & 103.7 & 116.9966 & 97.9314 & 136.0618 & 0.0858 & 0.6131 & 0.6131 & 0.3748 \tabularnewline
81 & 129.5 & 117.0275 & 97.7896 & 136.2655 & 0.1019 & 0.9127 & 0.9127 & 0.3771 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34370&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]113.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]120.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]70[/C][C]130.6[/C][C]112.5178[/C][C]98.6359[/C][C]126.3998[/C][C]0.0053[/C][C]0.1422[/C][C]0.1422[/C][C]0.1422[/C][/ROW]
[ROW][C]71[/C][C]124[/C][C]116.8602[/C][C]101.881[/C][C]131.8395[/C][C]0.1751[/C][C]0.0361[/C][C]0.0361[/C][C]0.3358[/C][/ROW]
[ROW][C]72[/C][C]119.4[/C][C]120.4035[/C][C]105.4062[/C][C]135.4009[/C][C]0.4478[/C][C]0.3192[/C][C]0.3192[/C][C]0.5158[/C][/ROW]
[ROW][C]73[/C][C]116.7[/C][C]113.6389[/C][C]97.613[/C][C]129.6648[/C][C]0.3541[/C][C]0.2405[/C][C]0.2405[/C][C]0.2147[/C][/ROW]
[ROW][C]74[/C][C]116.5[/C][C]116.4164[/C][C]100.3738[/C][C]132.4591[/C][C]0.4959[/C][C]0.4862[/C][C]0.4862[/C][C]0.3263[/C][/ROW]
[ROW][C]75[/C][C]119.6[/C][C]118.0798[/C][C]102.0109[/C][C]134.1488[/C][C]0.4264[/C][C]0.5764[/C][C]0.5764[/C][C]0.4027[/C][/ROW]
[ROW][C]76[/C][C]126.5[/C][C]113.9601[/C][C]96.2707[/C][C]131.6495[/C][C]0.0824[/C][C]0.266[/C][C]0.266[/C][C]0.2482[/C][/ROW]
[ROW][C]77[/C][C]111.3[/C][C]116.9808[/C][C]98.9975[/C][C]134.964[/C][C]0.2679[/C][C]0.1498[/C][C]0.1498[/C][C]0.3669[/C][/ROW]
[ROW][C]78[/C][C]123.5[/C][C]117.8075[/C][C]99.6446[/C][C]135.9704[/C][C]0.2695[/C][C]0.7587[/C][C]0.7587[/C][C]0.4023[/C][/ROW]
[ROW][C]79[/C][C]114.2[/C][C]114.8704[/C][C]95.9053[/C][C]133.8355[/C][C]0.4724[/C][C]0.1862[/C][C]0.1862[/C][C]0.2944[/C][/ROW]
[ROW][C]80[/C][C]103.7[/C][C]116.9966[/C][C]97.9314[/C][C]136.0618[/C][C]0.0858[/C][C]0.6131[/C][C]0.6131[/C][C]0.3748[/C][/ROW]
[ROW][C]81[/C][C]129.5[/C][C]117.0275[/C][C]97.7896[/C][C]136.2655[/C][C]0.1019[/C][C]0.9127[/C][C]0.9127[/C][C]0.3771[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34370&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34370&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])
68113.2-------
69120.1-------
70130.6112.517898.6359126.39980.00530.14220.14220.1422
71124116.8602101.881131.83950.17510.03610.03610.3358
72119.4120.4035105.4062135.40090.44780.31920.31920.5158
73116.7113.638997.613129.66480.35410.24050.24050.2147
74116.5116.4164100.3738132.45910.49590.48620.48620.3263
75119.6118.0798102.0109134.14880.42640.57640.57640.4027
76126.5113.960196.2707131.64950.08240.2660.2660.2482
77111.3116.980898.9975134.9640.26790.14980.14980.3669
78123.5117.807599.6446135.97040.26950.75870.75870.4023
79114.2114.870495.9053133.83550.47240.18620.18620.2944
80103.7116.996697.9314136.06180.08580.61310.61310.3748
81129.5117.027597.7896136.26550.10190.91270.91270.3771







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
700.06290.16070.0134326.965427.24715.2199
710.06540.06110.005150.9764.2482.0611
720.0636-0.00837e-041.00710.08390.2897
730.0720.02690.00229.37010.78080.8837
740.07037e-041e-040.0076e-040.0241
750.06940.01290.00112.31090.19260.4388
760.07920.110.0092157.248413.1043.6199
770.0784-0.04860.00432.2712.68931.6399
780.07870.04830.00432.40442.70041.6433
790.0842-0.00585e-040.44940.03750.1935
800.0831-0.11360.0095176.800514.73343.8384
810.08390.10660.0089155.562812.96363.6005

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
70 & 0.0629 & 0.1607 & 0.0134 & 326.9654 & 27.2471 & 5.2199 \tabularnewline
71 & 0.0654 & 0.0611 & 0.0051 & 50.976 & 4.248 & 2.0611 \tabularnewline
72 & 0.0636 & -0.0083 & 7e-04 & 1.0071 & 0.0839 & 0.2897 \tabularnewline
73 & 0.072 & 0.0269 & 0.0022 & 9.3701 & 0.7808 & 0.8837 \tabularnewline
74 & 0.0703 & 7e-04 & 1e-04 & 0.007 & 6e-04 & 0.0241 \tabularnewline
75 & 0.0694 & 0.0129 & 0.0011 & 2.3109 & 0.1926 & 0.4388 \tabularnewline
76 & 0.0792 & 0.11 & 0.0092 & 157.2484 & 13.104 & 3.6199 \tabularnewline
77 & 0.0784 & -0.0486 & 0.004 & 32.271 & 2.6893 & 1.6399 \tabularnewline
78 & 0.0787 & 0.0483 & 0.004 & 32.4044 & 2.7004 & 1.6433 \tabularnewline
79 & 0.0842 & -0.0058 & 5e-04 & 0.4494 & 0.0375 & 0.1935 \tabularnewline
80 & 0.0831 & -0.1136 & 0.0095 & 176.8005 & 14.7334 & 3.8384 \tabularnewline
81 & 0.0839 & 0.1066 & 0.0089 & 155.5628 & 12.9636 & 3.6005 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34370&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.0629[/C][C]0.1607[/C][C]0.0134[/C][C]326.9654[/C][C]27.2471[/C][C]5.2199[/C][/ROW]
[ROW][C]71[/C][C]0.0654[/C][C]0.0611[/C][C]0.0051[/C][C]50.976[/C][C]4.248[/C][C]2.0611[/C][/ROW]
[ROW][C]72[/C][C]0.0636[/C][C]-0.0083[/C][C]7e-04[/C][C]1.0071[/C][C]0.0839[/C][C]0.2897[/C][/ROW]
[ROW][C]73[/C][C]0.072[/C][C]0.0269[/C][C]0.0022[/C][C]9.3701[/C][C]0.7808[/C][C]0.8837[/C][/ROW]
[ROW][C]74[/C][C]0.0703[/C][C]7e-04[/C][C]1e-04[/C][C]0.007[/C][C]6e-04[/C][C]0.0241[/C][/ROW]
[ROW][C]75[/C][C]0.0694[/C][C]0.0129[/C][C]0.0011[/C][C]2.3109[/C][C]0.1926[/C][C]0.4388[/C][/ROW]
[ROW][C]76[/C][C]0.0792[/C][C]0.11[/C][C]0.0092[/C][C]157.2484[/C][C]13.104[/C][C]3.6199[/C][/ROW]
[ROW][C]77[/C][C]0.0784[/C][C]-0.0486[/C][C]0.004[/C][C]32.271[/C][C]2.6893[/C][C]1.6399[/C][/ROW]
[ROW][C]78[/C][C]0.0787[/C][C]0.0483[/C][C]0.004[/C][C]32.4044[/C][C]2.7004[/C][C]1.6433[/C][/ROW]
[ROW][C]79[/C][C]0.0842[/C][C]-0.0058[/C][C]5e-04[/C][C]0.4494[/C][C]0.0375[/C][C]0.1935[/C][/ROW]
[ROW][C]80[/C][C]0.0831[/C][C]-0.1136[/C][C]0.0095[/C][C]176.8005[/C][C]14.7334[/C][C]3.8384[/C][/ROW]
[ROW][C]81[/C][C]0.0839[/C][C]0.1066[/C][C]0.0089[/C][C]155.5628[/C][C]12.9636[/C][C]3.6005[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34370&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34370&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.06290.16070.0134326.965427.24715.2199
710.06540.06110.005150.9764.2482.0611
720.0636-0.00837e-041.00710.08390.2897
730.0720.02690.00229.37010.78080.8837
740.07037e-041e-040.0076e-040.0241
750.06940.01290.00112.31090.19260.4388
760.07920.110.0092157.248413.1043.6199
770.0784-0.04860.00432.2712.68931.6399
780.07870.04830.00432.40442.70041.6433
790.0842-0.00585e-040.44940.03750.1935
800.0831-0.11360.0095176.800514.73343.8384
810.08390.10660.0089155.562812.96363.6005



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