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 computationSat, 25 Dec 2010 11:25:06 +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/25/t1293276192ecgri685r7i7psa.htm/, Retrieved Sun, 28 Apr 2024 23:30:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115356, Retrieved Sun, 28 Apr 2024 23:30:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact150
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA Forcasting] [2010-12-25 11:25:06] [55fca7c82a53ae69fe96aa1750b06058] [Current]
Feedback Forum

Post a new message
Dataseries X:
716
677
710
839
886
891
917
820
793
932
906
844
801
957
1159
1264
1097
1240
1411
1535
1862
1894
2239
2465
2423
2692
2856
3450
4162
4260
4225
4092
4160
3896
3628
3754
3749
3907
4449
5272
6197
6446
7157
7559
7674
6929
7156
6805
7095
7222
7593
7910
7878




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115356&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115356&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115356&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







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[41])
405272-------
416197-------
4264466904.13126516.1157292.14730.01030.99980.99980.9998
4371577370.49476501.40978239.57970.31510.98150.98150.9959
4475597725.06186418.39389031.72990.40160.80290.80290.989
4576747960.14016206.50279713.77760.37460.6730.6730.9756
4669298137.95845972.428410303.48840.13690.66270.66270.9605
4771568256.42975695.520710817.33870.19980.84520.84520.9425
4868058345.62225418.128111273.11630.15120.78710.78710.9249
4970958405.31655131.050511679.58250.21640.8310.8310.9069
5072228450.0624851.616312048.50770.25180.76980.76980.8901
5175938480.13514575.154412385.11570.32810.73610.73610.8741
5279108502.5864308.61112696.5610.39090.66460.66460.8594
5378788517.7344049.326712986.14120.38950.60510.60510.8457

