Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationMon, 15 Dec 2008 13:06:24 -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/2008/Dec/15/t1229371614btggn2gsh1ij3g9.htm/, Retrieved Wed, 15 May 2024 07:28:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33801, Retrieved Wed, 15 May 2024 07:28:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords2
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2008-12-15 19:56:43] [fe7291e888d31b8c4db0b24d6c0f75c6]
-    D    [ARIMA Forecasting] [2] [2008-12-15 20:06:24] [458fee276d63daa9deadf4e7db401a64] [Current]
Feedback Forum

Post a new message
Dataseries X:
269645
267037
258113
262813
267413
267366
264777
258863
254844
254868
277267
285351
286602
283042
276687
277915
277128
277103
275037
270150
267140
264993
287259
291186
292300
288186
281477
282656
280190
280408
276836
275216
274352
271311
289802
290726
292300
278506
269826
265861
269034
264176
255198
253353
246057
235372
258556
260993
254663
250643
243422
247105
248541
245039
237080
237085
225554
226839
247934
248333
246969
245098
246263




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 0 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33801&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]0 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=33801&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33801&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 time0 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[51])
50250643-------
51243422-------
52247105237053.1155218651.5365255454.69450.14220.24880.24880.2488
53248541231010.3519196609.7385265410.96520.15890.17960.17960.2397
54245039224648.252172608.3841276688.11980.22120.18410.18410.2398
55237080218350.7036145506.6611291194.74610.30710.23630.23630.25
56237085212094.2917116291.5378307897.04560.30460.30460.30460.2608
57225554205806.779285151.8102326461.74810.37420.30570.30570.2706
58226839199523.548852127.3576346919.740.35820.36460.36460.2797
59247934193245.167817382.0261369108.30940.27110.35410.35410.288
60248333186963.8319-18982.4109392910.07480.27960.28090.28090.2955
61246969180682.7017-56891.041418256.44450.29220.28840.28840.3024
62245098174402.1168-96268.9154445073.14910.30440.29960.29960.3086
63246263168121.2587-137052.9901473295.50750.30790.31050.31050.3143

