Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSun, 16 Dec 2007 07:26:26 -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/16/t1197814288zyuv0bsrwxm660k.htm/, Retrieved Thu, 02 May 2024 03:26:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4184, Retrieved Thu, 02 May 2024 03:26:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact240
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2007-12-16 14:26:26] [2cdb7403ed3391afb545b8c0d20da37e] [Current]
Feedback Forum

Post a new message
Dataseries X:
115.9
112.9
126.3
116.8
112
129.7
113.6
115.7
119.5
125.8
129.6
128
112.8
101.6
123.9
118.8
109.1
130.6
112.4
111
116.2
119.8
117.2
127.3
107.7
97.5
120.1
110.6
111.3
119.8
105.5
108.7
128.7
119.5
121.1
128.4
108.8
107.5
125.6
102.9
107.5
120.4
104.3
100.6
121.9
112.7
124.9
123.9
102.2
104.9
109.8
98.9
107.3
112.6
104
110.6
100.8
103.8
117
108.4
95.5
96.9
103.9
101.1
100.6
104.3
98
99.5
97.4
105.6
117.5
107.4
97.8
91.5
107.7
100.1
96.6
106.8
98
98.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4184&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[68])
6798-------
6899.5-------
6997.4103.289389.6342116.94440.1990.70670.70670.7067
70105.699.884885.2465114.5230.22210.63030.63030.5205
71117.5101.001286.3571115.64520.01360.26910.26910.5796
72107.4102.93787.3257118.54830.28760.03370.03370.667
7397.899.358783.7232114.99420.42250.15670.15670.4929
7491.5100.421184.7089116.13330.13290.62820.62820.5457
75107.7102.323784.4872120.16020.27730.88290.88290.6218
76100.1100.013481.7472118.27950.49630.20470.20470.522
7796.6101.053282.6435119.4630.31770.54040.54040.5657
78106.8102.138682.8787121.39840.31760.71350.71350.6058
799899.999580.6242119.37480.41990.24570.24570.5201
8098.6100.848281.3101120.38630.41080.61250.61250.5538