\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[41]) \tabularnewline
40 & 5272 & - & - & - & - & - & - & - \tabularnewline
41 & 6197 & - & - & - & - & - & - & - \tabularnewline
42 & 6446 & 6904.1312 & 6516.115 & 7292.1473 & 0.0103 & 0.9998 & 0.9998 & 0.9998 \tabularnewline
43 & 7157 & 7370.4947 & 6501.4097 & 8239.5797 & 0.3151 & 0.9815 & 0.9815 & 0.9959 \tabularnewline
44 & 7559 & 7725.0618 & 6418.3938 & 9031.7299 & 0.4016 & 0.8029 & 0.8029 & 0.989 \tabularnewline
45 & 7674 & 7960.1401 & 6206.5027 & 9713.7776 & 0.3746 & 0.673 & 0.673 & 0.9756 \tabularnewline
46 & 6929 & 8137.9584 & 5972.4284 & 10303.4884 & 0.1369 & 0.6627 & 0.6627 & 0.9605 \tabularnewline
47 & 7156 & 8256.4297 & 5695.5207 & 10817.3387 & 0.1998 & 0.8452 & 0.8452 & 0.9425 \tabularnewline
48 & 6805 & 8345.6222 & 5418.1281 & 11273.1163 & 0.1512 & 0.7871 & 0.7871 & 0.9249 \tabularnewline
49 & 7095 & 8405.3165 & 5131.0505 & 11679.5825 & 0.2164 & 0.831 & 0.831 & 0.9069 \tabularnewline
50 & 7222 & 8450.062 & 4851.6163 & 12048.5077 & 0.2518 & 0.7698 & 0.7698 & 0.8901 \tabularnewline
51 & 7593 & 8480.1351 & 4575.1544 & 12385.1157 & 0.3281 & 0.7361 & 0.7361 & 0.8741 \tabularnewline
52 & 7910 & 8502.586 & 4308.611 & 12696.561 & 0.3909 & 0.6646 & 0.6646 & 0.8594 \tabularnewline
53 & 7878 & 8517.734 & 4049.3267 & 12986.1412 & 0.3895 & 0.6051 & 0.6051 & 0.8457 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115356&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[41])[/C][/ROW]
[ROW][C]40[/C][C]5272[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]6197[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]6446[/C][C]6904.1312[/C][C]6516.115[/C][C]7292.1473[/C][C]0.0103[/C][C]0.9998[/C][C]0.9998[/C][C]0.9998[/C][/ROW]
[ROW][C]43[/C][C]7157[/C][C]7370.4947[/C][C]6501.4097[/C][C]8239.5797[/C][C]0.3151[/C][C]0.9815[/C][C]0.9815[/C][C]0.9959[/C][/ROW]
[ROW][C]44[/C][C]7559[/C][C]7725.0618[/C][C]6418.3938[/C][C]9031.7299[/C][C]0.4016[/C][C]0.8029[/C][C]0.8029[/C][C]0.989[/C][/ROW]
[ROW][C]45[/C][C]7674[/C][C]7960.1401[/C][C]6206.5027[/C][C]9713.7776[/C][C]0.3746[/C][C]0.673[/C][C]0.673[/C][C]0.9756[/C][/ROW]
[ROW][C]46[/C][C]6929[/C][C]8137.9584[/C][C]5972.4284[/C][C]10303.4884[/C][C]0.1369[/C][C]0.6627[/C][C]0.6627[/C][C]0.9605[/C][/ROW]
[ROW][C]47[/C][C]7156[/C][C]8256.4297[/C][C]5695.5207[/C][C]10817.3387[/C][C]0.1998[/C][C]0.8452[/C][C]0.8452[/C][C]0.9425[/C][/ROW]
[ROW][C]48[/C][C]6805[/C][C]8345.6222[/C][C]5418.1281[/C][C]11273.1163[/C][C]0.1512[/C][C]0.7871[/C][C]0.7871[/C][C]0.9249[/C][/ROW]
[ROW][C]49[/C][C]7095[/C][C]8405.3165[/C][C]5131.0505[/C][C]11679.5825[/C][C]0.2164[/C][C]0.831[/C][C]0.831[/C][C]0.9069[/C][/ROW]
[ROW][C]50[/C][C]7222[/C][C]8450.062[/C][C]4851.6163[/C][C]12048.5077[/C][C]0.2518[/C][C]0.7698[/C][C]0.7698[/C][C]0.8901[/C][/ROW]
[ROW][C]51[/C][C]7593[/C][C]8480.1351[/C][C]4575.1544[/C][C]12385.1157[/C][C]0.3281[/C][C]0.7361[/C][C]0.7361[/C][C]0.8741[/C][/ROW]
[ROW][C]52[/C][C]7910[/C][C]8502.586[/C][C]4308.611[/C][C]12696.561[/C][C]0.3909[/C][C]0.6646[/C][C]0.6646[/C][C]0.8594[/C][/ROW]
[ROW][C]53[/C][C]7878[/C][C]8517.734[/C][C]4049.3267[/C][C]12986.1412[/C][C]0.3895[/C][C]0.6051[/C][C]0.6051[/C][C]0.8457[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115356&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115356&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[41])
405272-------
416197-------
4264466904.13126516.1157292.14730.01030.99980.99980.9998
4371577370.49476501.40978239.57970.31510.98150.98150.9959
4475597725.06186418.39389031.72990.40160.80290.80290.989
4576747960.14016206.50279713.77760.37460.6730.6730.9756
4669298137.95845972.428410303.48840.13690.66270.66270.9605
4771568256.42975695.520710817.33870.19980.84520.84520.9425
4868058345.62225418.128111273.11630.15120.78710.78710.9249
4970958405.31655131.050511679.58250.21640.8310.8310.9069
5072228450.0624851.616312048.50770.25180.76980.76980.8901
5175938480.13514575.154412385.11570.32810.73610.73610.8741
5279108502.5864308.61112696.5610.39090.66460.66460.8594
5378788517.7344049.326712986.14120.38950.60510.60510.8457







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
420.0287-0.06640209884.179700
430.0602-0.0290.047745579.978127732.0788357.3962
440.0863-0.02150.038927576.534294346.8973307.1594
450.1124-0.03590.038281876.176291229.217302.0417
460.1358-0.14860.06031461580.4729365299.4682604.4001
470.1583-0.13330.07241210945.5199506240.4768711.5058
480.179-0.18460.08852373516.7552772994.2309879.2009
490.1987-0.15590.09691716929.3319890986.1185943.9206
500.2173-0.14530.10231508136.2201959558.352979.5705
510.2349-0.10460.1025787008.6514942303.3819970.7231
520.2517-0.06970.0995351158.1652888562.9077942.6361
530.2677-0.07510.0975409259.5685848620.9628921.2063

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
42 & 0.0287 & -0.0664 & 0 & 209884.1797 & 0 & 0 \tabularnewline
43 & 0.0602 & -0.029 & 0.0477 & 45579.978 & 127732.0788 & 357.3962 \tabularnewline
44 & 0.0863 & -0.0215 & 0.0389 & 27576.5342 & 94346.8973 & 307.1594 \tabularnewline
45 & 0.1124 & -0.0359 & 0.0382 & 81876.1762 & 91229.217 & 302.0417 \tabularnewline
46 & 0.1358 & -0.1486 & 0.0603 & 1461580.4729 & 365299.4682 & 604.4001 \tabularnewline
47 & 0.1583 & -0.1333 & 0.0724 & 1210945.5199 & 506240.4768 & 711.5058 \tabularnewline
48 & 0.179 & -0.1846 & 0.0885 & 2373516.7552 & 772994.2309 & 879.2009 \tabularnewline
49 & 0.1987 & -0.1559 & 0.0969 & 1716929.3319 & 890986.1185 & 943.9206 \tabularnewline
50 & 0.2173 & -0.1453 & 0.1023 & 1508136.2201 & 959558.352 & 979.5705 \tabularnewline
51 & 0.2349 & -0.1046 & 0.1025 & 787008.6514 & 942303.3819 & 970.7231 \tabularnewline
52 & 0.2517 & -0.0697 & 0.0995 & 351158.1652 & 888562.9077 & 942.6361 \tabularnewline
53 & 0.2677 & -0.0751 & 0.0975 & 409259.5685 & 848620.9628 & 921.2063 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115356&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]42[/C][C]0.0287[/C][C]-0.0664[/C][C]0[/C][C]209884.1797[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]43[/C][C]0.0602[/C][C]-0.029[/C][C]0.0477[/C][C]45579.978[/C][C]127732.0788[/C][C]357.3962[/C][/ROW]
[ROW][C]44[/C][C]0.0863[/C][C]-0.0215[/C][C]0.0389[/C][C]27576.5342[/C][C]94346.8973[/C][C]307.1594[/C][/ROW]
[ROW][C]45[/C][C]0.1124[/C][C]-0.0359[/C][C]0.0382[/C][C]81876.1762[/C][C]91229.217[/C][C]302.0417[/C][/ROW]
[ROW][C]46[/C][C]0.1358[/C][C]-0.1486[/C][C]0.0603[/C][C]1461580.4729[/C][C]365299.4682[/C][C]604.4001[/C][/ROW]
[ROW][C]47[/C][C]0.1583[/C][C]-0.1333[/C][C]0.0724[/C][C]1210945.5199[/C][C]506240.4768[/C][C]711.5058[/C][/ROW]
[ROW][C]48[/C][C]0.179[/C][C]-0.1846[/C][C]0.0885[/C][C]2373516.7552[/C][C]772994.2309[/C][C]879.2009[/C][/ROW]
[ROW][C]49[/C][C]0.1987[/C][C]-0.1559[/C][C]0.0969[/C][C]1716929.3319[/C][C]890986.1185[/C][C]943.9206[/C][/ROW]
[ROW][C]50[/C][C]0.2173[/C][C]-0.1453[/C][C]0.1023[/C][C]1508136.2201[/C][C]959558.352[/C][C]979.5705[/C][/ROW]
[ROW][C]51[/C][C]0.2349[/C][C]-0.1046[/C][C]0.1025[/C][C]787008.6514[/C][C]942303.3819[/C][C]970.7231[/C][/ROW]
[ROW][C]52[/C][C]0.2517[/C][C]-0.0697[/C][C]0.0995[/C][C]351158.1652[/C][C]888562.9077[/C][C]942.6361[/C][/ROW]
[ROW][C]53[/C][C]0.2677[/C][C]-0.0751[/C][C]0.0975[/C][C]409259.5685[/C][C]848620.9628[/C][C]921.2063[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115356&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115356&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
420.0287-0.06640209884.179700
430.0602-0.0290.047745579.978127732.0788357.3962
440.0863-0.02150.038927576.534294346.8973307.1594
450.1124-0.03590.038281876.176291229.217302.0417
460.1358-0.14860.06031461580.4729365299.4682604.4001
470.1583-0.13330.07241210945.5199506240.4768711.5058
480.179-0.18460.08852373516.7552772994.2309879.2009
490.1987-0.15590.09691716929.3319890986.1185943.9206
500.2173-0.14530.10231508136.2201959558.352979.5705
510.2349-0.10460.1025787008.6514942303.3819970.7231
520.2517-0.06970.0995351158.1652888562.9077942.6361
530.2677-0.07510.0975409259.5685848620.9628921.2063



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