Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationMon, 10 Dec 2007 12:34:14 -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/10/t1197314375vrxdop5mhj9evci.htm/, Retrieved Tue, 07 May 2024 02:00:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3023, Retrieved Tue, 07 May 2024 02:00:39 +0000
QR Codes:

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

Post a new message
Dataseries X:
99.5
101.6
103.9
106.6
108.3
102
93.8
91.6
97.7
94.8
98
103.8
97.8
91.2
89.3
87.5
90.4
94.2
102.2
101.3
96
90.8
93.2
90.9
91.1
90.2
94.3
96
99
103.3
113.1
112.8
112.1
107.4
111
110.5
110.8
112.4
111.5
116.2
122.5
121.3
113.9
110.7
120.8
141.1
147.4
148
158.1
165
187
190.3
182.4
168.8
151.2
120.1
112.5
106.2
107.1
108.5
106.5
108.3
125.6
124
127.2
136.9
135.8
124.3
115.4
113.6
114.4
118.4
117
116.5
115.4
113.6
117.4
116.9
116.4
111.1
110.2
118.9
131.8
130.6
138.3
148.4
148.7
144.3
152.5
162.9
167.2
166.5
185.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=3023&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=3023&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3023&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[81])
80111.1-------
81110.2-------
82118.9108.403294.1622122.64430.07430.40230.40230.4023
83131.8106.659378.0845135.23420.04230.20060.20060.4041
84130.6104.915559.3072150.52370.13480.1240.1240.4102
85138.3103.171638.1661168.17710.14480.20410.20410.4161
86148.4101.427714.909187.94630.14360.20180.20180.4212
87148.799.6838-10.2778209.64540.19110.19260.19260.4257
88144.397.9399-37.2491233.1290.25070.23090.23090.4295
89152.596.1961-65.8879258.280.2480.28040.28040.4328
90162.994.4522-96.0972285.00150.24070.27520.27520.4357
91167.292.7083-127.7952313.21180.25390.26630.26630.4382
92166.590.9644-160.9117342.84050.27830.27650.27650.4405
93185.689.2205-195.3854373.82650.25340.29730.29730.4426

