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 computationThu, 16 Dec 2010 20:52:41 +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/16/t1292532679btpm861eeoqli7x.htm/, Retrieved Fri, 03 May 2024 10:26:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111279, Retrieved Fri, 03 May 2024 10:26:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact121
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2010-12-16 10:36:19] [555582dbc06a751bf796c97c3ecf46a1]
-         [ARIMA Forecasting] [] [2010-12-16 20:52:41] [a0230832f45c35a2d59555dc09dfd471] [Current]
Feedback Forum

Post a new message
Dataseries X:
-820.8
993.3
741.7
603.6
-145.8
-35.1
395.1
523.1
462.3
183.4
791.5
344.8
-217.0
406.7
228.6
-580.1
-1550.4
-1447.5
-40.1
-1033.5
-925.6
-347.8
-447.7
-102.6
-2062.2
-929.7
-720.7
-1541.8
-1432.3
-1216.2
-212.8
-378.2
76.9
-101.3
220.4
495.6
-1035.2
61.8
-734.8
-6.9
-1061.1
-854.6
-186.5
244.0
-992.6
-335.2
316.8
477.6
-572.1
1115.2




Summary of computational 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 computational 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=111279&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]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=111279&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111279&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 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[38])
37-1035.2-------
3861.8-------
39-734.894.9959-1263.92421453.9160.11570.51910.51910.5191
40-6.9-127.07-1670.61181416.47180.43940.77990.77990.4052
41-1061.1-20.6391-1654.83651613.55820.1060.49340.49340.4606
42-854.646.986-1742.68071836.65270.16170.88750.88750.4935
43-186.554.1431-1883.24181991.5280.40380.8210.8210.4969
4424489.9729-1984.51282164.45870.44210.6030.6030.5106
45-992.6131.3876-2090.92132353.69650.16080.46040.46040.5245
46-335.2164.9161-2212.19772542.02980.340.83010.83010.5339
47316.8199.7924-2336.25932735.84420.4640.66040.66040.5425
48477.6236.1493-2464.79892937.09750.43050.47670.47670.5503
49-572.1271.7985-2599.94233143.53930.28230.44410.44410.557
501115.2307.3582-2740.43363355.150.30170.71420.71420.5627