\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[68]) \tabularnewline
67 & 98 & - & - & - & - & - & - & - \tabularnewline
68 & 99.5 & - & - & - & - & - & - & - \tabularnewline
69 & 97.4 & 103.2893 & 89.6342 & 116.9444 & 0.199 & 0.7067 & 0.7067 & 0.7067 \tabularnewline
70 & 105.6 & 99.8848 & 85.2465 & 114.523 & 0.2221 & 0.6303 & 0.6303 & 0.5205 \tabularnewline
71 & 117.5 & 101.0012 & 86.3571 & 115.6452 & 0.0136 & 0.2691 & 0.2691 & 0.5796 \tabularnewline
72 & 107.4 & 102.937 & 87.3257 & 118.5483 & 0.2876 & 0.0337 & 0.0337 & 0.667 \tabularnewline
73 & 97.8 & 99.3587 & 83.7232 & 114.9942 & 0.4225 & 0.1567 & 0.1567 & 0.4929 \tabularnewline
74 & 91.5 & 100.4211 & 84.7089 & 116.1333 & 0.1329 & 0.6282 & 0.6282 & 0.5457 \tabularnewline
75 & 107.7 & 102.3237 & 84.4872 & 120.1602 & 0.2773 & 0.8829 & 0.8829 & 0.6218 \tabularnewline
76 & 100.1 & 100.0134 & 81.7472 & 118.2795 & 0.4963 & 0.2047 & 0.2047 & 0.522 \tabularnewline
77 & 96.6 & 101.0532 & 82.6435 & 119.463 & 0.3177 & 0.5404 & 0.5404 & 0.5657 \tabularnewline
78 & 106.8 & 102.1386 & 82.8787 & 121.3984 & 0.3176 & 0.7135 & 0.7135 & 0.6058 \tabularnewline
79 & 98 & 99.9995 & 80.6242 & 119.3748 & 0.4199 & 0.2457 & 0.2457 & 0.5201 \tabularnewline
80 & 98.6 & 100.8482 & 81.3101 & 120.3863 & 0.4108 & 0.6125 & 0.6125 & 0.5538 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4184&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[68])[/C][/ROW]
[ROW][C]67[/C][C]98[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]68[/C][C]99.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]97.4[/C][C]103.2893[/C][C]89.6342[/C][C]116.9444[/C][C]0.199[/C][C]0.7067[/C][C]0.7067[/C][C]0.7067[/C][/ROW]
[ROW][C]70[/C][C]105.6[/C][C]99.8848[/C][C]85.2465[/C][C]114.523[/C][C]0.2221[/C][C]0.6303[/C][C]0.6303[/C][C]0.5205[/C][/ROW]
[ROW][C]71[/C][C]117.5[/C][C]101.0012[/C][C]86.3571[/C][C]115.6452[/C][C]0.0136[/C][C]0.2691[/C][C]0.2691[/C][C]0.5796[/C][/ROW]
[ROW][C]72[/C][C]107.4[/C][C]102.937[/C][C]87.3257[/C][C]118.5483[/C][C]0.2876[/C][C]0.0337[/C][C]0.0337[/C][C]0.667[/C][/ROW]
[ROW][C]73[/C][C]97.8[/C][C]99.3587[/C][C]83.7232[/C][C]114.9942[/C][C]0.4225[/C][C]0.1567[/C][C]0.1567[/C][C]0.4929[/C][/ROW]
[ROW][C]74[/C][C]91.5[/C][C]100.4211[/C][C]84.7089[/C][C]116.1333[/C][C]0.1329[/C][C]0.6282[/C][C]0.6282[/C][C]0.5457[/C][/ROW]
[ROW][C]75[/C][C]107.7[/C][C]102.3237[/C][C]84.4872[/C][C]120.1602[/C][C]0.2773[/C][C]0.8829[/C][C]0.8829[/C][C]0.6218[/C][/ROW]
[ROW][C]76[/C][C]100.1[/C][C]100.0134[/C][C]81.7472[/C][C]118.2795[/C][C]0.4963[/C][C]0.2047[/C][C]0.2047[/C][C]0.522[/C][/ROW]
[ROW][C]77[/C][C]96.6[/C][C]101.0532[/C][C]82.6435[/C][C]119.463[/C][C]0.3177[/C][C]0.5404[/C][C]0.5404[/C][C]0.5657[/C][/ROW]
[ROW][C]78[/C][C]106.8[/C][C]102.1386[/C][C]82.8787[/C][C]121.3984[/C][C]0.3176[/C][C]0.7135[/C][C]0.7135[/C][C]0.6058[/C][/ROW]
[ROW][C]79[/C][C]98[/C][C]99.9995[/C][C]80.6242[/C][C]119.3748[/C][C]0.4199[/C][C]0.2457[/C][C]0.2457[/C][C]0.5201[/C][/ROW]
[ROW][C]80[/C][C]98.6[/C][C]100.8482[/C][C]81.3101[/C][C]120.3863[/C][C]0.4108[/C][C]0.6125[/C][C]0.6125[/C][C]0.5538[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4184&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4184&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[68])
6798-------
6899.5-------
6997.4103.289389.6342116.94440.1990.70670.70670.7067
70105.699.884885.2465114.5230.22210.63030.63030.5205
71117.5101.001286.3571115.64520.01360.26910.26910.5796
72107.4102.93787.3257118.54830.28760.03370.03370.667
7397.899.358783.7232114.99420.42250.15670.15670.4929
7491.5100.421184.7089116.13330.13290.62820.62820.5457
75107.7102.323784.4872120.16020.27730.88290.88290.6218
76100.1100.013481.7472118.27950.49630.20470.20470.522
7796.6101.053282.6435119.4630.31770.54040.54040.5657
78106.8102.138682.8787121.39840.31760.71350.71350.6058
799899.999580.6242119.37480.41990.24570.24570.5201
8098.6100.848281.3101120.38630.41080.61250.61250.5538







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
690.0675-0.0570.004834.68412.89031.7001
700.07480.05720.004832.66392.7221.6498
710.0740.16340.0136272.211922.68434.7628
720.07740.04340.003619.91821.65981.2884
730.0803-0.01570.00132.42960.20250.45
740.0798-0.08880.007479.58546.63212.5753
750.08890.05250.004428.90452.40871.552
760.09329e-041e-040.00756e-040.025
770.0929-0.04410.003719.83141.65261.2855
780.09620.04560.003821.72911.81081.3456
790.0989-0.020.00173.9980.33320.5772
800.0988-0.02230.00195.05440.42120.649

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
69 & 0.0675 & -0.057 & 0.0048 & 34.6841 & 2.8903 & 1.7001 \tabularnewline
70 & 0.0748 & 0.0572 & 0.0048 & 32.6639 & 2.722 & 1.6498 \tabularnewline
71 & 0.074 & 0.1634 & 0.0136 & 272.2119 & 22.6843 & 4.7628 \tabularnewline
72 & 0.0774 & 0.0434 & 0.0036 & 19.9182 & 1.6598 & 1.2884 \tabularnewline
73 & 0.0803 & -0.0157 & 0.0013 & 2.4296 & 0.2025 & 0.45 \tabularnewline
74 & 0.0798 & -0.0888 & 0.0074 & 79.5854 & 6.6321 & 2.5753 \tabularnewline
75 & 0.0889 & 0.0525 & 0.0044 & 28.9045 & 2.4087 & 1.552 \tabularnewline
76 & 0.0932 & 9e-04 & 1e-04 & 0.0075 & 6e-04 & 0.025 \tabularnewline
77 & 0.0929 & -0.0441 & 0.0037 & 19.8314 & 1.6526 & 1.2855 \tabularnewline
78 & 0.0962 & 0.0456 & 0.0038 & 21.7291 & 1.8108 & 1.3456 \tabularnewline
79 & 0.0989 & -0.02 & 0.0017 & 3.998 & 0.3332 & 0.5772 \tabularnewline
80 & 0.0988 & -0.0223 & 0.0019 & 5.0544 & 0.4212 & 0.649 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4184&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]69[/C][C]0.0675[/C][C]-0.057[/C][C]0.0048[/C][C]34.6841[/C][C]2.8903[/C][C]1.7001[/C][/ROW]
[ROW][C]70[/C][C]0.0748[/C][C]0.0572[/C][C]0.0048[/C][C]32.6639[/C][C]2.722[/C][C]1.6498[/C][/ROW]
[ROW][C]71[/C][C]0.074[/C][C]0.1634[/C][C]0.0136[/C][C]272.2119[/C][C]22.6843[/C][C]4.7628[/C][/ROW]
[ROW][C]72[/C][C]0.0774[/C][C]0.0434[/C][C]0.0036[/C][C]19.9182[/C][C]1.6598[/C][C]1.2884[/C][/ROW]
[ROW][C]73[/C][C]0.0803[/C][C]-0.0157[/C][C]0.0013[/C][C]2.4296[/C][C]0.2025[/C][C]0.45[/C][/ROW]
[ROW][C]74[/C][C]0.0798[/C][C]-0.0888[/C][C]0.0074[/C][C]79.5854[/C][C]6.6321[/C][C]2.5753[/C][/ROW]
[ROW][C]75[/C][C]0.0889[/C][C]0.0525[/C][C]0.0044[/C][C]28.9045[/C][C]2.4087[/C][C]1.552[/C][/ROW]
[ROW][C]76[/C][C]0.0932[/C][C]9e-04[/C][C]1e-04[/C][C]0.0075[/C][C]6e-04[/C][C]0.025[/C][/ROW]
[ROW][C]77[/C][C]0.0929[/C][C]-0.0441[/C][C]0.0037[/C][C]19.8314[/C][C]1.6526[/C][C]1.2855[/C][/ROW]
[ROW][C]78[/C][C]0.0962[/C][C]0.0456[/C][C]0.0038[/C][C]21.7291[/C][C]1.8108[/C][C]1.3456[/C][/ROW]
[ROW][C]79[/C][C]0.0989[/C][C]-0.02[/C][C]0.0017[/C][C]3.998[/C][C]0.3332[/C][C]0.5772[/C][/ROW]
[ROW][C]80[/C][C]0.0988[/C][C]-0.0223[/C][C]0.0019[/C][C]5.0544[/C][C]0.4212[/C][C]0.649[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4184&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4184&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
690.0675-0.0570.004834.68412.89031.7001
700.07480.05720.004832.66392.7221.6498
710.0740.16340.0136272.211922.68434.7628
720.07740.04340.003619.91821.65981.2884
730.0803-0.01570.00132.42960.20250.45
740.0798-0.08880.007479.58546.63212.5753
750.08890.05250.004428.90452.40871.552
760.09329e-041e-040.00756e-040.025
770.0929-0.04410.003719.83141.65261.2855
780.09620.04560.003821.72911.81081.3456
790.0989-0.020.00173.9980.33320.5772
800.0988-0.02230.00195.05440.42120.649



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