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 computationWed, 17 Dec 2008 06:28:40 -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/17/t1229520569bm9lnhc33na2jrj.htm/, Retrieved Sun, 19 May 2024 07:09:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34336, Retrieved Sun, 19 May 2024 07:09:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact176
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [VAC ARIMA forecas...] [2008-12-16 19:07:58] [379d6c32f73e3218fd773d79e4063d07]
-   PD    [ARIMA Forecasting] [VAC Arima forecas...] [2008-12-17 13:28:40] [490fee4f334e2e025c95681783e3fd0b] [Current]
-   P       [ARIMA Forecasting] [VAC Arima forecas...] [2008-12-23 15:27:49] [379d6c32f73e3218fd773d79e4063d07]
-  MP         [ARIMA Forecasting] [ARIMA Forecasting] [2010-01-23 19:29:11] [f1bd7399181c649098ca7b814ee0e027]
Feedback Forum

Post a new message
Dataseries X:
124.1
124.4
115.7
108.3
102.3
104.6
104
103.5
96
96.6
95.4
92.1
93
90.4
93.3
97.1
111
114.1
113.3
111
107.2
118.3
134.1
139
116.7
112.5
122.8
130
125.6
123.8
135.8
136.4
135.3
149.5
159.6
161.4
175.2
199.5
245
257.8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34336&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34336&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34336&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'George Udny Yule' @ 72.249.76.132







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[28])
24139-------
25116.7-------
26112.5-------
27122.8-------
28130-------
29125.6111.949295.5428128.35570.05150.01550.28520.0155
30123.8110.220383.1566137.28390.16270.13270.43440.076
31135.8121.084785.4903156.67920.20890.44060.46240.3117
32136.4127.808285.0911170.52540.34670.35690.45990.4599
33135.3109.608852.669166.54870.18830.17820.2910.2414
34149.5107.833537.0648178.60220.12430.22340.32920.2696
35159.6118.683535.6724201.69470.1670.23340.34310.3947
36161.4125.402531.5376219.26750.22610.23760.40920.4618
37175.2107.2017-3.0443217.44770.11340.16760.30870.3426
38199.5105.426-21.1525232.00440.07260.140.24750.3518
39245116.2758-25.3625257.91410.03740.12470.27440.4247
40257.8122.9948-32.4237278.41330.04460.06190.31410.4648

