Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationThu, 13 Dec 2007 14:06:10 -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/2007/Dec/13/t1197579053j7gjndeaxw2nyri.htm/, Retrieved Sun, 05 May 2024 09:31:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3730, Retrieved Sun, 05 May 2024 09:31:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact187
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA forecast ti...] [2007-12-13 21:06:10] [757ef2b8266f339cc1cb96dcaefa4cf0] [Current]
Feedback Forum

Post a new message
Dataseries X:
106,0
100,9
114,3
101,2
109,2
111,6
91,7
93,7
105,7
109,5
105,3
102,8
100,6
97,6
110,3
107,2
107,2
108,1
97,1
92,2
112,2
111,6
115,7
111,3
104,2
103,2
112,7
106,4
102,6
110,6
95,2
89,0
112,5
116,8
107,2
113,6
101,8
102,6
122,7
110,3
110,5
121,6
100,3
100,7
123,4
127,1
124,1
131,2
111,6
114,2
130,1
125,9
119,0
133,8
107,5
113,5
134,4
126,8
135,6
139,9
129,8
131,0
153,1
134,1
144,1
155,9
123,3
128,1
144,3
153,0
149,9
150,9
141,0
138,9
157,4
142,9
151,7
161,0
138,6
136,0
151,9




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3730&T=0

[TABLE]
[ROW][C]Summary of compuational 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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3730&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3730&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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







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])
68128.1-------
69144.3-------
70153137.9864118.8782157.09470.06180.25860.25860.2586
71149.9137.416117.3999157.43210.11080.06350.06350.2501
72150.9137.3788116.7955157.9620.0990.11660.11660.2549
73141137.3766116.2583158.49490.36830.10470.10470.2603
74138.9137.3765115.7374159.01560.44510.37140.37140.2653
75157.4137.3765115.2289159.52410.03820.44640.44640.27
76142.9137.3765114.7317160.02120.31630.04150.04150.2745
77151.7137.3765114.2453160.50770.11240.31990.31990.2787
78161137.3765113.7689160.98410.02490.11720.11720.2827
79138.6137.3765113.3019161.45110.46030.02720.02720.2865
80136137.3765112.8438161.90920.45620.46110.46110.2901
81151.9137.3765112.3941162.35890.12730.5430.5430.2935

