Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationThu, 17 Dec 2009 15:40:53 -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/2009/Dec/17/t12610897121x6hihid5aqgw9s.htm/, Retrieved Tue, 30 Apr 2024 04:21:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69129, Retrieved Tue, 30 Apr 2024 04:21:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact106
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2009-12-17 22:40:53] [e24e91da8d334fb8882bf413603fde71] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.25
3.25
3.25
3.25
3.25
3.25
2.85
2.75
2.75
2.55
2.5
2.5
2.1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2.21
2.25
2.25
2.45
2.5
2.5
2.64
2.75
2.93
3
3.17
3.25
3.39
3.5
3.5
3.65
3.75
3.75
3.9
4
4
4
4
4
4
4
4
4
4
4
4
4.18
4.25
4.25
3.97
3.42
2.75
2.31
2
1.66
1.31
1.09
1
1
1




Summary of computational 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 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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69129&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69129&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69129&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'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[75])
744.18-------
754.25-------
764.254.28854.03664.55610.38890.61110.61110.6111
773.974.41413.99754.87410.02920.75780.75780.7578
783.424.50663.94325.15055e-040.94880.94880.7826
792.754.57393.80075.50451e-040.99250.99250.7525
802.314.68033.67925.95371e-040.99850.99850.7461
8124.78053.55626.42625e-040.99840.99840.7362
821.664.86633.40086.96340.00140.99630.99630.7177
831.314.9693.24797.60220.00320.99310.99310.7038
841.095.07373.09628.31410.0080.98860.98860.6908
8515.17192.93419.11640.01910.97870.97870.6765
8615.27762.77310.04430.03930.96070.96070.6637
8715.38692.61511.09710.06610.93390.93390.6518

