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 computationSun, 26 Dec 2010 18:21:04 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/26/t1293387733mxq4xkdrxeurbrt.htm/, Retrieved Mon, 06 May 2024 19:40:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115760, Retrieved Mon, 06 May 2024 19:40:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [paper statistiek 9] [2010-12-26 18:21:04] [f3d6336ce664ba129edd250394d444d3] [Current]
Feedback Forum

Post a new message
Dataseries X:
493
514
522
490
484
506
501
462
465
454
464
427
460
473
465
422
415
413
420
363
376
380
384
346
389
407
393
346
348
353
364
305
307
312
312
286
324
336
327
302
299
311
315
264
278
278
287
279
324
354
354
360
363
385
412
370
389
395
417
404




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115760&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115760&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115760&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'RServer@AstonUniversity' @ vre.aston.ac.uk







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[50])
38336-------
39327-------
40302-------
41299-------
42311-------
43315-------
44264-------
45278-------
46278-------
47287-------
48279-------
49324-------
50354-------
51354354.2913336.8896371.6930.48690.51310.99890.5131
52360330.1696306.2331354.10620.00730.02550.98950.0255
53363334.3692302.2431366.49540.04030.05890.98450.1155
54385352.8957312.6889393.10240.05880.31120.97940.4785
55412364.0445315.3484412.74070.02680.19950.97580.657
56370320.6516263.2538378.04940.0469e-040.97350.1274
57389337.2751270.9521403.59810.06320.16670.96010.3106
58395343.2842267.8608418.70750.08950.11740.95510.3903
59417356.9858272.3252441.64640.08240.18940.94740.5276
60404341.5205247.4941435.54680.09640.05780.90380.3974