\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[38]) \tabularnewline
37 & -1035.2 & - & - & - & - & - & - & - \tabularnewline
38 & 61.8 & - & - & - & - & - & - & - \tabularnewline
39 & -734.8 & 94.9959 & -1263.9242 & 1453.916 & 0.1157 & 0.5191 & 0.5191 & 0.5191 \tabularnewline
40 & -6.9 & -127.07 & -1670.6118 & 1416.4718 & 0.4394 & 0.7799 & 0.7799 & 0.4052 \tabularnewline
41 & -1061.1 & -20.6391 & -1654.8365 & 1613.5582 & 0.106 & 0.4934 & 0.4934 & 0.4606 \tabularnewline
42 & -854.6 & 46.986 & -1742.6807 & 1836.6527 & 0.1617 & 0.8875 & 0.8875 & 0.4935 \tabularnewline
43 & -186.5 & 54.1431 & -1883.2418 & 1991.528 & 0.4038 & 0.821 & 0.821 & 0.4969 \tabularnewline
44 & 244 & 89.9729 & -1984.5128 & 2164.4587 & 0.4421 & 0.603 & 0.603 & 0.5106 \tabularnewline
45 & -992.6 & 131.3876 & -2090.9213 & 2353.6965 & 0.1608 & 0.4604 & 0.4604 & 0.5245 \tabularnewline
46 & -335.2 & 164.9161 & -2212.1977 & 2542.0298 & 0.34 & 0.8301 & 0.8301 & 0.5339 \tabularnewline
47 & 316.8 & 199.7924 & -2336.2593 & 2735.8442 & 0.464 & 0.6604 & 0.6604 & 0.5425 \tabularnewline
48 & 477.6 & 236.1493 & -2464.7989 & 2937.0975 & 0.4305 & 0.4767 & 0.4767 & 0.5503 \tabularnewline
49 & -572.1 & 271.7985 & -2599.9423 & 3143.5393 & 0.2823 & 0.4441 & 0.4441 & 0.557 \tabularnewline
50 & 1115.2 & 307.3582 & -2740.4336 & 3355.15 & 0.3017 & 0.7142 & 0.7142 & 0.5627 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111279&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[38])[/C][/ROW]
[ROW][C]37[/C][C]-1035.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]38[/C][C]61.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]39[/C][C]-734.8[/C][C]94.9959[/C][C]-1263.9242[/C][C]1453.916[/C][C]0.1157[/C][C]0.5191[/C][C]0.5191[/C][C]0.5191[/C][/ROW]
[ROW][C]40[/C][C]-6.9[/C][C]-127.07[/C][C]-1670.6118[/C][C]1416.4718[/C][C]0.4394[/C][C]0.7799[/C][C]0.7799[/C][C]0.4052[/C][/ROW]
[ROW][C]41[/C][C]-1061.1[/C][C]-20.6391[/C][C]-1654.8365[/C][C]1613.5582[/C][C]0.106[/C][C]0.4934[/C][C]0.4934[/C][C]0.4606[/C][/ROW]
[ROW][C]42[/C][C]-854.6[/C][C]46.986[/C][C]-1742.6807[/C][C]1836.6527[/C][C]0.1617[/C][C]0.8875[/C][C]0.8875[/C][C]0.4935[/C][/ROW]
[ROW][C]43[/C][C]-186.5[/C][C]54.1431[/C][C]-1883.2418[/C][C]1991.528[/C][C]0.4038[/C][C]0.821[/C][C]0.821[/C][C]0.4969[/C][/ROW]
[ROW][C]44[/C][C]244[/C][C]89.9729[/C][C]-1984.5128[/C][C]2164.4587[/C][C]0.4421[/C][C]0.603[/C][C]0.603[/C][C]0.5106[/C][/ROW]
[ROW][C]45[/C][C]-992.6[/C][C]131.3876[/C][C]-2090.9213[/C][C]2353.6965[/C][C]0.1608[/C][C]0.4604[/C][C]0.4604[/C][C]0.5245[/C][/ROW]
[ROW][C]46[/C][C]-335.2[/C][C]164.9161[/C][C]-2212.1977[/C][C]2542.0298[/C][C]0.34[/C][C]0.8301[/C][C]0.8301[/C][C]0.5339[/C][/ROW]
[ROW][C]47[/C][C]316.8[/C][C]199.7924[/C][C]-2336.2593[/C][C]2735.8442[/C][C]0.464[/C][C]0.6604[/C][C]0.6604[/C][C]0.5425[/C][/ROW]
[ROW][C]48[/C][C]477.6[/C][C]236.1493[/C][C]-2464.7989[/C][C]2937.0975[/C][C]0.4305[/C][C]0.4767[/C][C]0.4767[/C][C]0.5503[/C][/ROW]
[ROW][C]49[/C][C]-572.1[/C][C]271.7985[/C][C]-2599.9423[/C][C]3143.5393[/C][C]0.2823[/C][C]0.4441[/C][C]0.4441[/C][C]0.557[/C][/ROW]
[ROW][C]50[/C][C]1115.2[/C][C]307.3582[/C][C]-2740.4336[/C][C]3355.15[/C][C]0.3017[/C][C]0.7142[/C][C]0.7142[/C][C]0.5627[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111279&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111279&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[38])
37-1035.2-------
3861.8-------
39-734.894.9959-1263.92421453.9160.11570.51910.51910.5191
40-6.9-127.07-1670.61181416.47180.43940.77990.77990.4052
41-1061.1-20.6391-1654.83651613.55820.1060.49340.49340.4606
42-854.646.986-1742.68071836.65270.16170.88750.88750.4935
43-186.554.1431-1883.24181991.5280.40380.8210.8210.4969
4424489.9729-1984.51282164.45870.44210.6030.6030.5106
45-992.6131.3876-2090.92132353.69650.16080.46040.46040.5245
46-335.2164.9161-2212.19772542.02980.340.83010.83010.5339
47316.8199.7924-2336.25932735.84420.4640.66040.66040.5425
48477.6236.1493-2464.79892937.09750.43050.47670.47670.5503
49-572.1271.7985-2599.94233143.53930.28230.44410.44410.557
501115.2307.3582-2740.43363355.150.30170.71420.71420.5627







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
397.2985-8.73510688561.289200
40-6.1975-0.94574.840414440.8353351501.0622592.8753
41-40.397850.412120.0311082558.8575595186.994771.4836
4219.4333-19.188419.8203812857.3218649604.5759805.9805
4318.2565-4.444616.745257909.1098531265.4827728.8796
4411.76371.711914.239623724.3346446675.2914668.3377
458.6297-8.554713.42751263348.0972563342.835750.5617
467.3541-3.032512.1281250116.0996524189.4931724.0093
476.47620.585610.845613690.7736467467.4132683.7159
485.83541.02249.863358298.4504426550.5169653.1084
495.3907-3.10499.2489712164.6619452515.4392672.6927
505.05922.62838.6972652608.3721469189.8502684.9743

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
39 & 7.2985 & -8.7351 & 0 & 688561.2892 & 0 & 0 \tabularnewline
40 & -6.1975 & -0.9457 & 4.8404 & 14440.8353 & 351501.0622 & 592.8753 \tabularnewline
41 & -40.3978 & 50.4121 & 20.031 & 1082558.8575 & 595186.994 & 771.4836 \tabularnewline
42 & 19.4333 & -19.1884 & 19.8203 & 812857.3218 & 649604.5759 & 805.9805 \tabularnewline
43 & 18.2565 & -4.4446 & 16.7452 & 57909.1098 & 531265.4827 & 728.8796 \tabularnewline
44 & 11.7637 & 1.7119 & 14.2396 & 23724.3346 & 446675.2914 & 668.3377 \tabularnewline
45 & 8.6297 & -8.5547 & 13.4275 & 1263348.0972 & 563342.835 & 750.5617 \tabularnewline
46 & 7.3541 & -3.0325 & 12.1281 & 250116.0996 & 524189.4931 & 724.0093 \tabularnewline
47 & 6.4762 & 0.5856 & 10.8456 & 13690.7736 & 467467.4132 & 683.7159 \tabularnewline
48 & 5.8354 & 1.0224 & 9.8633 & 58298.4504 & 426550.5169 & 653.1084 \tabularnewline
49 & 5.3907 & -3.1049 & 9.2489 & 712164.6619 & 452515.4392 & 672.6927 \tabularnewline
50 & 5.0592 & 2.6283 & 8.6972 & 652608.3721 & 469189.8502 & 684.9743 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111279&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]39[/C][C]7.2985[/C][C]-8.7351[/C][C]0[/C][C]688561.2892[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]40[/C][C]-6.1975[/C][C]-0.9457[/C][C]4.8404[/C][C]14440.8353[/C][C]351501.0622[/C][C]592.8753[/C][/ROW]
[ROW][C]41[/C][C]-40.3978[/C][C]50.4121[/C][C]20.031[/C][C]1082558.8575[/C][C]595186.994[/C][C]771.4836[/C][/ROW]
[ROW][C]42[/C][C]19.4333[/C][C]-19.1884[/C][C]19.8203[/C][C]812857.3218[/C][C]649604.5759[/C][C]805.9805[/C][/ROW]
[ROW][C]43[/C][C]18.2565[/C][C]-4.4446[/C][C]16.7452[/C][C]57909.1098[/C][C]531265.4827[/C][C]728.8796[/C][/ROW]
[ROW][C]44[/C][C]11.7637[/C][C]1.7119[/C][C]14.2396[/C][C]23724.3346[/C][C]446675.2914[/C][C]668.3377[/C][/ROW]
[ROW][C]45[/C][C]8.6297[/C][C]-8.5547[/C][C]13.4275[/C][C]1263348.0972[/C][C]563342.835[/C][C]750.5617[/C][/ROW]
[ROW][C]46[/C][C]7.3541[/C][C]-3.0325[/C][C]12.1281[/C][C]250116.0996[/C][C]524189.4931[/C][C]724.0093[/C][/ROW]
[ROW][C]47[/C][C]6.4762[/C][C]0.5856[/C][C]10.8456[/C][C]13690.7736[/C][C]467467.4132[/C][C]683.7159[/C][/ROW]
[ROW][C]48[/C][C]5.8354[/C][C]1.0224[/C][C]9.8633[/C][C]58298.4504[/C][C]426550.5169[/C][C]653.1084[/C][/ROW]
[ROW][C]49[/C][C]5.3907[/C][C]-3.1049[/C][C]9.2489[/C][C]712164.6619[/C][C]452515.4392[/C][C]672.6927[/C][/ROW]
[ROW][C]50[/C][C]5.0592[/C][C]2.6283[/C][C]8.6972[/C][C]652608.3721[/C][C]469189.8502[/C][C]684.9743[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111279&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111279&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
397.2985-8.73510688561.289200
40-6.1975-0.94574.840414440.8353351501.0622592.8753
41-40.397850.412120.0311082558.8575595186.994771.4836
4219.4333-19.188419.8203812857.3218649604.5759805.9805
4318.2565-4.444616.745257909.1098531265.4827728.8796
4411.76371.711914.239623724.3346446675.2914668.3377
458.6297-8.554713.42751263348.0972563342.835750.5617
467.3541-3.032512.1281250116.0996524189.4931724.0093
476.47620.585610.845613690.7736467467.4132683.7159
485.83541.02249.863358298.4504426550.5169653.1084
495.3907-3.10499.2489712164.6619452515.4392672.6927
505.05922.62838.6972652608.3721469189.8502684.9743



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