Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationFri, 07 Dec 2007 08:14:07 -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/07/t1197039680b65yq4i27n9ele1.htm/, Retrieved Sun, 28 Apr 2024 22:15:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2862, Retrieved Sun, 28 Apr 2024 22:15:57 +0000
QR Codes:

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

Post a new message
Dataseries X:
108.4
117
103.8
100.8
110.6
104
112.6
107.3
98.9
109.8
104.9
102.2
123.9
124.9
112.7
121.9
100.6
104.3
120.4
107.5
102.9
125.6
107.5
108.8
128.4
121.1
119.5
128.7
108.7
105.5
119.8
111.3
110.6
120.1
97.5
107.7
127.3
117.2
119.8
116.2
111
112.4
130.6
109.1
118.8
123.9
101.6
112.8
128
129.6
125.8
119.5
115.7
113.6
129.7
112
116.8
126.3
112.9
115.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2862&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[48])
47101.6-------
48112.8-------
49128119.1752139.5046105.7420.90110.17610.17610.1761
50129.6106.7429121.849596.14581110.8687
51125.8119.551142.1707105.1410.80230.91420.91420.1792
52119.5118.4304142.0253103.68450.55650.83630.83630.2271
53115.7108.0498125.167996.4570.90210.97360.97360.789
54113.6118.3999142.2428103.55940.73690.36070.36070.2298
55129.7114.92138.0203100.53180.9780.42860.42860.3864
56112109.3584128.6896.74480.65930.99920.99920.7036
57116.8118.5331144.4905102.89650.5860.20640.20640.2362
58126.3113.9277137.532599.39490.95240.65080.65080.4396
59112.9111.0442132.556297.45840.60550.98610.98610.6
60115.9117.9913144.9993102.01150.60120.26620.26620.2621