\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[75]) \tabularnewline
74 & 4.18 & - & - & - & - & - & - & - \tabularnewline
75 & 4.25 & - & - & - & - & - & - & - \tabularnewline
76 & 4.25 & 4.2885 & 4.0366 & 4.5561 & 0.3889 & 0.6111 & 0.6111 & 0.6111 \tabularnewline
77 & 3.97 & 4.4141 & 3.9975 & 4.8741 & 0.0292 & 0.7578 & 0.7578 & 0.7578 \tabularnewline
78 & 3.42 & 4.5066 & 3.9432 & 5.1505 & 5e-04 & 0.9488 & 0.9488 & 0.7826 \tabularnewline
79 & 2.75 & 4.5739 & 3.8007 & 5.5045 & 1e-04 & 0.9925 & 0.9925 & 0.7525 \tabularnewline
80 & 2.31 & 4.6803 & 3.6792 & 5.9537 & 1e-04 & 0.9985 & 0.9985 & 0.7461 \tabularnewline
81 & 2 & 4.7805 & 3.5562 & 6.4262 & 5e-04 & 0.9984 & 0.9984 & 0.7362 \tabularnewline
82 & 1.66 & 4.8663 & 3.4008 & 6.9634 & 0.0014 & 0.9963 & 0.9963 & 0.7177 \tabularnewline
83 & 1.31 & 4.969 & 3.2479 & 7.6022 & 0.0032 & 0.9931 & 0.9931 & 0.7038 \tabularnewline
84 & 1.09 & 5.0737 & 3.0962 & 8.3141 & 0.008 & 0.9886 & 0.9886 & 0.6908 \tabularnewline
85 & 1 & 5.1719 & 2.9341 & 9.1164 & 0.0191 & 0.9787 & 0.9787 & 0.6765 \tabularnewline
86 & 1 & 5.2776 & 2.773 & 10.0443 & 0.0393 & 0.9607 & 0.9607 & 0.6637 \tabularnewline
87 & 1 & 5.3869 & 2.615 & 11.0971 & 0.0661 & 0.9339 & 0.9339 & 0.6518 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69129&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[75])[/C][/ROW]
[ROW][C]74[/C][C]4.18[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]75[/C][C]4.25[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]76[/C][C]4.25[/C][C]4.2885[/C][C]4.0366[/C][C]4.5561[/C][C]0.3889[/C][C]0.6111[/C][C]0.6111[/C][C]0.6111[/C][/ROW]
[ROW][C]77[/C][C]3.97[/C][C]4.4141[/C][C]3.9975[/C][C]4.8741[/C][C]0.0292[/C][C]0.7578[/C][C]0.7578[/C][C]0.7578[/C][/ROW]
[ROW][C]78[/C][C]3.42[/C][C]4.5066[/C][C]3.9432[/C][C]5.1505[/C][C]5e-04[/C][C]0.9488[/C][C]0.9488[/C][C]0.7826[/C][/ROW]
[ROW][C]79[/C][C]2.75[/C][C]4.5739[/C][C]3.8007[/C][C]5.5045[/C][C]1e-04[/C][C]0.9925[/C][C]0.9925[/C][C]0.7525[/C][/ROW]
[ROW][C]80[/C][C]2.31[/C][C]4.6803[/C][C]3.6792[/C][C]5.9537[/C][C]1e-04[/C][C]0.9985[/C][C]0.9985[/C][C]0.7461[/C][/ROW]
[ROW][C]81[/C][C]2[/C][C]4.7805[/C][C]3.5562[/C][C]6.4262[/C][C]5e-04[/C][C]0.9984[/C][C]0.9984[/C][C]0.7362[/C][/ROW]
[ROW][C]82[/C][C]1.66[/C][C]4.8663[/C][C]3.4008[/C][C]6.9634[/C][C]0.0014[/C][C]0.9963[/C][C]0.9963[/C][C]0.7177[/C][/ROW]
[ROW][C]83[/C][C]1.31[/C][C]4.969[/C][C]3.2479[/C][C]7.6022[/C][C]0.0032[/C][C]0.9931[/C][C]0.9931[/C][C]0.7038[/C][/ROW]
[ROW][C]84[/C][C]1.09[/C][C]5.0737[/C][C]3.0962[/C][C]8.3141[/C][C]0.008[/C][C]0.9886[/C][C]0.9886[/C][C]0.6908[/C][/ROW]
[ROW][C]85[/C][C]1[/C][C]5.1719[/C][C]2.9341[/C][C]9.1164[/C][C]0.0191[/C][C]0.9787[/C][C]0.9787[/C][C]0.6765[/C][/ROW]
[ROW][C]86[/C][C]1[/C][C]5.2776[/C][C]2.773[/C][C]10.0443[/C][C]0.0393[/C][C]0.9607[/C][C]0.9607[/C][C]0.6637[/C][/ROW]
[ROW][C]87[/C][C]1[/C][C]5.3869[/C][C]2.615[/C][C]11.0971[/C][C]0.0661[/C][C]0.9339[/C][C]0.9339[/C][C]0.6518[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69129&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69129&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[75])
744.18-------
754.25-------
764.254.28854.03664.55610.38890.61110.61110.6111
773.974.41413.99754.87410.02920.75780.75780.7578
783.424.50663.94325.15055e-040.94880.94880.7826
792.754.57393.80075.50451e-040.99250.99250.7525
802.314.68033.67925.95371e-040.99850.99850.7461
8124.78053.55626.42625e-040.99840.99840.7362
821.664.86633.40086.96340.00140.99630.99630.7177
831.314.9693.24797.60220.00320.99310.99310.7038
841.095.07373.09628.31410.0080.98860.98860.6908
8515.17192.93419.11640.01910.97870.97870.6765
8615.27762.77310.04430.03930.96070.96070.6637
8715.38692.61511.09710.06610.93390.93390.6518







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
760.0318-0.00900.001500
770.0532-0.10060.05480.19720.09940.3152
780.0729-0.24110.11691.18070.45980.6781
790.1038-0.39880.18743.32671.17651.0847
800.1388-0.50640.25125.61812.06481.437
810.1756-0.58160.30637.7313.00921.7347
820.2199-0.65890.356610.28044.0482.012
830.2704-0.73640.404113.38865.21552.2838
840.3259-0.78520.446415.86996.39932.5297
850.3891-0.80660.482517.40457.49992.7386
860.4608-0.81050.512318.29768.48152.9123
870.5408-0.81440.537519.24469.37843.0624

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
76 & 0.0318 & -0.009 & 0 & 0.0015 & 0 & 0 \tabularnewline
77 & 0.0532 & -0.1006 & 0.0548 & 0.1972 & 0.0994 & 0.3152 \tabularnewline
78 & 0.0729 & -0.2411 & 0.1169 & 1.1807 & 0.4598 & 0.6781 \tabularnewline
79 & 0.1038 & -0.3988 & 0.1874 & 3.3267 & 1.1765 & 1.0847 \tabularnewline
80 & 0.1388 & -0.5064 & 0.2512 & 5.6181 & 2.0648 & 1.437 \tabularnewline
81 & 0.1756 & -0.5816 & 0.3063 & 7.731 & 3.0092 & 1.7347 \tabularnewline
82 & 0.2199 & -0.6589 & 0.3566 & 10.2804 & 4.048 & 2.012 \tabularnewline
83 & 0.2704 & -0.7364 & 0.4041 & 13.3886 & 5.2155 & 2.2838 \tabularnewline
84 & 0.3259 & -0.7852 & 0.4464 & 15.8699 & 6.3993 & 2.5297 \tabularnewline
85 & 0.3891 & -0.8066 & 0.4825 & 17.4045 & 7.4999 & 2.7386 \tabularnewline
86 & 0.4608 & -0.8105 & 0.5123 & 18.2976 & 8.4815 & 2.9123 \tabularnewline
87 & 0.5408 & -0.8144 & 0.5375 & 19.2446 & 9.3784 & 3.0624 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69129&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]76[/C][C]0.0318[/C][C]-0.009[/C][C]0[/C][C]0.0015[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]77[/C][C]0.0532[/C][C]-0.1006[/C][C]0.0548[/C][C]0.1972[/C][C]0.0994[/C][C]0.3152[/C][/ROW]
[ROW][C]78[/C][C]0.0729[/C][C]-0.2411[/C][C]0.1169[/C][C]1.1807[/C][C]0.4598[/C][C]0.6781[/C][/ROW]
[ROW][C]79[/C][C]0.1038[/C][C]-0.3988[/C][C]0.1874[/C][C]3.3267[/C][C]1.1765[/C][C]1.0847[/C][/ROW]
[ROW][C]80[/C][C]0.1388[/C][C]-0.5064[/C][C]0.2512[/C][C]5.6181[/C][C]2.0648[/C][C]1.437[/C][/ROW]
[ROW][C]81[/C][C]0.1756[/C][C]-0.5816[/C][C]0.3063[/C][C]7.731[/C][C]3.0092[/C][C]1.7347[/C][/ROW]
[ROW][C]82[/C][C]0.2199[/C][C]-0.6589[/C][C]0.3566[/C][C]10.2804[/C][C]4.048[/C][C]2.012[/C][/ROW]
[ROW][C]83[/C][C]0.2704[/C][C]-0.7364[/C][C]0.4041[/C][C]13.3886[/C][C]5.2155[/C][C]2.2838[/C][/ROW]
[ROW][C]84[/C][C]0.3259[/C][C]-0.7852[/C][C]0.4464[/C][C]15.8699[/C][C]6.3993[/C][C]2.5297[/C][/ROW]
[ROW][C]85[/C][C]0.3891[/C][C]-0.8066[/C][C]0.4825[/C][C]17.4045[/C][C]7.4999[/C][C]2.7386[/C][/ROW]
[ROW][C]86[/C][C]0.4608[/C][C]-0.8105[/C][C]0.5123[/C][C]18.2976[/C][C]8.4815[/C][C]2.9123[/C][/ROW]
[ROW][C]87[/C][C]0.5408[/C][C]-0.8144[/C][C]0.5375[/C][C]19.2446[/C][C]9.3784[/C][C]3.0624[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69129&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69129&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
760.0318-0.00900.001500
770.0532-0.10060.05480.19720.09940.3152
780.0729-0.24110.11691.18070.45980.6781
790.1038-0.39880.18743.32671.17651.0847
800.1388-0.50640.25125.61812.06481.437
810.1756-0.58160.30637.7313.00921.7347
820.2199-0.65890.356610.28044.0482.012
830.2704-0.73640.404113.38865.21552.2838
840.3259-0.78520.446415.86996.39932.5297
850.3891-0.80660.482517.40457.49992.7386
860.4608-0.81050.512318.29768.48152.9123
870.5408-0.81440.537519.24469.37843.0624



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