\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[81]) \tabularnewline
80 & 111.1 & - & - & - & - & - & - & - \tabularnewline
81 & 110.2 & - & - & - & - & - & - & - \tabularnewline
82 & 118.9 & 108.4032 & 94.1622 & 122.6443 & 0.0743 & 0.4023 & 0.4023 & 0.4023 \tabularnewline
83 & 131.8 & 106.6593 & 78.0845 & 135.2342 & 0.0423 & 0.2006 & 0.2006 & 0.4041 \tabularnewline
84 & 130.6 & 104.9155 & 59.3072 & 150.5237 & 0.1348 & 0.124 & 0.124 & 0.4102 \tabularnewline
85 & 138.3 & 103.1716 & 38.1661 & 168.1771 & 0.1448 & 0.2041 & 0.2041 & 0.4161 \tabularnewline
86 & 148.4 & 101.4277 & 14.909 & 187.9463 & 0.1436 & 0.2018 & 0.2018 & 0.4212 \tabularnewline
87 & 148.7 & 99.6838 & -10.2778 & 209.6454 & 0.1911 & 0.1926 & 0.1926 & 0.4257 \tabularnewline
88 & 144.3 & 97.9399 & -37.2491 & 233.129 & 0.2507 & 0.2309 & 0.2309 & 0.4295 \tabularnewline
89 & 152.5 & 96.1961 & -65.8879 & 258.28 & 0.248 & 0.2804 & 0.2804 & 0.4328 \tabularnewline
90 & 162.9 & 94.4522 & -96.0972 & 285.0015 & 0.2407 & 0.2752 & 0.2752 & 0.4357 \tabularnewline
91 & 167.2 & 92.7083 & -127.7952 & 313.2118 & 0.2539 & 0.2663 & 0.2663 & 0.4382 \tabularnewline
92 & 166.5 & 90.9644 & -160.9117 & 342.8405 & 0.2783 & 0.2765 & 0.2765 & 0.4405 \tabularnewline
93 & 185.6 & 89.2205 & -195.3854 & 373.8265 & 0.2534 & 0.2973 & 0.2973 & 0.4426 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3023&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[81])[/C][/ROW]
[ROW][C]80[/C][C]111.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]81[/C][C]110.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]82[/C][C]118.9[/C][C]108.4032[/C][C]94.1622[/C][C]122.6443[/C][C]0.0743[/C][C]0.4023[/C][C]0.4023[/C][C]0.4023[/C][/ROW]
[ROW][C]83[/C][C]131.8[/C][C]106.6593[/C][C]78.0845[/C][C]135.2342[/C][C]0.0423[/C][C]0.2006[/C][C]0.2006[/C][C]0.4041[/C][/ROW]
[ROW][C]84[/C][C]130.6[/C][C]104.9155[/C][C]59.3072[/C][C]150.5237[/C][C]0.1348[/C][C]0.124[/C][C]0.124[/C][C]0.4102[/C][/ROW]
[ROW][C]85[/C][C]138.3[/C][C]103.1716[/C][C]38.1661[/C][C]168.1771[/C][C]0.1448[/C][C]0.2041[/C][C]0.2041[/C][C]0.4161[/C][/ROW]
[ROW][C]86[/C][C]148.4[/C][C]101.4277[/C][C]14.909[/C][C]187.9463[/C][C]0.1436[/C][C]0.2018[/C][C]0.2018[/C][C]0.4212[/C][/ROW]
[ROW][C]87[/C][C]148.7[/C][C]99.6838[/C][C]-10.2778[/C][C]209.6454[/C][C]0.1911[/C][C]0.1926[/C][C]0.1926[/C][C]0.4257[/C][/ROW]
[ROW][C]88[/C][C]144.3[/C][C]97.9399[/C][C]-37.2491[/C][C]233.129[/C][C]0.2507[/C][C]0.2309[/C][C]0.2309[/C][C]0.4295[/C][/ROW]
[ROW][C]89[/C][C]152.5[/C][C]96.1961[/C][C]-65.8879[/C][C]258.28[/C][C]0.248[/C][C]0.2804[/C][C]0.2804[/C][C]0.4328[/C][/ROW]
[ROW][C]90[/C][C]162.9[/C][C]94.4522[/C][C]-96.0972[/C][C]285.0015[/C][C]0.2407[/C][C]0.2752[/C][C]0.2752[/C][C]0.4357[/C][/ROW]
[ROW][C]91[/C][C]167.2[/C][C]92.7083[/C][C]-127.7952[/C][C]313.2118[/C][C]0.2539[/C][C]0.2663[/C][C]0.2663[/C][C]0.4382[/C][/ROW]
[ROW][C]92[/C][C]166.5[/C][C]90.9644[/C][C]-160.9117[/C][C]342.8405[/C][C]0.2783[/C][C]0.2765[/C][C]0.2765[/C][C]0.4405[/C][/ROW]
[ROW][C]93[/C][C]185.6[/C][C]89.2205[/C][C]-195.3854[/C][C]373.8265[/C][C]0.2534[/C][C]0.2973[/C][C]0.2973[/C][C]0.4426[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3023&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3023&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[81])
80111.1-------
81110.2-------
82118.9108.403294.1622122.64430.07430.40230.40230.4023
83131.8106.659378.0845135.23420.04230.20060.20060.4041
84130.6104.915559.3072150.52370.13480.1240.1240.4102
85138.3103.171638.1661168.17710.14480.20410.20410.4161
86148.4101.427714.909187.94630.14360.20180.20180.4212
87148.799.6838-10.2778209.64540.19110.19260.19260.4257
88144.397.9399-37.2491233.1290.25070.23090.23090.4295
89152.596.1961-65.8879258.280.2480.28040.28040.4328
90162.994.4522-96.0972285.00150.24070.27520.27520.4357
91167.292.7083-127.7952313.21180.25390.26630.26630.4382
92166.590.9644-160.9117342.84050.27830.27650.27650.4405
93185.689.2205-195.3854373.82650.25340.29730.29730.4426







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
820.0670.09680.0081110.18249.18193.0302
830.13670.23570.0196632.052952.67117.2575
840.22180.24480.0204659.695854.97467.4145
850.32150.34050.02841234.0062102.833910.1407
860.43520.46310.03862206.3975183.866513.5597
870.56280.49170.0412402.5866200.215514.1498
880.70420.47340.03942149.2559179.104713.383
890.85970.58530.04883170.1347264.177916.2536
901.02930.72470.06044685.1054390.425519.7592
911.21350.80350.0675549.015462.417921.5039
921.41270.83040.06925705.6257475.468821.8052
931.62751.08020.099289.0028774.083627.8224

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
82 & 0.067 & 0.0968 & 0.0081 & 110.1824 & 9.1819 & 3.0302 \tabularnewline
83 & 0.1367 & 0.2357 & 0.0196 & 632.0529 & 52.6711 & 7.2575 \tabularnewline
84 & 0.2218 & 0.2448 & 0.0204 & 659.6958 & 54.9746 & 7.4145 \tabularnewline
85 & 0.3215 & 0.3405 & 0.0284 & 1234.0062 & 102.8339 & 10.1407 \tabularnewline
86 & 0.4352 & 0.4631 & 0.0386 & 2206.3975 & 183.8665 & 13.5597 \tabularnewline
87 & 0.5628 & 0.4917 & 0.041 & 2402.5866 & 200.2155 & 14.1498 \tabularnewline
88 & 0.7042 & 0.4734 & 0.0394 & 2149.2559 & 179.1047 & 13.383 \tabularnewline
89 & 0.8597 & 0.5853 & 0.0488 & 3170.1347 & 264.1779 & 16.2536 \tabularnewline
90 & 1.0293 & 0.7247 & 0.0604 & 4685.1054 & 390.4255 & 19.7592 \tabularnewline
91 & 1.2135 & 0.8035 & 0.067 & 5549.015 & 462.4179 & 21.5039 \tabularnewline
92 & 1.4127 & 0.8304 & 0.0692 & 5705.6257 & 475.4688 & 21.8052 \tabularnewline
93 & 1.6275 & 1.0802 & 0.09 & 9289.0028 & 774.0836 & 27.8224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3023&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]82[/C][C]0.067[/C][C]0.0968[/C][C]0.0081[/C][C]110.1824[/C][C]9.1819[/C][C]3.0302[/C][/ROW]
[ROW][C]83[/C][C]0.1367[/C][C]0.2357[/C][C]0.0196[/C][C]632.0529[/C][C]52.6711[/C][C]7.2575[/C][/ROW]
[ROW][C]84[/C][C]0.2218[/C][C]0.2448[/C][C]0.0204[/C][C]659.6958[/C][C]54.9746[/C][C]7.4145[/C][/ROW]
[ROW][C]85[/C][C]0.3215[/C][C]0.3405[/C][C]0.0284[/C][C]1234.0062[/C][C]102.8339[/C][C]10.1407[/C][/ROW]
[ROW][C]86[/C][C]0.4352[/C][C]0.4631[/C][C]0.0386[/C][C]2206.3975[/C][C]183.8665[/C][C]13.5597[/C][/ROW]
[ROW][C]87[/C][C]0.5628[/C][C]0.4917[/C][C]0.041[/C][C]2402.5866[/C][C]200.2155[/C][C]14.1498[/C][/ROW]
[ROW][C]88[/C][C]0.7042[/C][C]0.4734[/C][C]0.0394[/C][C]2149.2559[/C][C]179.1047[/C][C]13.383[/C][/ROW]
[ROW][C]89[/C][C]0.8597[/C][C]0.5853[/C][C]0.0488[/C][C]3170.1347[/C][C]264.1779[/C][C]16.2536[/C][/ROW]
[ROW][C]90[/C][C]1.0293[/C][C]0.7247[/C][C]0.0604[/C][C]4685.1054[/C][C]390.4255[/C][C]19.7592[/C][/ROW]
[ROW][C]91[/C][C]1.2135[/C][C]0.8035[/C][C]0.067[/C][C]5549.015[/C][C]462.4179[/C][C]21.5039[/C][/ROW]
[ROW][C]92[/C][C]1.4127[/C][C]0.8304[/C][C]0.0692[/C][C]5705.6257[/C][C]475.4688[/C][C]21.8052[/C][/ROW]
[ROW][C]93[/C][C]1.6275[/C][C]1.0802[/C][C]0.09[/C][C]9289.0028[/C][C]774.0836[/C][C]27.8224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3023&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3023&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
820.0670.09680.0081110.18249.18193.0302
830.13670.23570.0196632.052952.67117.2575
840.22180.24480.0204659.695854.97467.4145
850.32150.34050.02841234.0062102.833910.1407
860.43520.46310.03862206.3975183.866513.5597
870.56280.49170.0412402.5866200.215514.1498
880.70420.47340.03942149.2559179.104713.383
890.85970.58530.04883170.1347264.177916.2536
901.02930.72470.06044685.1054390.425519.7592
911.21350.80350.0675549.015462.417921.5039
921.41270.83040.06925705.6257475.468821.8052
931.62751.08020.099289.0028774.083627.8224



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