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 07:33:09 -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/t1197555562ch2lglfsxi4od0k.htm/, Retrieved Sun, 05 May 2024 16:26:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3572, Retrieved Sun, 05 May 2024 16:26:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact220
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Central Tendency] [Paper_EDA_output1] [2007-12-13 08:57:44] [e44956fac49704be9081ff9a6fb8481a]
- RMPD    [ARIMA Forecasting] [Paper_ARIMAest_ou...] [2007-12-13 14:33:09] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
102,61
102,18
101,64
102
102,18
101,89
102,09
101,6
101,33
101,44
101,49
100,41
101,38
101,4
102,16
104,46
104,75
104,2
106,05
107,54
108,23
108,99
109,51
111,99
111,08
112,95
115,49
114,67
116,85
119,57
119,41
118,46
122,81
121,76
121,37
118,61
116,08
117,84
117,02
119,78
122,58
120,98
118,92
117,81
119,73
117,16
116,03
115,55
115,36
116,09
117,32
120,45
119,86
118,51
118,92
119,11
120,34
121,23
119,43
119,28
120,64
122,24
123,1
120,72
118,34
118,8
119,29
121,47
122,35
121,53
121,72
121,58
121,55
122,02
123,74
125,8
129,29
128,89
130,04
131,57
131,97
134,43
132,63
130,26
129
131,65
134,21
138,63
138,1
140,51
144,36
145,57
148,7
147,86
143,16
141,96




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3572&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[84])
83132.63-------
84130.26-------
85129130.5791133.9508127.31680.82860.4240.4240.424
86131.65130.4363135.7168125.41990.68230.28730.28730.4725
87134.21130.7171137.2589124.57480.86750.6170.6170.442
88138.63130.8152138.6101123.58070.98290.82110.82110.4402
89138.1130.3074139.0217122.29010.97160.97910.97910.4954
90140.51130.3157140.094121.40640.98750.95660.95660.4951
91144.36130.3276141.2188120.50350.99740.97890.97890.4946
92145.57130.2981142.157119.69370.99760.99530.99530.4972
93148.7130.3761143.191119.01290.99920.99560.99560.492
94147.86130.3017143.9883118.25920.99790.99860.99860.4973
95143.16130.2744144.7955117.59080.97680.99670.99670.4991
96141.96130.2947145.6513116.9780.9570.97090.97090.498