\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[50]) \tabularnewline
38 & 336 & - & - & - & - & - & - & - \tabularnewline
39 & 327 & - & - & - & - & - & - & - \tabularnewline
40 & 302 & - & - & - & - & - & - & - \tabularnewline
41 & 299 & - & - & - & - & - & - & - \tabularnewline
42 & 311 & - & - & - & - & - & - & - \tabularnewline
43 & 315 & - & - & - & - & - & - & - \tabularnewline
44 & 264 & - & - & - & - & - & - & - \tabularnewline
45 & 278 & - & - & - & - & - & - & - \tabularnewline
46 & 278 & - & - & - & - & - & - & - \tabularnewline
47 & 287 & - & - & - & - & - & - & - \tabularnewline
48 & 279 & - & - & - & - & - & - & - \tabularnewline
49 & 324 & - & - & - & - & - & - & - \tabularnewline
50 & 354 & - & - & - & - & - & - & - \tabularnewline
51 & 354 & 354.2913 & 336.8896 & 371.693 & 0.4869 & 0.5131 & 0.9989 & 0.5131 \tabularnewline
52 & 360 & 330.1696 & 306.2331 & 354.1062 & 0.0073 & 0.0255 & 0.9895 & 0.0255 \tabularnewline
53 & 363 & 334.3692 & 302.2431 & 366.4954 & 0.0403 & 0.0589 & 0.9845 & 0.1155 \tabularnewline
54 & 385 & 352.8957 & 312.6889 & 393.1024 & 0.0588 & 0.3112 & 0.9794 & 0.4785 \tabularnewline
55 & 412 & 364.0445 & 315.3484 & 412.7407 & 0.0268 & 0.1995 & 0.9758 & 0.657 \tabularnewline
56 & 370 & 320.6516 & 263.2538 & 378.0494 & 0.046 & 9e-04 & 0.9735 & 0.1274 \tabularnewline
57 & 389 & 337.2751 & 270.9521 & 403.5981 & 0.0632 & 0.1667 & 0.9601 & 0.3106 \tabularnewline
58 & 395 & 343.2842 & 267.8608 & 418.7075 & 0.0895 & 0.1174 & 0.9551 & 0.3903 \tabularnewline
59 & 417 & 356.9858 & 272.3252 & 441.6464 & 0.0824 & 0.1894 & 0.9474 & 0.5276 \tabularnewline
60 & 404 & 341.5205 & 247.4941 & 435.5468 & 0.0964 & 0.0578 & 0.9038 & 0.3974 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115760&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[50])[/C][/ROW]
[ROW][C]38[/C][C]336[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]39[/C][C]327[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]40[/C][C]302[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]299[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]311[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]315[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]44[/C][C]264[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]278[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]278[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]287[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]279[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]324[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]354[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]354[/C][C]354.2913[/C][C]336.8896[/C][C]371.693[/C][C]0.4869[/C][C]0.5131[/C][C]0.9989[/C][C]0.5131[/C][/ROW]
[ROW][C]52[/C][C]360[/C][C]330.1696[/C][C]306.2331[/C][C]354.1062[/C][C]0.0073[/C][C]0.0255[/C][C]0.9895[/C][C]0.0255[/C][/ROW]
[ROW][C]53[/C][C]363[/C][C]334.3692[/C][C]302.2431[/C][C]366.4954[/C][C]0.0403[/C][C]0.0589[/C][C]0.9845[/C][C]0.1155[/C][/ROW]
[ROW][C]54[/C][C]385[/C][C]352.8957[/C][C]312.6889[/C][C]393.1024[/C][C]0.0588[/C][C]0.3112[/C][C]0.9794[/C][C]0.4785[/C][/ROW]
[ROW][C]55[/C][C]412[/C][C]364.0445[/C][C]315.3484[/C][C]412.7407[/C][C]0.0268[/C][C]0.1995[/C][C]0.9758[/C][C]0.657[/C][/ROW]
[ROW][C]56[/C][C]370[/C][C]320.6516[/C][C]263.2538[/C][C]378.0494[/C][C]0.046[/C][C]9e-04[/C][C]0.9735[/C][C]0.1274[/C][/ROW]
[ROW][C]57[/C][C]389[/C][C]337.2751[/C][C]270.9521[/C][C]403.5981[/C][C]0.0632[/C][C]0.1667[/C][C]0.9601[/C][C]0.3106[/C][/ROW]
[ROW][C]58[/C][C]395[/C][C]343.2842[/C][C]267.8608[/C][C]418.7075[/C][C]0.0895[/C][C]0.1174[/C][C]0.9551[/C][C]0.3903[/C][/ROW]
[ROW][C]59[/C][C]417[/C][C]356.9858[/C][C]272.3252[/C][C]441.6464[/C][C]0.0824[/C][C]0.1894[/C][C]0.9474[/C][C]0.5276[/C][/ROW]
[ROW][C]60[/C][C]404[/C][C]341.5205[/C][C]247.4941[/C][C]435.5468[/C][C]0.0964[/C][C]0.0578[/C][C]0.9038[/C][C]0.3974[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115760&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115760&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[50])
38336-------
39327-------
40302-------
41299-------
42311-------
43315-------
44264-------
45278-------
46278-------
47287-------
48279-------
49324-------
50354-------
51354354.2913336.8896371.6930.48690.51310.99890.5131
52360330.1696306.2331354.10620.00730.02550.98950.0255
53363334.3692302.2431366.49540.04030.05890.98450.1155
54385352.8957312.6889393.10240.05880.31120.97940.4785
55412364.0445315.3484412.74070.02680.19950.97580.657
56370320.6516263.2538378.04940.0469e-040.97350.1274
57389337.2751270.9521403.59810.06320.16670.96010.3106
58395343.2842267.8608418.70750.08950.11740.95510.3903
59417356.9858272.3252441.64640.08240.18940.94740.5276
60404341.5205247.4941435.54680.09640.05780.90380.3974







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
510.0251-8e-0400.084900
520.0370.09030.0456889.8499444.967421.0943
530.0490.08560.0589819.7217569.885523.8723
540.05810.0910.06691030.6885685.086326.1742
550.06820.13170.07992299.72561008.014131.7492
560.09130.15390.09222435.26111245.888635.2971
570.10030.15340.1012675.46241450.113438.0804
580.11210.15070.10722674.52561603.16540.0395
590.1210.16810.11393601.70051825.224542.7226
600.14050.18290.12083903.69032033.071145.0896

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
51 & 0.0251 & -8e-04 & 0 & 0.0849 & 0 & 0 \tabularnewline
52 & 0.037 & 0.0903 & 0.0456 & 889.8499 & 444.9674 & 21.0943 \tabularnewline
53 & 0.049 & 0.0856 & 0.0589 & 819.7217 & 569.8855 & 23.8723 \tabularnewline
54 & 0.0581 & 0.091 & 0.0669 & 1030.6885 & 685.0863 & 26.1742 \tabularnewline
55 & 0.0682 & 0.1317 & 0.0799 & 2299.7256 & 1008.0141 & 31.7492 \tabularnewline
56 & 0.0913 & 0.1539 & 0.0922 & 2435.2611 & 1245.8886 & 35.2971 \tabularnewline
57 & 0.1003 & 0.1534 & 0.101 & 2675.4624 & 1450.1134 & 38.0804 \tabularnewline
58 & 0.1121 & 0.1507 & 0.1072 & 2674.5256 & 1603.165 & 40.0395 \tabularnewline
59 & 0.121 & 0.1681 & 0.1139 & 3601.7005 & 1825.2245 & 42.7226 \tabularnewline
60 & 0.1405 & 0.1829 & 0.1208 & 3903.6903 & 2033.0711 & 45.0896 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115760&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]51[/C][C]0.0251[/C][C]-8e-04[/C][C]0[/C][C]0.0849[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]52[/C][C]0.037[/C][C]0.0903[/C][C]0.0456[/C][C]889.8499[/C][C]444.9674[/C][C]21.0943[/C][/ROW]
[ROW][C]53[/C][C]0.049[/C][C]0.0856[/C][C]0.0589[/C][C]819.7217[/C][C]569.8855[/C][C]23.8723[/C][/ROW]
[ROW][C]54[/C][C]0.0581[/C][C]0.091[/C][C]0.0669[/C][C]1030.6885[/C][C]685.0863[/C][C]26.1742[/C][/ROW]
[ROW][C]55[/C][C]0.0682[/C][C]0.1317[/C][C]0.0799[/C][C]2299.7256[/C][C]1008.0141[/C][C]31.7492[/C][/ROW]
[ROW][C]56[/C][C]0.0913[/C][C]0.1539[/C][C]0.0922[/C][C]2435.2611[/C][C]1245.8886[/C][C]35.2971[/C][/ROW]
[ROW][C]57[/C][C]0.1003[/C][C]0.1534[/C][C]0.101[/C][C]2675.4624[/C][C]1450.1134[/C][C]38.0804[/C][/ROW]
[ROW][C]58[/C][C]0.1121[/C][C]0.1507[/C][C]0.1072[/C][C]2674.5256[/C][C]1603.165[/C][C]40.0395[/C][/ROW]
[ROW][C]59[/C][C]0.121[/C][C]0.1681[/C][C]0.1139[/C][C]3601.7005[/C][C]1825.2245[/C][C]42.7226[/C][/ROW]
[ROW][C]60[/C][C]0.1405[/C][C]0.1829[/C][C]0.1208[/C][C]3903.6903[/C][C]2033.0711[/C][C]45.0896[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115760&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115760&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
510.0251-8e-0400.084900
520.0370.09030.0456889.8499444.967421.0943
530.0490.08560.0589819.7217569.885523.8723
540.05810.0910.06691030.6885685.086326.1742
550.06820.13170.07992299.72561008.014131.7492
560.09130.15390.09222435.26111245.888635.2971
570.10030.15340.1012675.46241450.113438.0804
580.11210.15070.10722674.52561603.16540.0395
590.1210.16810.11393601.70051825.224542.7226
600.14050.18290.12083903.69032033.071145.0896



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