Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationWed, 12 Dec 2007 13:23:36 -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/12/t1197490196q7hldawhf7rfel3.htm/, Retrieved Fri, 03 May 2024 00:55:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3269, Retrieved Fri, 03 May 2024 00:55:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact198
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [Workshop 5- vraag 1] [2007-12-12 20:23:36] [bad81931077d8a4f1668ce1551154583] [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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3269&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]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=3269&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3269&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 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[69])
68128.1-------
69144.3-------
70153138.2633114.2733167.28960.15980.34180.34180.3418
71149.9140.8173112.5599176.16850.30730.24970.24970.4234
72150.9140.8807108.072183.64960.32310.33970.33970.4377
73141141.6056105.0302190.91810.49040.35590.35590.4574
74138.9142.17102.1635197.84260.45420.51640.51640.4701
75157.4142.775799.6211204.62430.32150.54890.54890.4807
76142.9143.374997.2854211.29940.49450.34280.34280.4894
77151.7143.978795.126217.92010.41890.51140.51140.4966
78161144.584593.1096224.51710.34370.43070.43070.5028
79138.6145.193191.2142231.11560.44020.35920.35920.5081
80136145.804189.4224237.7350.41720.5610.5610.5128
81151.9146.417887.7206244.39140.45630.58250.58250.5169