\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[84]) \tabularnewline
83 & 132.63 & - & - & - & - & - & - & - \tabularnewline
84 & 130.26 & - & - & - & - & - & - & - \tabularnewline
85 & 129 & 130.5791 & 133.9508 & 127.3168 & 0.8286 & 0.424 & 0.424 & 0.424 \tabularnewline
86 & 131.65 & 130.4363 & 135.7168 & 125.4199 & 0.6823 & 0.2873 & 0.2873 & 0.4725 \tabularnewline
87 & 134.21 & 130.7171 & 137.2589 & 124.5748 & 0.8675 & 0.617 & 0.617 & 0.442 \tabularnewline
88 & 138.63 & 130.8152 & 138.6101 & 123.5807 & 0.9829 & 0.8211 & 0.8211 & 0.4402 \tabularnewline
89 & 138.1 & 130.3074 & 139.0217 & 122.2901 & 0.9716 & 0.9791 & 0.9791 & 0.4954 \tabularnewline
90 & 140.51 & 130.3157 & 140.094 & 121.4064 & 0.9875 & 0.9566 & 0.9566 & 0.4951 \tabularnewline
91 & 144.36 & 130.3276 & 141.2188 & 120.5035 & 0.9974 & 0.9789 & 0.9789 & 0.4946 \tabularnewline
92 & 145.57 & 130.2981 & 142.157 & 119.6937 & 0.9976 & 0.9953 & 0.9953 & 0.4972 \tabularnewline
93 & 148.7 & 130.3761 & 143.191 & 119.0129 & 0.9992 & 0.9956 & 0.9956 & 0.492 \tabularnewline
94 & 147.86 & 130.3017 & 143.9883 & 118.2592 & 0.9979 & 0.9986 & 0.9986 & 0.4973 \tabularnewline
95 & 143.16 & 130.2744 & 144.7955 & 117.5908 & 0.9768 & 0.9967 & 0.9967 & 0.4991 \tabularnewline
96 & 141.96 & 130.2947 & 145.6513 & 116.978 & 0.957 & 0.9709 & 0.9709 & 0.498 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3572&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[84])[/C][/ROW]
[ROW][C]83[/C][C]132.63[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]84[/C][C]130.26[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]85[/C][C]129[/C][C]130.5791[/C][C]133.9508[/C][C]127.3168[/C][C]0.8286[/C][C]0.424[/C][C]0.424[/C][C]0.424[/C][/ROW]
[ROW][C]86[/C][C]131.65[/C][C]130.4363[/C][C]135.7168[/C][C]125.4199[/C][C]0.6823[/C][C]0.2873[/C][C]0.2873[/C][C]0.4725[/C][/ROW]
[ROW][C]87[/C][C]134.21[/C][C]130.7171[/C][C]137.2589[/C][C]124.5748[/C][C]0.8675[/C][C]0.617[/C][C]0.617[/C][C]0.442[/C][/ROW]
[ROW][C]88[/C][C]138.63[/C][C]130.8152[/C][C]138.6101[/C][C]123.5807[/C][C]0.9829[/C][C]0.8211[/C][C]0.8211[/C][C]0.4402[/C][/ROW]
[ROW][C]89[/C][C]138.1[/C][C]130.3074[/C][C]139.0217[/C][C]122.2901[/C][C]0.9716[/C][C]0.9791[/C][C]0.9791[/C][C]0.4954[/C][/ROW]
[ROW][C]90[/C][C]140.51[/C][C]130.3157[/C][C]140.094[/C][C]121.4064[/C][C]0.9875[/C][C]0.9566[/C][C]0.9566[/C][C]0.4951[/C][/ROW]
[ROW][C]91[/C][C]144.36[/C][C]130.3276[/C][C]141.2188[/C][C]120.5035[/C][C]0.9974[/C][C]0.9789[/C][C]0.9789[/C][C]0.4946[/C][/ROW]
[ROW][C]92[/C][C]145.57[/C][C]130.2981[/C][C]142.157[/C][C]119.6937[/C][C]0.9976[/C][C]0.9953[/C][C]0.9953[/C][C]0.4972[/C][/ROW]
[ROW][C]93[/C][C]148.7[/C][C]130.3761[/C][C]143.191[/C][C]119.0129[/C][C]0.9992[/C][C]0.9956[/C][C]0.9956[/C][C]0.492[/C][/ROW]
[ROW][C]94[/C][C]147.86[/C][C]130.3017[/C][C]143.9883[/C][C]118.2592[/C][C]0.9979[/C][C]0.9986[/C][C]0.9986[/C][C]0.4973[/C][/ROW]
[ROW][C]95[/C][C]143.16[/C][C]130.2744[/C][C]144.7955[/C][C]117.5908[/C][C]0.9768[/C][C]0.9967[/C][C]0.9967[/C][C]0.4991[/C][/ROW]
[ROW][C]96[/C][C]141.96[/C][C]130.2947[/C][C]145.6513[/C][C]116.978[/C][C]0.957[/C][C]0.9709[/C][C]0.9709[/C][C]0.498[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3572&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3572&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[84])
83132.63-------
84130.26-------
85129130.5791133.9508127.31680.82860.4240.4240.424
86131.65130.4363135.7168125.41990.68230.28730.28730.4725
87134.21130.7171137.2589124.57480.86750.6170.6170.442
88138.63130.8152138.6101123.58070.98290.82110.82110.4402
89138.1130.3074139.0217122.29010.97160.97910.97910.4954
90140.51130.3157140.094121.40640.98750.95660.95660.4951
91144.36130.3276141.2188120.50350.99740.97890.97890.4946
92145.57130.2981142.157119.69370.99760.99530.99530.4972
93148.7130.3761143.191119.01290.99920.99560.99560.492
94147.86130.3017143.9883118.25920.99790.99860.99860.4973
95143.16130.2744144.7955117.59080.97680.99670.99670.4991
96141.96130.2947145.6513116.9780.9570.97090.97090.498







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
85-0.0127-0.01210.0012.49340.20780.4558
86-0.01960.00938e-041.4730.12270.3504
87-0.0240.02670.002212.20051.01671.0083
88-0.02820.05970.00561.07135.08932.2559
89-0.03140.05980.00560.72415.06032.2495
90-0.03490.07820.0065103.92368.66032.9428
91-0.03850.10770.009196.90816.4094.0508
92-0.04150.11720.0098233.232319.4364.4086
93-0.04450.14050.0117335.766527.98055.2897
94-0.04720.13480.0112308.294325.69125.0686
95-0.04970.09890.0082166.039713.83663.7198
96-0.05210.08950.0075136.079811.343.3675

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
85 & -0.0127 & -0.0121 & 0.001 & 2.4934 & 0.2078 & 0.4558 \tabularnewline
86 & -0.0196 & 0.0093 & 8e-04 & 1.473 & 0.1227 & 0.3504 \tabularnewline
87 & -0.024 & 0.0267 & 0.0022 & 12.2005 & 1.0167 & 1.0083 \tabularnewline
88 & -0.0282 & 0.0597 & 0.005 & 61.0713 & 5.0893 & 2.2559 \tabularnewline
89 & -0.0314 & 0.0598 & 0.005 & 60.7241 & 5.0603 & 2.2495 \tabularnewline
90 & -0.0349 & 0.0782 & 0.0065 & 103.9236 & 8.6603 & 2.9428 \tabularnewline
91 & -0.0385 & 0.1077 & 0.009 & 196.908 & 16.409 & 4.0508 \tabularnewline
92 & -0.0415 & 0.1172 & 0.0098 & 233.2323 & 19.436 & 4.4086 \tabularnewline
93 & -0.0445 & 0.1405 & 0.0117 & 335.7665 & 27.9805 & 5.2897 \tabularnewline
94 & -0.0472 & 0.1348 & 0.0112 & 308.2943 & 25.6912 & 5.0686 \tabularnewline
95 & -0.0497 & 0.0989 & 0.0082 & 166.0397 & 13.8366 & 3.7198 \tabularnewline
96 & -0.0521 & 0.0895 & 0.0075 & 136.0798 & 11.34 & 3.3675 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3572&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]85[/C][C]-0.0127[/C][C]-0.0121[/C][C]0.001[/C][C]2.4934[/C][C]0.2078[/C][C]0.4558[/C][/ROW]
[ROW][C]86[/C][C]-0.0196[/C][C]0.0093[/C][C]8e-04[/C][C]1.473[/C][C]0.1227[/C][C]0.3504[/C][/ROW]
[ROW][C]87[/C][C]-0.024[/C][C]0.0267[/C][C]0.0022[/C][C]12.2005[/C][C]1.0167[/C][C]1.0083[/C][/ROW]
[ROW][C]88[/C][C]-0.0282[/C][C]0.0597[/C][C]0.005[/C][C]61.0713[/C][C]5.0893[/C][C]2.2559[/C][/ROW]
[ROW][C]89[/C][C]-0.0314[/C][C]0.0598[/C][C]0.005[/C][C]60.7241[/C][C]5.0603[/C][C]2.2495[/C][/ROW]
[ROW][C]90[/C][C]-0.0349[/C][C]0.0782[/C][C]0.0065[/C][C]103.9236[/C][C]8.6603[/C][C]2.9428[/C][/ROW]
[ROW][C]91[/C][C]-0.0385[/C][C]0.1077[/C][C]0.009[/C][C]196.908[/C][C]16.409[/C][C]4.0508[/C][/ROW]
[ROW][C]92[/C][C]-0.0415[/C][C]0.1172[/C][C]0.0098[/C][C]233.2323[/C][C]19.436[/C][C]4.4086[/C][/ROW]
[ROW][C]93[/C][C]-0.0445[/C][C]0.1405[/C][C]0.0117[/C][C]335.7665[/C][C]27.9805[/C][C]5.2897[/C][/ROW]
[ROW][C]94[/C][C]-0.0472[/C][C]0.1348[/C][C]0.0112[/C][C]308.2943[/C][C]25.6912[/C][C]5.0686[/C][/ROW]
[ROW][C]95[/C][C]-0.0497[/C][C]0.0989[/C][C]0.0082[/C][C]166.0397[/C][C]13.8366[/C][C]3.7198[/C][/ROW]
[ROW][C]96[/C][C]-0.0521[/C][C]0.0895[/C][C]0.0075[/C][C]136.0798[/C][C]11.34[/C][C]3.3675[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3572&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3572&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
85-0.0127-0.01210.0012.49340.20780.4558
86-0.01960.00938e-041.4730.12270.3504
87-0.0240.02670.002212.20051.01671.0083
88-0.02820.05970.00561.07135.08932.2559
89-0.03140.05980.00560.72415.06032.2495
90-0.03490.07820.0065103.92368.66032.9428
91-0.03850.10770.009196.90816.4094.0508
92-0.04150.11720.0098233.232319.4364.4086
93-0.04450.14050.0117335.766527.98055.2897
94-0.04720.13480.0112308.294325.69125.0686
95-0.04970.09890.0082166.039713.83663.7198
96-0.05210.08950.0075136.079811.343.3675



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