Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Module--
Title produced by softwareARIMA Forecasting
Date of computationTue, 04 Dec 2012 10:12:03 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/04/t1354633938l54szzekjxg4nv2.htm/, Retrieved Fri, 19 Apr 2024 13:40:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=196300, Retrieved Fri, 19 Apr 2024 13:40:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact89
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [ws9 Arima forecas...] [2012-12-01 13:14:48] [c5937bf2e8e0a7b2aa466d1286878951]
- RM      [ARIMA Forecasting] [ws 9 - arima fore...] [2012-12-04 15:12:03] [6cfb0506b9db8256241a983c70a85969] [Current]
Feedback Forum

Post a new message
Dataseries X:
46
62
66
59
58
61
41
27
58
70
49
59
44
36
72
45
56
54
53
35
61
52
47
51
52
63
74
45
51
64
36
30
55
64
39
40
63
45
59
55
40
64
27
28
45
57
45
69
60
56
58
50
51
53
37
22
55
70
62
58
39
49
58
47
42
62
39
40
72
70
54
65




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=196300&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=196300&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=196300&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 time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







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[60])
5962-------
6058-------
613947.715524.844670.58640.22760.18910.18910.1891
624946.339523.433269.24580.410.7350.7350.1592
635847.837924.480571.19530.19690.46120.46120.1969
644749.452525.771173.1340.41960.23960.23960.2396
654250.42326.670374.17560.24350.61120.61120.2659
666250.821927.067774.57610.17820.76670.76670.2768
673950.906727.14774.66640.1630.18010.18010.2792
684050.87527.10374.64690.1850.83620.83620.2784
697250.826427.041974.6110.04050.81380.81380.2772
707050.793826.998474.58930.05680.04030.04030.2764
715450.778926.974174.58380.39540.05680.05680.2761
726550.774926.961474.58830.12080.39530.39530.276

