Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationThu, 06 Dec 2007 10:12:25 -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/06/t1196960368dzsj8tvo0678av3.htm/, Retrieved Fri, 03 May 2024 10:37:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2689, Retrieved Fri, 03 May 2024 10:37:20 +0000
QR Codes:

Original text written by user:ARIMA Forecasting
IsPrivate?No (this computation is public)
User-defined keywordsQ1
Estimated Impact170
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [Workshop 9] [2007-12-06 17:12:25] [d06427f3e67cec1f6334fc93f511b0b4] [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=2689&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=2689&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2689&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.3194116.114593.36170.8780.22610.22610.2261
70105.699.8716112.726389.9540.87120.31260.31260.4707
71117.5101.0096114.233790.8470.99930.8120.8120.3855
72107.4102.745117.572591.6140.79380.99530.99530.2839
7397.899.3207112.981288.94410.6130.93650.93650.5135
7491.5100.4836114.660489.78120.950.31150.31150.4285
75107.7102.2047119.3489.84030.80820.04490.04490.3341
76100.1100.0298116.716687.97220.50460.89380.89380.4657
7796.6101.0726118.362988.66670.76010.43890.43890.4019
78106.8101.9143120.503188.82210.76770.21310.21310.3589
799899.9825117.833687.33060.62060.85460.85460.4702
8098.6100.8848119.388587.87390.63460.33190.33190.4174

\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.3194 & 116.1145 & 93.3617 & 0.878 & 0.2261 & 0.2261 & 0.2261 \tabularnewline
70 & 105.6 & 99.8716 & 112.7263 & 89.954 & 0.8712 & 0.3126 & 0.3126 & 0.4707 \tabularnewline
71 & 117.5 & 101.0096 & 114.2337 & 90.847 & 0.9993 & 0.812 & 0.812 & 0.3855 \tabularnewline
72 & 107.4 & 102.745 & 117.5725 & 91.614 & 0.7938 & 0.9953 & 0.9953 & 0.2839 \tabularnewline
73 & 97.8 & 99.3207 & 112.9812 & 88.9441 & 0.613 & 0.9365 & 0.9365 & 0.5135 \tabularnewline
74 & 91.5 & 100.4836 & 114.6604 & 89.7812 & 0.95 & 0.3115 & 0.3115 & 0.4285 \tabularnewline
75 & 107.7 & 102.2047 & 119.34 & 89.8403 & 0.8082 & 0.0449 & 0.0449 & 0.3341 \tabularnewline
76 & 100.1 & 100.0298 & 116.7166 & 87.9722 & 0.5046 & 0.8938 & 0.8938 & 0.4657 \tabularnewline
77 & 96.6 & 101.0726 & 118.3629 & 88.6667 & 0.7601 & 0.4389 & 0.4389 & 0.4019 \tabularnewline
78 & 106.8 & 101.9143 & 120.5031 & 88.8221 & 0.7677 & 0.2131 & 0.2131 & 0.3589 \tabularnewline
79 & 98 & 99.9825 & 117.8336 & 87.3306 & 0.6206 & 0.8546 & 0.8546 & 0.4702 \tabularnewline
80 & 98.6 & 100.8848 & 119.3885 & 87.8739 & 0.6346 & 0.3319 & 0.3319 & 0.4174 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2689&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.3194[/C][C]116.1145[/C][C]93.3617[/C][C]0.878[/C][C]0.2261[/C][C]0.2261[/C][C]0.2261[/C][/ROW]
[ROW][C]70[/C][C]105.6[/C][C]99.8716[/C][C]112.7263[/C][C]89.954[/C][C]0.8712[/C][C]0.3126[/C][C]0.3126[/C][C]0.4707[/C][/ROW]
[ROW][C]71[/C][C]117.5[/C][C]101.0096[/C][C]114.2337[/C][C]90.847[/C][C]0.9993[/C][C]0.812[/C][C]0.812[/C][C]0.3855[/C][/ROW]
[ROW][C]72[/C][C]107.4[/C][C]102.745[/C][C]117.5725[/C][C]91.614[/C][C]0.7938[/C][C]0.9953[/C][C]0.9953[/C][C]0.2839[/C][/ROW]
[ROW][C]73[/C][C]97.8[/C][C]99.3207[/C][C]112.9812[/C][C]88.9441[/C][C]0.613[/C][C]0.9365[/C][C]0.9365[/C][C]0.5135[/C][/ROW]
[ROW][C]74[/C][C]91.5[/C][C]100.4836[/C][C]114.6604[/C][C]89.7812[/C][C]0.95[/C][C]0.3115[/C][C]0.3115[/C][C]0.4285[/C][/ROW]
[ROW][C]75[/C][C]107.7[/C][C]102.2047[/C][C]119.34[/C][C]89.8403[/C][C]0.8082[/C][C]0.0449[/C][C]0.0449[/C][C]0.3341[/C][/ROW]
[ROW][C]76[/C][C]100.1[/C][C]100.0298[/C][C]116.7166[/C][C]87.9722[/C][C]0.5046[/C][C]0.8938[/C][C]0.8938[/C][C]0.4657[/C][/ROW]
[ROW][C]77[/C][C]96.6[/C][C]101.0726[/C][C]118.3629[/C][C]88.6667[/C][C]0.7601[/C][C]0.4389[/C][C]0.4389[/C][C]0.4019[/C][/ROW]
[ROW][C]78[/C][C]106.8[/C][C]101.9143[/C][C]120.5031[/C][C]88.8221[/C][C]0.7677[/C][C]0.2131[/C][C]0.2131[/C][C]0.3589[/C][/ROW]
[ROW][C]79[/C][C]98[/C][C]99.9825[/C][C]117.8336[/C][C]87.3306[/C][C]0.6206[/C][C]0.8546[/C][C]0.8546[/C][C]0.4702[/C][/ROW]
[ROW][C]80[/C][C]98.6[/C][C]100.8848[/C][C]119.3885[/C][C]87.8739[/C][C]0.6346[/C][C]0.3319[/C][C]0.3319[/C][C]0.4174[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2689&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2689&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.3194116.114593.36170.8780.22610.22610.2261
70105.699.8716112.726389.9540.87120.31260.31260.4707
71117.5101.0096114.233790.8470.99930.8120.8120.3855
72107.4102.745117.572591.6140.79380.99530.99530.2839
7397.899.3207112.981288.94410.6130.93650.93650.5135
7491.5100.4836114.660489.78120.950.31150.31150.4285
75107.7102.2047119.3489.84030.80820.04490.04490.3341
76100.1100.0298116.716687.97220.50460.89380.89380.4657
7796.6101.0726118.362988.66670.76010.43890.43890.4019
78106.8101.9143120.503188.82210.76770.21310.21310.3589
799899.9825117.833687.33060.62060.85460.85460.4702
8098.6100.8848119.388587.87390.63460.33190.33190.4174







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
69-0.0492-0.05730.004835.03912.91991.7088
70-0.05070.05740.004832.81512.73461.6537
71-0.05130.16330.0136271.932522.6614.7604
72-0.05530.04530.003821.66881.80571.3438
73-0.0533-0.01530.00132.31240.19270.439
74-0.0543-0.08940.007580.70446.72542.5933
75-0.06170.05380.004530.19852.51651.5864
76-0.06157e-041e-040.00494e-040.0203
77-0.0626-0.04430.003720.00421.6671.2911
78-0.06550.04790.00423.86961.98911.4104
79-0.0646-0.01980.00173.93020.32750.5723
80-0.0658-0.02260.00195.22030.4350.6596

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
69 & -0.0492 & -0.0573 & 0.0048 & 35.0391 & 2.9199 & 1.7088 \tabularnewline
70 & -0.0507 & 0.0574 & 0.0048 & 32.8151 & 2.7346 & 1.6537 \tabularnewline
71 & -0.0513 & 0.1633 & 0.0136 & 271.9325 & 22.661 & 4.7604 \tabularnewline
72 & -0.0553 & 0.0453 & 0.0038 & 21.6688 & 1.8057 & 1.3438 \tabularnewline
73 & -0.0533 & -0.0153 & 0.0013 & 2.3124 & 0.1927 & 0.439 \tabularnewline
74 & -0.0543 & -0.0894 & 0.0075 & 80.7044 & 6.7254 & 2.5933 \tabularnewline
75 & -0.0617 & 0.0538 & 0.0045 & 30.1985 & 2.5165 & 1.5864 \tabularnewline
76 & -0.0615 & 7e-04 & 1e-04 & 0.0049 & 4e-04 & 0.0203 \tabularnewline
77 & -0.0626 & -0.0443 & 0.0037 & 20.0042 & 1.667 & 1.2911 \tabularnewline
78 & -0.0655 & 0.0479 & 0.004 & 23.8696 & 1.9891 & 1.4104 \tabularnewline
79 & -0.0646 & -0.0198 & 0.0017 & 3.9302 & 0.3275 & 0.5723 \tabularnewline
80 & -0.0658 & -0.0226 & 0.0019 & 5.2203 & 0.435 & 0.6596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2689&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.0492[/C][C]-0.0573[/C][C]0.0048[/C][C]35.0391[/C][C]2.9199[/C][C]1.7088[/C][/ROW]
[ROW][C]70[/C][C]-0.0507[/C][C]0.0574[/C][C]0.0048[/C][C]32.8151[/C][C]2.7346[/C][C]1.6537[/C][/ROW]
[ROW][C]71[/C][C]-0.0513[/C][C]0.1633[/C][C]0.0136[/C][C]271.9325[/C][C]22.661[/C][C]4.7604[/C][/ROW]
[ROW][C]72[/C][C]-0.0553[/C][C]0.0453[/C][C]0.0038[/C][C]21.6688[/C][C]1.8057[/C][C]1.3438[/C][/ROW]
[ROW][C]73[/C][C]-0.0533[/C][C]-0.0153[/C][C]0.0013[/C][C]2.3124[/C][C]0.1927[/C][C]0.439[/C][/ROW]
[ROW][C]74[/C][C]-0.0543[/C][C]-0.0894[/C][C]0.0075[/C][C]80.7044[/C][C]6.7254[/C][C]2.5933[/C][/ROW]
[ROW][C]75[/C][C]-0.0617[/C][C]0.0538[/C][C]0.0045[/C][C]30.1985[/C][C]2.5165[/C][C]1.5864[/C][/ROW]
[ROW][C]76[/C][C]-0.0615[/C][C]7e-04[/C][C]1e-04[/C][C]0.0049[/C][C]4e-04[/C][C]0.0203[/C][/ROW]
[ROW][C]77[/C][C]-0.0626[/C][C]-0.0443[/C][C]0.0037[/C][C]20.0042[/C][C]1.667[/C][C]1.2911[/C][/ROW]
[ROW][C]78[/C][C]-0.0655[/C][C]0.0479[/C][C]0.004[/C][C]23.8696[/C][C]1.9891[/C][C]1.4104[/C][/ROW]
[ROW][C]79[/C][C]-0.0646[/C][C]-0.0198[/C][C]0.0017[/C][C]3.9302[/C][C]0.3275[/C][C]0.5723[/C][/ROW]
[ROW][C]80[/C][C]-0.0658[/C][C]-0.0226[/C][C]0.0019[/C][C]5.2203[/C][C]0.435[/C][C]0.6596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2689&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2689&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
69-0.0492-0.05730.004835.03912.91991.7088
70-0.05070.05740.004832.81512.73461.6537
71-0.05130.16330.0136271.932522.6614.7604
72-0.05530.04530.003821.66881.80571.3438
73-0.0533-0.01530.00132.31240.19270.439
74-0.0543-0.08940.007580.70446.72542.5933
75-0.06170.05380.004530.19852.51651.5864
76-0.06157e-041e-040.00494e-040.0203
77-0.0626-0.04430.003720.00421.6671.2911
78-0.06550.04790.00423.86961.98911.4104
79-0.0646-0.01980.00173.93020.32750.5723
80-0.0658-0.02260.00195.22030.4350.6596



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