\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[51]) \tabularnewline
50 & 250643 & - & - & - & - & - & - & - \tabularnewline
51 & 243422 & - & - & - & - & - & - & - \tabularnewline
52 & 247105 & 237053.1155 & 218651.5365 & 255454.6945 & 0.1422 & 0.2488 & 0.2488 & 0.2488 \tabularnewline
53 & 248541 & 231010.3519 & 196609.7385 & 265410.9652 & 0.1589 & 0.1796 & 0.1796 & 0.2397 \tabularnewline
54 & 245039 & 224648.252 & 172608.3841 & 276688.1198 & 0.2212 & 0.1841 & 0.1841 & 0.2398 \tabularnewline
55 & 237080 & 218350.7036 & 145506.6611 & 291194.7461 & 0.3071 & 0.2363 & 0.2363 & 0.25 \tabularnewline
56 & 237085 & 212094.2917 & 116291.5378 & 307897.0456 & 0.3046 & 0.3046 & 0.3046 & 0.2608 \tabularnewline
57 & 225554 & 205806.7792 & 85151.8102 & 326461.7481 & 0.3742 & 0.3057 & 0.3057 & 0.2706 \tabularnewline
58 & 226839 & 199523.5488 & 52127.3576 & 346919.74 & 0.3582 & 0.3646 & 0.3646 & 0.2797 \tabularnewline
59 & 247934 & 193245.1678 & 17382.0261 & 369108.3094 & 0.2711 & 0.3541 & 0.3541 & 0.288 \tabularnewline
60 & 248333 & 186963.8319 & -18982.4109 & 392910.0748 & 0.2796 & 0.2809 & 0.2809 & 0.2955 \tabularnewline
61 & 246969 & 180682.7017 & -56891.041 & 418256.4445 & 0.2922 & 0.2884 & 0.2884 & 0.3024 \tabularnewline
62 & 245098 & 174402.1168 & -96268.9154 & 445073.1491 & 0.3044 & 0.2996 & 0.2996 & 0.3086 \tabularnewline
63 & 246263 & 168121.2587 & -137052.9901 & 473295.5075 & 0.3079 & 0.3105 & 0.3105 & 0.3143 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33801&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[51])[/C][/ROW]
[ROW][C]50[/C][C]250643[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]243422[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]247105[/C][C]237053.1155[/C][C]218651.5365[/C][C]255454.6945[/C][C]0.1422[/C][C]0.2488[/C][C]0.2488[/C][C]0.2488[/C][/ROW]
[ROW][C]53[/C][C]248541[/C][C]231010.3519[/C][C]196609.7385[/C][C]265410.9652[/C][C]0.1589[/C][C]0.1796[/C][C]0.1796[/C][C]0.2397[/C][/ROW]
[ROW][C]54[/C][C]245039[/C][C]224648.252[/C][C]172608.3841[/C][C]276688.1198[/C][C]0.2212[/C][C]0.1841[/C][C]0.1841[/C][C]0.2398[/C][/ROW]
[ROW][C]55[/C][C]237080[/C][C]218350.7036[/C][C]145506.6611[/C][C]291194.7461[/C][C]0.3071[/C][C]0.2363[/C][C]0.2363[/C][C]0.25[/C][/ROW]
[ROW][C]56[/C][C]237085[/C][C]212094.2917[/C][C]116291.5378[/C][C]307897.0456[/C][C]0.3046[/C][C]0.3046[/C][C]0.3046[/C][C]0.2608[/C][/ROW]
[ROW][C]57[/C][C]225554[/C][C]205806.7792[/C][C]85151.8102[/C][C]326461.7481[/C][C]0.3742[/C][C]0.3057[/C][C]0.3057[/C][C]0.2706[/C][/ROW]
[ROW][C]58[/C][C]226839[/C][C]199523.5488[/C][C]52127.3576[/C][C]346919.74[/C][C]0.3582[/C][C]0.3646[/C][C]0.3646[/C][C]0.2797[/C][/ROW]
[ROW][C]59[/C][C]247934[/C][C]193245.1678[/C][C]17382.0261[/C][C]369108.3094[/C][C]0.2711[/C][C]0.3541[/C][C]0.3541[/C][C]0.288[/C][/ROW]
[ROW][C]60[/C][C]248333[/C][C]186963.8319[/C][C]-18982.4109[/C][C]392910.0748[/C][C]0.2796[/C][C]0.2809[/C][C]0.2809[/C][C]0.2955[/C][/ROW]
[ROW][C]61[/C][C]246969[/C][C]180682.7017[/C][C]-56891.041[/C][C]418256.4445[/C][C]0.2922[/C][C]0.2884[/C][C]0.2884[/C][C]0.3024[/C][/ROW]
[ROW][C]62[/C][C]245098[/C][C]174402.1168[/C][C]-96268.9154[/C][C]445073.1491[/C][C]0.3044[/C][C]0.2996[/C][C]0.2996[/C][C]0.3086[/C][/ROW]
[ROW][C]63[/C][C]246263[/C][C]168121.2587[/C][C]-137052.9901[/C][C]473295.5075[/C][C]0.3079[/C][C]0.3105[/C][C]0.3105[/C][C]0.3143[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33801&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33801&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[51])
50250643-------
51243422-------
52247105237053.1155218651.5365255454.69450.14220.24880.24880.2488
53248541231010.3519196609.7385265410.96520.15890.17960.17960.2397
54245039224648.252172608.3841276688.11980.22120.18410.18410.2398
55237080218350.7036145506.6611291194.74610.30710.23630.23630.25
56237085212094.2917116291.5378307897.04560.30460.30460.30460.2608
57225554205806.779285151.8102326461.74810.37420.30570.30570.2706
58226839199523.548852127.3576346919.740.35820.36460.36460.2797
59247934193245.167817382.0261369108.30940.27110.35410.35410.288
60248333186963.8319-18982.4109392910.07480.27960.28090.28090.2955
61246969180682.7017-56891.041418256.44450.29220.28840.28840.3024
62245098174402.1168-96268.9154445073.14910.30440.29960.29960.3086
63246263168121.2587-137052.9901473295.50750.30790.31050.31050.3143







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
520.03960.04240.0035101040382.61358420031.88452901.7291
530.0760.07590.0063307323624.348525610302.0295060.6622
540.11820.09080.0076415782605.803534648550.48365886.3019
550.17020.08580.0071350786543.635729232211.96965406.6822
560.23050.11780.0098624535500.899552044625.0757214.1961
570.29910.0960.008389952730.26732496060.85565700.5316
580.37690.13690.0114746133872.582562177822.71527885.2915
590.46430.2830.02362990868370.8049249239030.900415787.306
600.5620.32820.02743766174789.7641313847899.14717715.7529
610.67090.36690.03064393873340.4875366156111.707319135.2061
620.79180.40540.03384997907897.7611416492324.813420408.1436
630.92610.46480.03876106131740.0611508844311.671822557.5777

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
52 & 0.0396 & 0.0424 & 0.0035 & 101040382.6135 & 8420031.8845 & 2901.7291 \tabularnewline
53 & 0.076 & 0.0759 & 0.0063 & 307323624.3485 & 25610302.029 & 5060.6622 \tabularnewline
54 & 0.1182 & 0.0908 & 0.0076 & 415782605.8035 & 34648550.4836 & 5886.3019 \tabularnewline
55 & 0.1702 & 0.0858 & 0.0071 & 350786543.6357 & 29232211.9696 & 5406.6822 \tabularnewline
56 & 0.2305 & 0.1178 & 0.0098 & 624535500.8995 & 52044625.075 & 7214.1961 \tabularnewline
57 & 0.2991 & 0.096 & 0.008 & 389952730.267 & 32496060.8556 & 5700.5316 \tabularnewline
58 & 0.3769 & 0.1369 & 0.0114 & 746133872.5825 & 62177822.7152 & 7885.2915 \tabularnewline
59 & 0.4643 & 0.283 & 0.0236 & 2990868370.8049 & 249239030.9004 & 15787.306 \tabularnewline
60 & 0.562 & 0.3282 & 0.0274 & 3766174789.7641 & 313847899.147 & 17715.7529 \tabularnewline
61 & 0.6709 & 0.3669 & 0.0306 & 4393873340.4875 & 366156111.7073 & 19135.2061 \tabularnewline
62 & 0.7918 & 0.4054 & 0.0338 & 4997907897.7611 & 416492324.8134 & 20408.1436 \tabularnewline
63 & 0.9261 & 0.4648 & 0.0387 & 6106131740.0611 & 508844311.6718 & 22557.5777 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33801&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]52[/C][C]0.0396[/C][C]0.0424[/C][C]0.0035[/C][C]101040382.6135[/C][C]8420031.8845[/C][C]2901.7291[/C][/ROW]
[ROW][C]53[/C][C]0.076[/C][C]0.0759[/C][C]0.0063[/C][C]307323624.3485[/C][C]25610302.029[/C][C]5060.6622[/C][/ROW]
[ROW][C]54[/C][C]0.1182[/C][C]0.0908[/C][C]0.0076[/C][C]415782605.8035[/C][C]34648550.4836[/C][C]5886.3019[/C][/ROW]
[ROW][C]55[/C][C]0.1702[/C][C]0.0858[/C][C]0.0071[/C][C]350786543.6357[/C][C]29232211.9696[/C][C]5406.6822[/C][/ROW]
[ROW][C]56[/C][C]0.2305[/C][C]0.1178[/C][C]0.0098[/C][C]624535500.8995[/C][C]52044625.075[/C][C]7214.1961[/C][/ROW]
[ROW][C]57[/C][C]0.2991[/C][C]0.096[/C][C]0.008[/C][C]389952730.267[/C][C]32496060.8556[/C][C]5700.5316[/C][/ROW]
[ROW][C]58[/C][C]0.3769[/C][C]0.1369[/C][C]0.0114[/C][C]746133872.5825[/C][C]62177822.7152[/C][C]7885.2915[/C][/ROW]
[ROW][C]59[/C][C]0.4643[/C][C]0.283[/C][C]0.0236[/C][C]2990868370.8049[/C][C]249239030.9004[/C][C]15787.306[/C][/ROW]
[ROW][C]60[/C][C]0.562[/C][C]0.3282[/C][C]0.0274[/C][C]3766174789.7641[/C][C]313847899.147[/C][C]17715.7529[/C][/ROW]
[ROW][C]61[/C][C]0.6709[/C][C]0.3669[/C][C]0.0306[/C][C]4393873340.4875[/C][C]366156111.7073[/C][C]19135.2061[/C][/ROW]
[ROW][C]62[/C][C]0.7918[/C][C]0.4054[/C][C]0.0338[/C][C]4997907897.7611[/C][C]416492324.8134[/C][C]20408.1436[/C][/ROW]
[ROW][C]63[/C][C]0.9261[/C][C]0.4648[/C][C]0.0387[/C][C]6106131740.0611[/C][C]508844311.6718[/C][C]22557.5777[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33801&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33801&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
520.03960.04240.0035101040382.61358420031.88452901.7291
530.0760.07590.0063307323624.348525610302.0295060.6622
540.11820.09080.0076415782605.803534648550.48365886.3019
550.17020.08580.0071350786543.635729232211.96965406.6822
560.23050.11780.0098624535500.899552044625.0757214.1961
570.29910.0960.008389952730.26732496060.85565700.5316
580.37690.13690.0114746133872.582562177822.71527885.2915
590.46430.2830.02362990868370.8049249239030.900415787.306
600.5620.32820.02743766174789.7641313847899.14717715.7529
610.67090.36690.03064393873340.4875366156111.707319135.2061
620.79180.40540.03384997907897.7611416492324.813420408.1436
630.92610.46480.03876106131740.0611508844311.671822557.5777



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