\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 & 138.2633 & 114.2733 & 167.2896 & 0.1598 & 0.3418 & 0.3418 & 0.3418 \tabularnewline
71 & 149.9 & 140.8173 & 112.5599 & 176.1685 & 0.3073 & 0.2497 & 0.2497 & 0.4234 \tabularnewline
72 & 150.9 & 140.8807 & 108.072 & 183.6496 & 0.3231 & 0.3397 & 0.3397 & 0.4377 \tabularnewline
73 & 141 & 141.6056 & 105.0302 & 190.9181 & 0.4904 & 0.3559 & 0.3559 & 0.4574 \tabularnewline
74 & 138.9 & 142.17 & 102.1635 & 197.8426 & 0.4542 & 0.5164 & 0.5164 & 0.4701 \tabularnewline
75 & 157.4 & 142.7757 & 99.6211 & 204.6243 & 0.3215 & 0.5489 & 0.5489 & 0.4807 \tabularnewline
76 & 142.9 & 143.3749 & 97.2854 & 211.2994 & 0.4945 & 0.3428 & 0.3428 & 0.4894 \tabularnewline
77 & 151.7 & 143.9787 & 95.126 & 217.9201 & 0.4189 & 0.5114 & 0.5114 & 0.4966 \tabularnewline
78 & 161 & 144.5845 & 93.1096 & 224.5171 & 0.3437 & 0.4307 & 0.4307 & 0.5028 \tabularnewline
79 & 138.6 & 145.1931 & 91.2142 & 231.1156 & 0.4402 & 0.3592 & 0.3592 & 0.5081 \tabularnewline
80 & 136 & 145.8041 & 89.4224 & 237.735 & 0.4172 & 0.561 & 0.561 & 0.5128 \tabularnewline
81 & 151.9 & 146.4178 & 87.7206 & 244.3914 & 0.4563 & 0.5825 & 0.5825 & 0.5169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3269&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]138.2633[/C][C]114.2733[/C][C]167.2896[/C][C]0.1598[/C][C]0.3418[/C][C]0.3418[/C][C]0.3418[/C][/ROW]
[ROW][C]71[/C][C]149.9[/C][C]140.8173[/C][C]112.5599[/C][C]176.1685[/C][C]0.3073[/C][C]0.2497[/C][C]0.2497[/C][C]0.4234[/C][/ROW]
[ROW][C]72[/C][C]150.9[/C][C]140.8807[/C][C]108.072[/C][C]183.6496[/C][C]0.3231[/C][C]0.3397[/C][C]0.3397[/C][C]0.4377[/C][/ROW]
[ROW][C]73[/C][C]141[/C][C]141.6056[/C][C]105.0302[/C][C]190.9181[/C][C]0.4904[/C][C]0.3559[/C][C]0.3559[/C][C]0.4574[/C][/ROW]
[ROW][C]74[/C][C]138.9[/C][C]142.17[/C][C]102.1635[/C][C]197.8426[/C][C]0.4542[/C][C]0.5164[/C][C]0.5164[/C][C]0.4701[/C][/ROW]
[ROW][C]75[/C][C]157.4[/C][C]142.7757[/C][C]99.6211[/C][C]204.6243[/C][C]0.3215[/C][C]0.5489[/C][C]0.5489[/C][C]0.4807[/C][/ROW]
[ROW][C]76[/C][C]142.9[/C][C]143.3749[/C][C]97.2854[/C][C]211.2994[/C][C]0.4945[/C][C]0.3428[/C][C]0.3428[/C][C]0.4894[/C][/ROW]
[ROW][C]77[/C][C]151.7[/C][C]143.9787[/C][C]95.126[/C][C]217.9201[/C][C]0.4189[/C][C]0.5114[/C][C]0.5114[/C][C]0.4966[/C][/ROW]
[ROW][C]78[/C][C]161[/C][C]144.5845[/C][C]93.1096[/C][C]224.5171[/C][C]0.3437[/C][C]0.4307[/C][C]0.4307[/C][C]0.5028[/C][/ROW]
[ROW][C]79[/C][C]138.6[/C][C]145.1931[/C][C]91.2142[/C][C]231.1156[/C][C]0.4402[/C][C]0.3592[/C][C]0.3592[/C][C]0.5081[/C][/ROW]
[ROW][C]80[/C][C]136[/C][C]145.8041[/C][C]89.4224[/C][C]237.735[/C][C]0.4172[/C][C]0.561[/C][C]0.561[/C][C]0.5128[/C][/ROW]
[ROW][C]81[/C][C]151.9[/C][C]146.4178[/C][C]87.7206[/C][C]244.3914[/C][C]0.4563[/C][C]0.5825[/C][C]0.5825[/C][C]0.5169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3269&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3269&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-------
70153138.2633114.2733167.28960.15980.34180.34180.3418
71149.9140.8173112.5599176.16850.30730.24970.24970.4234
72150.9140.8807108.072183.64960.32310.33970.33970.4377
73141141.6056105.0302190.91810.49040.35590.35590.4574
74138.9142.17102.1635197.84260.45420.51640.51640.4701
75157.4142.775799.6211204.62430.32150.54890.54890.4807
76142.9143.374997.2854211.29940.49450.34280.34280.4894
77151.7143.978795.126217.92010.41890.51140.51140.4966
78161144.584593.1096224.51710.34370.43070.43070.5028
79138.6145.193191.2142231.11560.44020.35920.35920.5081
80136145.804189.4224237.7350.41720.5610.5610.5128
81151.9146.417887.7206244.39140.45630.58250.58250.5169







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
700.10710.10660.0089217.171218.09764.2541
710.12810.06450.005482.49596.87472.622
720.15490.07110.0059100.38598.36552.8923
730.1777-0.00434e-040.36680.03060.1748
740.1998-0.0230.001910.69270.89110.944
750.2210.10240.0085213.870917.82264.2217
760.2417-0.00333e-040.22550.01880.1371
770.2620.05360.004559.61894.96822.229
780.28210.11350.0095269.467422.45564.7387
790.3019-0.04540.003843.46843.62241.9033
800.3217-0.06720.005696.12078.01012.8302
810.34140.03740.003130.05512.50461.5826

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
70 & 0.1071 & 0.1066 & 0.0089 & 217.1712 & 18.0976 & 4.2541 \tabularnewline
71 & 0.1281 & 0.0645 & 0.0054 & 82.4959 & 6.8747 & 2.622 \tabularnewline
72 & 0.1549 & 0.0711 & 0.0059 & 100.3859 & 8.3655 & 2.8923 \tabularnewline
73 & 0.1777 & -0.0043 & 4e-04 & 0.3668 & 0.0306 & 0.1748 \tabularnewline
74 & 0.1998 & -0.023 & 0.0019 & 10.6927 & 0.8911 & 0.944 \tabularnewline
75 & 0.221 & 0.1024 & 0.0085 & 213.8709 & 17.8226 & 4.2217 \tabularnewline
76 & 0.2417 & -0.0033 & 3e-04 & 0.2255 & 0.0188 & 0.1371 \tabularnewline
77 & 0.262 & 0.0536 & 0.0045 & 59.6189 & 4.9682 & 2.229 \tabularnewline
78 & 0.2821 & 0.1135 & 0.0095 & 269.4674 & 22.4556 & 4.7387 \tabularnewline
79 & 0.3019 & -0.0454 & 0.0038 & 43.4684 & 3.6224 & 1.9033 \tabularnewline
80 & 0.3217 & -0.0672 & 0.0056 & 96.1207 & 8.0101 & 2.8302 \tabularnewline
81 & 0.3414 & 0.0374 & 0.0031 & 30.0551 & 2.5046 & 1.5826 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3269&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.1071[/C][C]0.1066[/C][C]0.0089[/C][C]217.1712[/C][C]18.0976[/C][C]4.2541[/C][/ROW]
[ROW][C]71[/C][C]0.1281[/C][C]0.0645[/C][C]0.0054[/C][C]82.4959[/C][C]6.8747[/C][C]2.622[/C][/ROW]
[ROW][C]72[/C][C]0.1549[/C][C]0.0711[/C][C]0.0059[/C][C]100.3859[/C][C]8.3655[/C][C]2.8923[/C][/ROW]
[ROW][C]73[/C][C]0.1777[/C][C]-0.0043[/C][C]4e-04[/C][C]0.3668[/C][C]0.0306[/C][C]0.1748[/C][/ROW]
[ROW][C]74[/C][C]0.1998[/C][C]-0.023[/C][C]0.0019[/C][C]10.6927[/C][C]0.8911[/C][C]0.944[/C][/ROW]
[ROW][C]75[/C][C]0.221[/C][C]0.1024[/C][C]0.0085[/C][C]213.8709[/C][C]17.8226[/C][C]4.2217[/C][/ROW]
[ROW][C]76[/C][C]0.2417[/C][C]-0.0033[/C][C]3e-04[/C][C]0.2255[/C][C]0.0188[/C][C]0.1371[/C][/ROW]
[ROW][C]77[/C][C]0.262[/C][C]0.0536[/C][C]0.0045[/C][C]59.6189[/C][C]4.9682[/C][C]2.229[/C][/ROW]
[ROW][C]78[/C][C]0.2821[/C][C]0.1135[/C][C]0.0095[/C][C]269.4674[/C][C]22.4556[/C][C]4.7387[/C][/ROW]
[ROW][C]79[/C][C]0.3019[/C][C]-0.0454[/C][C]0.0038[/C][C]43.4684[/C][C]3.6224[/C][C]1.9033[/C][/ROW]
[ROW][C]80[/C][C]0.3217[/C][C]-0.0672[/C][C]0.0056[/C][C]96.1207[/C][C]8.0101[/C][C]2.8302[/C][/ROW]
[ROW][C]81[/C][C]0.3414[/C][C]0.0374[/C][C]0.0031[/C][C]30.0551[/C][C]2.5046[/C][C]1.5826[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3269&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3269&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.10710.10660.0089217.171218.09764.2541
710.12810.06450.005482.49596.87472.622
720.15490.07110.0059100.38598.36552.8923
730.1777-0.00434e-040.36680.03060.1748
740.1998-0.0230.001910.69270.89110.944
750.2210.10240.0085213.870917.82264.2217
760.2417-0.00333e-040.22550.01880.1371
770.2620.05360.004559.61894.96822.229
780.28210.11350.0095269.467422.45564.7387
790.3019-0.04540.003843.46843.62241.9033
800.3217-0.06720.005696.12078.01012.8302
810.34140.03740.003130.05512.50461.5826



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