\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[48]) \tabularnewline
47 & 101.6 & - & - & - & - & - & - & - \tabularnewline
48 & 112.8 & - & - & - & - & - & - & - \tabularnewline
49 & 128 & 119.1752 & 139.5046 & 105.742 & 0.9011 & 0.1761 & 0.1761 & 0.1761 \tabularnewline
50 & 129.6 & 106.7429 & 121.8495 & 96.1458 & 1 & 1 & 1 & 0.8687 \tabularnewline
51 & 125.8 & 119.551 & 142.1707 & 105.141 & 0.8023 & 0.9142 & 0.9142 & 0.1792 \tabularnewline
52 & 119.5 & 118.4304 & 142.0253 & 103.6845 & 0.5565 & 0.8363 & 0.8363 & 0.2271 \tabularnewline
53 & 115.7 & 108.0498 & 125.1679 & 96.457 & 0.9021 & 0.9736 & 0.9736 & 0.789 \tabularnewline
54 & 113.6 & 118.3999 & 142.2428 & 103.5594 & 0.7369 & 0.3607 & 0.3607 & 0.2298 \tabularnewline
55 & 129.7 & 114.92 & 138.0203 & 100.5318 & 0.978 & 0.4286 & 0.4286 & 0.3864 \tabularnewline
56 & 112 & 109.3584 & 128.68 & 96.7448 & 0.6593 & 0.9992 & 0.9992 & 0.7036 \tabularnewline
57 & 116.8 & 118.5331 & 144.4905 & 102.8965 & 0.586 & 0.2064 & 0.2064 & 0.2362 \tabularnewline
58 & 126.3 & 113.9277 & 137.5325 & 99.3949 & 0.9524 & 0.6508 & 0.6508 & 0.4396 \tabularnewline
59 & 112.9 & 111.0442 & 132.5562 & 97.4584 & 0.6055 & 0.9861 & 0.9861 & 0.6 \tabularnewline
60 & 115.9 & 117.9913 & 144.9993 & 102.0115 & 0.6012 & 0.2662 & 0.2662 & 0.2621 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2862&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[48])[/C][/ROW]
[ROW][C]47[/C][C]101.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]112.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]128[/C][C]119.1752[/C][C]139.5046[/C][C]105.742[/C][C]0.9011[/C][C]0.1761[/C][C]0.1761[/C][C]0.1761[/C][/ROW]
[ROW][C]50[/C][C]129.6[/C][C]106.7429[/C][C]121.8495[/C][C]96.1458[/C][C]1[/C][C]1[/C][C]1[/C][C]0.8687[/C][/ROW]
[ROW][C]51[/C][C]125.8[/C][C]119.551[/C][C]142.1707[/C][C]105.141[/C][C]0.8023[/C][C]0.9142[/C][C]0.9142[/C][C]0.1792[/C][/ROW]
[ROW][C]52[/C][C]119.5[/C][C]118.4304[/C][C]142.0253[/C][C]103.6845[/C][C]0.5565[/C][C]0.8363[/C][C]0.8363[/C][C]0.2271[/C][/ROW]
[ROW][C]53[/C][C]115.7[/C][C]108.0498[/C][C]125.1679[/C][C]96.457[/C][C]0.9021[/C][C]0.9736[/C][C]0.9736[/C][C]0.789[/C][/ROW]
[ROW][C]54[/C][C]113.6[/C][C]118.3999[/C][C]142.2428[/C][C]103.5594[/C][C]0.7369[/C][C]0.3607[/C][C]0.3607[/C][C]0.2298[/C][/ROW]
[ROW][C]55[/C][C]129.7[/C][C]114.92[/C][C]138.0203[/C][C]100.5318[/C][C]0.978[/C][C]0.4286[/C][C]0.4286[/C][C]0.3864[/C][/ROW]
[ROW][C]56[/C][C]112[/C][C]109.3584[/C][C]128.68[/C][C]96.7448[/C][C]0.6593[/C][C]0.9992[/C][C]0.9992[/C][C]0.7036[/C][/ROW]
[ROW][C]57[/C][C]116.8[/C][C]118.5331[/C][C]144.4905[/C][C]102.8965[/C][C]0.586[/C][C]0.2064[/C][C]0.2064[/C][C]0.2362[/C][/ROW]
[ROW][C]58[/C][C]126.3[/C][C]113.9277[/C][C]137.5325[/C][C]99.3949[/C][C]0.9524[/C][C]0.6508[/C][C]0.6508[/C][C]0.4396[/C][/ROW]
[ROW][C]59[/C][C]112.9[/C][C]111.0442[/C][C]132.5562[/C][C]97.4584[/C][C]0.6055[/C][C]0.9861[/C][C]0.9861[/C][C]0.6[/C][/ROW]
[ROW][C]60[/C][C]115.9[/C][C]117.9913[/C][C]144.9993[/C][C]102.0115[/C][C]0.6012[/C][C]0.2662[/C][C]0.2662[/C][C]0.2621[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2862&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2862&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[48])
47101.6-------
48112.8-------
49128119.1752139.5046105.7420.90110.17610.17610.1761
50129.6106.7429121.849596.14581110.8687
51125.8119.551142.1707105.1410.80230.91420.91420.1792
52119.5118.4304142.0253103.68450.55650.83630.83630.2271
53115.7108.0498125.167996.4570.90210.97360.97360.789
54113.6118.3999142.2428103.55940.73690.36070.36070.2298
55129.7114.92138.0203100.53180.9780.42860.42860.3864
56112109.3584128.6896.74480.65930.99920.99920.7036
57116.8118.5331144.4905102.89650.5860.20640.20640.2362
58126.3113.9277137.532599.39490.95240.65080.65080.4396
59112.9111.0442132.556297.45840.60550.98610.98610.6
60115.9117.9913144.9993102.01150.60120.26620.26620.2621







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
49-0.05750.0740.006277.87676.48972.5475
50-0.05070.21410.0178522.448343.53746.5983
51-0.06150.05230.004439.04993.25421.8039
52-0.06350.0098e-041.1440.09530.3088
53-0.05470.07080.005958.52544.87712.2084
54-0.064-0.04050.003423.03931.91991.3856
55-0.06390.12860.0107218.448718.20414.2666
56-0.05880.02420.0026.97830.58150.7626
57-0.0673-0.01460.00123.00370.25030.5003
58-0.06510.10860.009153.073212.75613.5716
59-0.06240.01670.00143.4440.2870.5357
60-0.0691-0.01770.00154.37350.36450.6037

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
49 & -0.0575 & 0.074 & 0.0062 & 77.8767 & 6.4897 & 2.5475 \tabularnewline
50 & -0.0507 & 0.2141 & 0.0178 & 522.4483 & 43.5374 & 6.5983 \tabularnewline
51 & -0.0615 & 0.0523 & 0.0044 & 39.0499 & 3.2542 & 1.8039 \tabularnewline
52 & -0.0635 & 0.009 & 8e-04 & 1.144 & 0.0953 & 0.3088 \tabularnewline
53 & -0.0547 & 0.0708 & 0.0059 & 58.5254 & 4.8771 & 2.2084 \tabularnewline
54 & -0.064 & -0.0405 & 0.0034 & 23.0393 & 1.9199 & 1.3856 \tabularnewline
55 & -0.0639 & 0.1286 & 0.0107 & 218.4487 & 18.2041 & 4.2666 \tabularnewline
56 & -0.0588 & 0.0242 & 0.002 & 6.9783 & 0.5815 & 0.7626 \tabularnewline
57 & -0.0673 & -0.0146 & 0.0012 & 3.0037 & 0.2503 & 0.5003 \tabularnewline
58 & -0.0651 & 0.1086 & 0.009 & 153.0732 & 12.7561 & 3.5716 \tabularnewline
59 & -0.0624 & 0.0167 & 0.0014 & 3.444 & 0.287 & 0.5357 \tabularnewline
60 & -0.0691 & -0.0177 & 0.0015 & 4.3735 & 0.3645 & 0.6037 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2862&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]49[/C][C]-0.0575[/C][C]0.074[/C][C]0.0062[/C][C]77.8767[/C][C]6.4897[/C][C]2.5475[/C][/ROW]
[ROW][C]50[/C][C]-0.0507[/C][C]0.2141[/C][C]0.0178[/C][C]522.4483[/C][C]43.5374[/C][C]6.5983[/C][/ROW]
[ROW][C]51[/C][C]-0.0615[/C][C]0.0523[/C][C]0.0044[/C][C]39.0499[/C][C]3.2542[/C][C]1.8039[/C][/ROW]
[ROW][C]52[/C][C]-0.0635[/C][C]0.009[/C][C]8e-04[/C][C]1.144[/C][C]0.0953[/C][C]0.3088[/C][/ROW]
[ROW][C]53[/C][C]-0.0547[/C][C]0.0708[/C][C]0.0059[/C][C]58.5254[/C][C]4.8771[/C][C]2.2084[/C][/ROW]
[ROW][C]54[/C][C]-0.064[/C][C]-0.0405[/C][C]0.0034[/C][C]23.0393[/C][C]1.9199[/C][C]1.3856[/C][/ROW]
[ROW][C]55[/C][C]-0.0639[/C][C]0.1286[/C][C]0.0107[/C][C]218.4487[/C][C]18.2041[/C][C]4.2666[/C][/ROW]
[ROW][C]56[/C][C]-0.0588[/C][C]0.0242[/C][C]0.002[/C][C]6.9783[/C][C]0.5815[/C][C]0.7626[/C][/ROW]
[ROW][C]57[/C][C]-0.0673[/C][C]-0.0146[/C][C]0.0012[/C][C]3.0037[/C][C]0.2503[/C][C]0.5003[/C][/ROW]
[ROW][C]58[/C][C]-0.0651[/C][C]0.1086[/C][C]0.009[/C][C]153.0732[/C][C]12.7561[/C][C]3.5716[/C][/ROW]
[ROW][C]59[/C][C]-0.0624[/C][C]0.0167[/C][C]0.0014[/C][C]3.444[/C][C]0.287[/C][C]0.5357[/C][/ROW]
[ROW][C]60[/C][C]-0.0691[/C][C]-0.0177[/C][C]0.0015[/C][C]4.3735[/C][C]0.3645[/C][C]0.6037[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2862&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2862&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
49-0.05750.0740.006277.87676.48972.5475
50-0.05070.21410.0178522.448343.53746.5983
51-0.06150.05230.004439.04993.25421.8039
52-0.06350.0098e-041.1440.09530.3088
53-0.05470.07080.005958.52544.87712.2084
54-0.064-0.04050.003423.03931.91991.3856
55-0.06390.12860.0107218.448718.20414.2666
56-0.05880.02420.0026.97830.58150.7626
57-0.0673-0.01460.00123.00370.25030.5003
58-0.06510.10860.009153.073212.75613.5716
59-0.06240.01670.00143.4440.2870.5357
60-0.0691-0.01770.00154.37350.36450.6037



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