\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 & 128.1 & - & - & - & - & - & - & - \tabularnewline
69 & 144.3 & - & - & - & - & - & - & - \tabularnewline
70 & 153 & 137.9864 & 118.8782 & 157.0947 & 0.0618 & 0.2586 & 0.2586 & 0.2586 \tabularnewline
71 & 149.9 & 137.416 & 117.3999 & 157.4321 & 0.1108 & 0.0635 & 0.0635 & 0.2501 \tabularnewline
72 & 150.9 & 137.3788 & 116.7955 & 157.962 & 0.099 & 0.1166 & 0.1166 & 0.2549 \tabularnewline
73 & 141 & 137.3766 & 116.2583 & 158.4949 & 0.3683 & 0.1047 & 0.1047 & 0.2603 \tabularnewline
74 & 138.9 & 137.3765 & 115.7374 & 159.0156 & 0.4451 & 0.3714 & 0.3714 & 0.2653 \tabularnewline
75 & 157.4 & 137.3765 & 115.2289 & 159.5241 & 0.0382 & 0.4464 & 0.4464 & 0.27 \tabularnewline
76 & 142.9 & 137.3765 & 114.7317 & 160.0212 & 0.3163 & 0.0415 & 0.0415 & 0.2745 \tabularnewline
77 & 151.7 & 137.3765 & 114.2453 & 160.5077 & 0.1124 & 0.3199 & 0.3199 & 0.2787 \tabularnewline
78 & 161 & 137.3765 & 113.7689 & 160.9841 & 0.0249 & 0.1172 & 0.1172 & 0.2827 \tabularnewline
79 & 138.6 & 137.3765 & 113.3019 & 161.4511 & 0.4603 & 0.0272 & 0.0272 & 0.2865 \tabularnewline
80 & 136 & 137.3765 & 112.8438 & 161.9092 & 0.4562 & 0.4611 & 0.4611 & 0.2901 \tabularnewline
81 & 151.9 & 137.3765 & 112.3941 & 162.3589 & 0.1273 & 0.543 & 0.543 & 0.2935 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3730&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]128.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]144.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]70[/C][C]153[/C][C]137.9864[/C][C]118.8782[/C][C]157.0947[/C][C]0.0618[/C][C]0.2586[/C][C]0.2586[/C][C]0.2586[/C][/ROW]
[ROW][C]71[/C][C]149.9[/C][C]137.416[/C][C]117.3999[/C][C]157.4321[/C][C]0.1108[/C][C]0.0635[/C][C]0.0635[/C][C]0.2501[/C][/ROW]
[ROW][C]72[/C][C]150.9[/C][C]137.3788[/C][C]116.7955[/C][C]157.962[/C][C]0.099[/C][C]0.1166[/C][C]0.1166[/C][C]0.2549[/C][/ROW]
[ROW][C]73[/C][C]141[/C][C]137.3766[/C][C]116.2583[/C][C]158.4949[/C][C]0.3683[/C][C]0.1047[/C][C]0.1047[/C][C]0.2603[/C][/ROW]
[ROW][C]74[/C][C]138.9[/C][C]137.3765[/C][C]115.7374[/C][C]159.0156[/C][C]0.4451[/C][C]0.3714[/C][C]0.3714[/C][C]0.2653[/C][/ROW]
[ROW][C]75[/C][C]157.4[/C][C]137.3765[/C][C]115.2289[/C][C]159.5241[/C][C]0.0382[/C][C]0.4464[/C][C]0.4464[/C][C]0.27[/C][/ROW]
[ROW][C]76[/C][C]142.9[/C][C]137.3765[/C][C]114.7317[/C][C]160.0212[/C][C]0.3163[/C][C]0.0415[/C][C]0.0415[/C][C]0.2745[/C][/ROW]
[ROW][C]77[/C][C]151.7[/C][C]137.3765[/C][C]114.2453[/C][C]160.5077[/C][C]0.1124[/C][C]0.3199[/C][C]0.3199[/C][C]0.2787[/C][/ROW]
[ROW][C]78[/C][C]161[/C][C]137.3765[/C][C]113.7689[/C][C]160.9841[/C][C]0.0249[/C][C]0.1172[/C][C]0.1172[/C][C]0.2827[/C][/ROW]
[ROW][C]79[/C][C]138.6[/C][C]137.3765[/C][C]113.3019[/C][C]161.4511[/C][C]0.4603[/C][C]0.0272[/C][C]0.0272[/C][C]0.2865[/C][/ROW]
[ROW][C]80[/C][C]136[/C][C]137.3765[/C][C]112.8438[/C][C]161.9092[/C][C]0.4562[/C][C]0.4611[/C][C]0.4611[/C][C]0.2901[/C][/ROW]
[ROW][C]81[/C][C]151.9[/C][C]137.3765[/C][C]112.3941[/C][C]162.3589[/C][C]0.1273[/C][C]0.543[/C][C]0.543[/C][C]0.2935[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3730&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3730&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])
68128.1-------
69144.3-------
70153137.9864118.8782157.09470.06180.25860.25860.2586
71149.9137.416117.3999157.43210.11080.06350.06350.2501
72150.9137.3788116.7955157.9620.0990.11660.11660.2549
73141137.3766116.2583158.49490.36830.10470.10470.2603
74138.9137.3765115.7374159.01560.44510.37140.37140.2653
75157.4137.3765115.2289159.52410.03820.44640.44640.27
76142.9137.3765114.7317160.02120.31630.04150.04150.2745
77151.7137.3765114.2453160.50770.11240.31990.31990.2787
78161137.3765113.7689160.98410.02490.11720.11720.2827
79138.6137.3765113.3019161.45110.46030.02720.02720.2865
80136137.3765112.8438161.90920.45620.46110.46110.2901
81151.9137.3765112.3941162.35890.12730.5430.5430.2935







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
700.07070.10880.0091225.407618.7844.334
710.07430.09080.0076155.849612.98753.6038
720.07640.09840.0082182.824115.23533.9032
730.07840.02640.002213.1291.09411.046
740.08040.01119e-042.32110.19340.4398
750.08230.14580.0121400.941133.41185.7803
760.08410.04020.003430.50922.54241.5945
770.08590.10430.0087205.163117.09694.1348
780.08770.1720.0143558.070546.50596.8195
790.08940.00897e-041.4970.12470.3532
800.0911-0.018e-041.89470.15790.3974
810.09280.10570.0088210.932517.57774.1926

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
70 & 0.0707 & 0.1088 & 0.0091 & 225.4076 & 18.784 & 4.334 \tabularnewline
71 & 0.0743 & 0.0908 & 0.0076 & 155.8496 & 12.9875 & 3.6038 \tabularnewline
72 & 0.0764 & 0.0984 & 0.0082 & 182.8241 & 15.2353 & 3.9032 \tabularnewline
73 & 0.0784 & 0.0264 & 0.0022 & 13.129 & 1.0941 & 1.046 \tabularnewline
74 & 0.0804 & 0.0111 & 9e-04 & 2.3211 & 0.1934 & 0.4398 \tabularnewline
75 & 0.0823 & 0.1458 & 0.0121 & 400.9411 & 33.4118 & 5.7803 \tabularnewline
76 & 0.0841 & 0.0402 & 0.0034 & 30.5092 & 2.5424 & 1.5945 \tabularnewline
77 & 0.0859 & 0.1043 & 0.0087 & 205.1631 & 17.0969 & 4.1348 \tabularnewline
78 & 0.0877 & 0.172 & 0.0143 & 558.0705 & 46.5059 & 6.8195 \tabularnewline
79 & 0.0894 & 0.0089 & 7e-04 & 1.497 & 0.1247 & 0.3532 \tabularnewline
80 & 0.0911 & -0.01 & 8e-04 & 1.8947 & 0.1579 & 0.3974 \tabularnewline
81 & 0.0928 & 0.1057 & 0.0088 & 210.9325 & 17.5777 & 4.1926 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3730&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.0707[/C][C]0.1088[/C][C]0.0091[/C][C]225.4076[/C][C]18.784[/C][C]4.334[/C][/ROW]
[ROW][C]71[/C][C]0.0743[/C][C]0.0908[/C][C]0.0076[/C][C]155.8496[/C][C]12.9875[/C][C]3.6038[/C][/ROW]
[ROW][C]72[/C][C]0.0764[/C][C]0.0984[/C][C]0.0082[/C][C]182.8241[/C][C]15.2353[/C][C]3.9032[/C][/ROW]
[ROW][C]73[/C][C]0.0784[/C][C]0.0264[/C][C]0.0022[/C][C]13.129[/C][C]1.0941[/C][C]1.046[/C][/ROW]
[ROW][C]74[/C][C]0.0804[/C][C]0.0111[/C][C]9e-04[/C][C]2.3211[/C][C]0.1934[/C][C]0.4398[/C][/ROW]
[ROW][C]75[/C][C]0.0823[/C][C]0.1458[/C][C]0.0121[/C][C]400.9411[/C][C]33.4118[/C][C]5.7803[/C][/ROW]
[ROW][C]76[/C][C]0.0841[/C][C]0.0402[/C][C]0.0034[/C][C]30.5092[/C][C]2.5424[/C][C]1.5945[/C][/ROW]
[ROW][C]77[/C][C]0.0859[/C][C]0.1043[/C][C]0.0087[/C][C]205.1631[/C][C]17.0969[/C][C]4.1348[/C][/ROW]
[ROW][C]78[/C][C]0.0877[/C][C]0.172[/C][C]0.0143[/C][C]558.0705[/C][C]46.5059[/C][C]6.8195[/C][/ROW]
[ROW][C]79[/C][C]0.0894[/C][C]0.0089[/C][C]7e-04[/C][C]1.497[/C][C]0.1247[/C][C]0.3532[/C][/ROW]
[ROW][C]80[/C][C]0.0911[/C][C]-0.01[/C][C]8e-04[/C][C]1.8947[/C][C]0.1579[/C][C]0.3974[/C][/ROW]
[ROW][C]81[/C][C]0.0928[/C][C]0.1057[/C][C]0.0088[/C][C]210.9325[/C][C]17.5777[/C][C]4.1926[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3730&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3730&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.07070.10880.0091225.407618.7844.334
710.07430.09080.0076155.849612.98753.6038
720.07640.09840.0082182.824115.23533.9032
730.07840.02640.002213.1291.09411.046
740.08040.01119e-042.32110.19340.4398
750.08230.14580.0121400.941133.41185.7803
760.08410.04020.003430.50922.54241.5945
770.08590.10430.0087205.163117.09694.1348
780.08770.1720.0143558.070546.50596.8195
790.08940.00897e-041.4970.12470.3532
800.0911-0.018e-041.89470.15790.3974
810.09280.10570.0088210.932517.57774.1926



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