\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[60]) \tabularnewline
59 & 62 & - & - & - & - & - & - & - \tabularnewline
60 & 58 & - & - & - & - & - & - & - \tabularnewline
61 & 39 & 47.7155 & 24.8446 & 70.5864 & 0.2276 & 0.1891 & 0.1891 & 0.1891 \tabularnewline
62 & 49 & 46.3395 & 23.4332 & 69.2458 & 0.41 & 0.735 & 0.735 & 0.1592 \tabularnewline
63 & 58 & 47.8379 & 24.4805 & 71.1953 & 0.1969 & 0.4612 & 0.4612 & 0.1969 \tabularnewline
64 & 47 & 49.4525 & 25.7711 & 73.134 & 0.4196 & 0.2396 & 0.2396 & 0.2396 \tabularnewline
65 & 42 & 50.423 & 26.6703 & 74.1756 & 0.2435 & 0.6112 & 0.6112 & 0.2659 \tabularnewline
66 & 62 & 50.8219 & 27.0677 & 74.5761 & 0.1782 & 0.7667 & 0.7667 & 0.2768 \tabularnewline
67 & 39 & 50.9067 & 27.147 & 74.6664 & 0.163 & 0.1801 & 0.1801 & 0.2792 \tabularnewline
68 & 40 & 50.875 & 27.103 & 74.6469 & 0.185 & 0.8362 & 0.8362 & 0.2784 \tabularnewline
69 & 72 & 50.8264 & 27.0419 & 74.611 & 0.0405 & 0.8138 & 0.8138 & 0.2772 \tabularnewline
70 & 70 & 50.7938 & 26.9984 & 74.5893 & 0.0568 & 0.0403 & 0.0403 & 0.2764 \tabularnewline
71 & 54 & 50.7789 & 26.9741 & 74.5838 & 0.3954 & 0.0568 & 0.0568 & 0.2761 \tabularnewline
72 & 65 & 50.7749 & 26.9614 & 74.5883 & 0.1208 & 0.3953 & 0.3953 & 0.276 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=196300&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[60])[/C][/ROW]
[ROW][C]59[/C][C]62[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]58[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]39[/C][C]47.7155[/C][C]24.8446[/C][C]70.5864[/C][C]0.2276[/C][C]0.1891[/C][C]0.1891[/C][C]0.1891[/C][/ROW]
[ROW][C]62[/C][C]49[/C][C]46.3395[/C][C]23.4332[/C][C]69.2458[/C][C]0.41[/C][C]0.735[/C][C]0.735[/C][C]0.1592[/C][/ROW]
[ROW][C]63[/C][C]58[/C][C]47.8379[/C][C]24.4805[/C][C]71.1953[/C][C]0.1969[/C][C]0.4612[/C][C]0.4612[/C][C]0.1969[/C][/ROW]
[ROW][C]64[/C][C]47[/C][C]49.4525[/C][C]25.7711[/C][C]73.134[/C][C]0.4196[/C][C]0.2396[/C][C]0.2396[/C][C]0.2396[/C][/ROW]
[ROW][C]65[/C][C]42[/C][C]50.423[/C][C]26.6703[/C][C]74.1756[/C][C]0.2435[/C][C]0.6112[/C][C]0.6112[/C][C]0.2659[/C][/ROW]
[ROW][C]66[/C][C]62[/C][C]50.8219[/C][C]27.0677[/C][C]74.5761[/C][C]0.1782[/C][C]0.7667[/C][C]0.7667[/C][C]0.2768[/C][/ROW]
[ROW][C]67[/C][C]39[/C][C]50.9067[/C][C]27.147[/C][C]74.6664[/C][C]0.163[/C][C]0.1801[/C][C]0.1801[/C][C]0.2792[/C][/ROW]
[ROW][C]68[/C][C]40[/C][C]50.875[/C][C]27.103[/C][C]74.6469[/C][C]0.185[/C][C]0.8362[/C][C]0.8362[/C][C]0.2784[/C][/ROW]
[ROW][C]69[/C][C]72[/C][C]50.8264[/C][C]27.0419[/C][C]74.611[/C][C]0.0405[/C][C]0.8138[/C][C]0.8138[/C][C]0.2772[/C][/ROW]
[ROW][C]70[/C][C]70[/C][C]50.7938[/C][C]26.9984[/C][C]74.5893[/C][C]0.0568[/C][C]0.0403[/C][C]0.0403[/C][C]0.2764[/C][/ROW]
[ROW][C]71[/C][C]54[/C][C]50.7789[/C][C]26.9741[/C][C]74.5838[/C][C]0.3954[/C][C]0.0568[/C][C]0.0568[/C][C]0.2761[/C][/ROW]
[ROW][C]72[/C][C]65[/C][C]50.7749[/C][C]26.9614[/C][C]74.5883[/C][C]0.1208[/C][C]0.3953[/C][C]0.3953[/C][C]0.276[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=196300&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=196300&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[60])
5962-------
6058-------
613947.715524.844670.58640.22760.18910.18910.1891
624946.339523.433269.24580.410.7350.7350.1592
635847.837924.480571.19530.19690.46120.46120.1969
644749.452525.771173.1340.41960.23960.23960.2396
654250.42326.670374.17560.24350.61120.61120.2659
666250.821927.067774.57610.17820.76670.76670.2768
673950.906727.14774.66640.1630.18010.18010.2792
684050.87527.10374.64690.1850.83620.83620.2784
697250.826427.041974.6110.04050.81380.81380.2772
707050.793826.998474.58930.05680.04030.04030.2764
715450.778926.974174.58380.39540.05680.05680.2761
726550.774926.961474.58830.12080.39530.39530.276







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
610.2446-0.1827075.959300
620.25220.05740.127.078141.51876.4435
630.24910.21240.1508103.26962.10217.8805
640.2443-0.04960.12556.014848.08036.934
650.2403-0.1670.133870.946352.65357.2563
660.23850.21990.1482124.950464.7038.0438
670.2381-0.23390.1604141.76975.71248.7013
680.2384-0.21380.1671118.265381.03159.0018
690.23880.41660.1948448.3192121.841311.0382
700.2390.37810.2131368.8768146.544812.1056
710.23920.06340.199510.3752134.165811.583
720.23930.28020.2063202.3547139.848211.8257

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
61 & 0.2446 & -0.1827 & 0 & 75.9593 & 0 & 0 \tabularnewline
62 & 0.2522 & 0.0574 & 0.12 & 7.0781 & 41.5187 & 6.4435 \tabularnewline
63 & 0.2491 & 0.2124 & 0.1508 & 103.269 & 62.1021 & 7.8805 \tabularnewline
64 & 0.2443 & -0.0496 & 0.1255 & 6.0148 & 48.0803 & 6.934 \tabularnewline
65 & 0.2403 & -0.167 & 0.1338 & 70.9463 & 52.6535 & 7.2563 \tabularnewline
66 & 0.2385 & 0.2199 & 0.1482 & 124.9504 & 64.703 & 8.0438 \tabularnewline
67 & 0.2381 & -0.2339 & 0.1604 & 141.769 & 75.7124 & 8.7013 \tabularnewline
68 & 0.2384 & -0.2138 & 0.1671 & 118.2653 & 81.0315 & 9.0018 \tabularnewline
69 & 0.2388 & 0.4166 & 0.1948 & 448.3192 & 121.8413 & 11.0382 \tabularnewline
70 & 0.239 & 0.3781 & 0.2131 & 368.8768 & 146.5448 & 12.1056 \tabularnewline
71 & 0.2392 & 0.0634 & 0.1995 & 10.3752 & 134.1658 & 11.583 \tabularnewline
72 & 0.2393 & 0.2802 & 0.2063 & 202.3547 & 139.8482 & 11.8257 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=196300&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]61[/C][C]0.2446[/C][C]-0.1827[/C][C]0[/C][C]75.9593[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]62[/C][C]0.2522[/C][C]0.0574[/C][C]0.12[/C][C]7.0781[/C][C]41.5187[/C][C]6.4435[/C][/ROW]
[ROW][C]63[/C][C]0.2491[/C][C]0.2124[/C][C]0.1508[/C][C]103.269[/C][C]62.1021[/C][C]7.8805[/C][/ROW]
[ROW][C]64[/C][C]0.2443[/C][C]-0.0496[/C][C]0.1255[/C][C]6.0148[/C][C]48.0803[/C][C]6.934[/C][/ROW]
[ROW][C]65[/C][C]0.2403[/C][C]-0.167[/C][C]0.1338[/C][C]70.9463[/C][C]52.6535[/C][C]7.2563[/C][/ROW]
[ROW][C]66[/C][C]0.2385[/C][C]0.2199[/C][C]0.1482[/C][C]124.9504[/C][C]64.703[/C][C]8.0438[/C][/ROW]
[ROW][C]67[/C][C]0.2381[/C][C]-0.2339[/C][C]0.1604[/C][C]141.769[/C][C]75.7124[/C][C]8.7013[/C][/ROW]
[ROW][C]68[/C][C]0.2384[/C][C]-0.2138[/C][C]0.1671[/C][C]118.2653[/C][C]81.0315[/C][C]9.0018[/C][/ROW]
[ROW][C]69[/C][C]0.2388[/C][C]0.4166[/C][C]0.1948[/C][C]448.3192[/C][C]121.8413[/C][C]11.0382[/C][/ROW]
[ROW][C]70[/C][C]0.239[/C][C]0.3781[/C][C]0.2131[/C][C]368.8768[/C][C]146.5448[/C][C]12.1056[/C][/ROW]
[ROW][C]71[/C][C]0.2392[/C][C]0.0634[/C][C]0.1995[/C][C]10.3752[/C][C]134.1658[/C][C]11.583[/C][/ROW]
[ROW][C]72[/C][C]0.2393[/C][C]0.2802[/C][C]0.2063[/C][C]202.3547[/C][C]139.8482[/C][C]11.8257[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=196300&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=196300&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
610.2446-0.1827075.959300
620.25220.05740.127.078141.51876.4435
630.24910.21240.1508103.26962.10217.8805
640.2443-0.04960.12556.014848.08036.934
650.2403-0.1670.133870.946352.65357.2563
660.23850.21990.1482124.950464.7038.0438
670.2381-0.23390.1604141.76975.71248.7013
680.2384-0.21380.1671118.265381.03159.0018
690.23880.41660.1948448.3192121.841311.0382
700.2390.37810.2131368.8768146.544812.1056
710.23920.06340.199510.3752134.165811.583
720.23930.28020.2063202.3547139.848211.8257



Parameters (Session):
par1 = 12 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 2 ; par7 = 1 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 2 ; par7 = 1 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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')