\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[28]) \tabularnewline
24 & 139 & - & - & - & - & - & - & - \tabularnewline
25 & 116.7 & - & - & - & - & - & - & - \tabularnewline
26 & 112.5 & - & - & - & - & - & - & - \tabularnewline
27 & 122.8 & - & - & - & - & - & - & - \tabularnewline
28 & 130 & - & - & - & - & - & - & - \tabularnewline
29 & 125.6 & 111.9492 & 95.5428 & 128.3557 & 0.0515 & 0.0155 & 0.2852 & 0.0155 \tabularnewline
30 & 123.8 & 110.2203 & 83.1566 & 137.2839 & 0.1627 & 0.1327 & 0.4344 & 0.076 \tabularnewline
31 & 135.8 & 121.0847 & 85.4903 & 156.6792 & 0.2089 & 0.4406 & 0.4624 & 0.3117 \tabularnewline
32 & 136.4 & 127.8082 & 85.0911 & 170.5254 & 0.3467 & 0.3569 & 0.4599 & 0.4599 \tabularnewline
33 & 135.3 & 109.6088 & 52.669 & 166.5487 & 0.1883 & 0.1782 & 0.291 & 0.2414 \tabularnewline
34 & 149.5 & 107.8335 & 37.0648 & 178.6022 & 0.1243 & 0.2234 & 0.3292 & 0.2696 \tabularnewline
35 & 159.6 & 118.6835 & 35.6724 & 201.6947 & 0.167 & 0.2334 & 0.3431 & 0.3947 \tabularnewline
36 & 161.4 & 125.4025 & 31.5376 & 219.2675 & 0.2261 & 0.2376 & 0.4092 & 0.4618 \tabularnewline
37 & 175.2 & 107.2017 & -3.0443 & 217.4477 & 0.1134 & 0.1676 & 0.3087 & 0.3426 \tabularnewline
38 & 199.5 & 105.426 & -21.1525 & 232.0044 & 0.0726 & 0.14 & 0.2475 & 0.3518 \tabularnewline
39 & 245 & 116.2758 & -25.3625 & 257.9141 & 0.0374 & 0.1247 & 0.2744 & 0.4247 \tabularnewline
40 & 257.8 & 122.9948 & -32.4237 & 278.4133 & 0.0446 & 0.0619 & 0.3141 & 0.4648 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34336&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[28])[/C][/ROW]
[ROW][C]24[/C][C]139[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]25[/C][C]116.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]26[/C][C]112.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]27[/C][C]122.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]28[/C][C]130[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]29[/C][C]125.6[/C][C]111.9492[/C][C]95.5428[/C][C]128.3557[/C][C]0.0515[/C][C]0.0155[/C][C]0.2852[/C][C]0.0155[/C][/ROW]
[ROW][C]30[/C][C]123.8[/C][C]110.2203[/C][C]83.1566[/C][C]137.2839[/C][C]0.1627[/C][C]0.1327[/C][C]0.4344[/C][C]0.076[/C][/ROW]
[ROW][C]31[/C][C]135.8[/C][C]121.0847[/C][C]85.4903[/C][C]156.6792[/C][C]0.2089[/C][C]0.4406[/C][C]0.4624[/C][C]0.3117[/C][/ROW]
[ROW][C]32[/C][C]136.4[/C][C]127.8082[/C][C]85.0911[/C][C]170.5254[/C][C]0.3467[/C][C]0.3569[/C][C]0.4599[/C][C]0.4599[/C][/ROW]
[ROW][C]33[/C][C]135.3[/C][C]109.6088[/C][C]52.669[/C][C]166.5487[/C][C]0.1883[/C][C]0.1782[/C][C]0.291[/C][C]0.2414[/C][/ROW]
[ROW][C]34[/C][C]149.5[/C][C]107.8335[/C][C]37.0648[/C][C]178.6022[/C][C]0.1243[/C][C]0.2234[/C][C]0.3292[/C][C]0.2696[/C][/ROW]
[ROW][C]35[/C][C]159.6[/C][C]118.6835[/C][C]35.6724[/C][C]201.6947[/C][C]0.167[/C][C]0.2334[/C][C]0.3431[/C][C]0.3947[/C][/ROW]
[ROW][C]36[/C][C]161.4[/C][C]125.4025[/C][C]31.5376[/C][C]219.2675[/C][C]0.2261[/C][C]0.2376[/C][C]0.4092[/C][C]0.4618[/C][/ROW]
[ROW][C]37[/C][C]175.2[/C][C]107.2017[/C][C]-3.0443[/C][C]217.4477[/C][C]0.1134[/C][C]0.1676[/C][C]0.3087[/C][C]0.3426[/C][/ROW]
[ROW][C]38[/C][C]199.5[/C][C]105.426[/C][C]-21.1525[/C][C]232.0044[/C][C]0.0726[/C][C]0.14[/C][C]0.2475[/C][C]0.3518[/C][/ROW]
[ROW][C]39[/C][C]245[/C][C]116.2758[/C][C]-25.3625[/C][C]257.9141[/C][C]0.0374[/C][C]0.1247[/C][C]0.2744[/C][C]0.4247[/C][/ROW]
[ROW][C]40[/C][C]257.8[/C][C]122.9948[/C][C]-32.4237[/C][C]278.4133[/C][C]0.0446[/C][C]0.0619[/C][C]0.3141[/C][C]0.4648[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34336&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34336&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[28])
24139-------
25116.7-------
26112.5-------
27122.8-------
28130-------
29125.6111.949295.5428128.35570.05150.01550.28520.0155
30123.8110.220383.1566137.28390.16270.13270.43440.076
31135.8121.084785.4903156.67920.20890.44060.46240.3117
32136.4127.808285.0911170.52540.34670.35690.45990.4599
33135.3109.608852.669166.54870.18830.17820.2910.2414
34149.5107.833537.0648178.60220.12430.22340.32920.2696
35159.6118.683535.6724201.69470.1670.23340.34310.3947
36161.4125.402531.5376219.26750.22610.23760.40920.4618
37175.2107.2017-3.0443217.44770.11340.16760.30870.3426
38199.5105.426-21.1525232.00440.07260.140.24750.3518
39245116.2758-25.3625257.91410.03740.12470.27440.4247
40257.8122.9948-32.4237278.41330.04460.06190.31410.4648







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
290.07480.12190.0102186.344115.52873.9406
300.12530.12320.0103184.409315.36743.9201
310.150.12150.0101216.53918.04494.2479
320.17050.06720.005673.81846.15152.4802
330.2650.23440.0195660.036655.00317.4164
340.33480.38640.03221736.0956144.674612.0281
350.35690.34480.02871674.1571139.513111.8116
360.38190.28710.02391295.8181107.984810.3916
370.52470.63430.05294623.7679385.31419.6294
380.61260.89230.07448849.924737.493727.1568
390.62151.10710.092316569.90861380.825737.1595
400.64471.0960.091318172.44411514.370338.9149

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
29 & 0.0748 & 0.1219 & 0.0102 & 186.3441 & 15.5287 & 3.9406 \tabularnewline
30 & 0.1253 & 0.1232 & 0.0103 & 184.4093 & 15.3674 & 3.9201 \tabularnewline
31 & 0.15 & 0.1215 & 0.0101 & 216.539 & 18.0449 & 4.2479 \tabularnewline
32 & 0.1705 & 0.0672 & 0.0056 & 73.8184 & 6.1515 & 2.4802 \tabularnewline
33 & 0.265 & 0.2344 & 0.0195 & 660.0366 & 55.0031 & 7.4164 \tabularnewline
34 & 0.3348 & 0.3864 & 0.0322 & 1736.0956 & 144.6746 & 12.0281 \tabularnewline
35 & 0.3569 & 0.3448 & 0.0287 & 1674.1571 & 139.5131 & 11.8116 \tabularnewline
36 & 0.3819 & 0.2871 & 0.0239 & 1295.8181 & 107.9848 & 10.3916 \tabularnewline
37 & 0.5247 & 0.6343 & 0.0529 & 4623.7679 & 385.314 & 19.6294 \tabularnewline
38 & 0.6126 & 0.8923 & 0.0744 & 8849.924 & 737.4937 & 27.1568 \tabularnewline
39 & 0.6215 & 1.1071 & 0.0923 & 16569.9086 & 1380.8257 & 37.1595 \tabularnewline
40 & 0.6447 & 1.096 & 0.0913 & 18172.4441 & 1514.3703 & 38.9149 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34336&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]29[/C][C]0.0748[/C][C]0.1219[/C][C]0.0102[/C][C]186.3441[/C][C]15.5287[/C][C]3.9406[/C][/ROW]
[ROW][C]30[/C][C]0.1253[/C][C]0.1232[/C][C]0.0103[/C][C]184.4093[/C][C]15.3674[/C][C]3.9201[/C][/ROW]
[ROW][C]31[/C][C]0.15[/C][C]0.1215[/C][C]0.0101[/C][C]216.539[/C][C]18.0449[/C][C]4.2479[/C][/ROW]
[ROW][C]32[/C][C]0.1705[/C][C]0.0672[/C][C]0.0056[/C][C]73.8184[/C][C]6.1515[/C][C]2.4802[/C][/ROW]
[ROW][C]33[/C][C]0.265[/C][C]0.2344[/C][C]0.0195[/C][C]660.0366[/C][C]55.0031[/C][C]7.4164[/C][/ROW]
[ROW][C]34[/C][C]0.3348[/C][C]0.3864[/C][C]0.0322[/C][C]1736.0956[/C][C]144.6746[/C][C]12.0281[/C][/ROW]
[ROW][C]35[/C][C]0.3569[/C][C]0.3448[/C][C]0.0287[/C][C]1674.1571[/C][C]139.5131[/C][C]11.8116[/C][/ROW]
[ROW][C]36[/C][C]0.3819[/C][C]0.2871[/C][C]0.0239[/C][C]1295.8181[/C][C]107.9848[/C][C]10.3916[/C][/ROW]
[ROW][C]37[/C][C]0.5247[/C][C]0.6343[/C][C]0.0529[/C][C]4623.7679[/C][C]385.314[/C][C]19.6294[/C][/ROW]
[ROW][C]38[/C][C]0.6126[/C][C]0.8923[/C][C]0.0744[/C][C]8849.924[/C][C]737.4937[/C][C]27.1568[/C][/ROW]
[ROW][C]39[/C][C]0.6215[/C][C]1.1071[/C][C]0.0923[/C][C]16569.9086[/C][C]1380.8257[/C][C]37.1595[/C][/ROW]
[ROW][C]40[/C][C]0.6447[/C][C]1.096[/C][C]0.0913[/C][C]18172.4441[/C][C]1514.3703[/C][C]38.9149[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34336&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34336&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
290.07480.12190.0102186.344115.52873.9406
300.12530.12320.0103184.409315.36743.9201
310.150.12150.0101216.53918.04494.2479
320.17050.06720.005673.81846.15152.4802
330.2650.23440.0195660.036655.00317.4164
340.33480.38640.03221736.0956144.674612.0281
350.35690.34480.02871674.1571139.513111.8116
360.38190.28710.02391295.8181107.984810.3916
370.52470.63430.05294623.7679385.31419.6294
380.61260.89230.07448849.924737.493727.1568
390.62151.10710.092316569.90861380.825737.1595
400.64471.0960.091318172.44411514.370338.9149



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