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, 23 Jan 2010 12:29:11 -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/2010/Jan/23/t1264274983jzz3j34t2mey5v3.htm/, Retrieved Sun, 05 May 2024 06:18:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=72392, Retrieved Sun, 05 May 2024 06:18:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact193
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] [379d6c32f73e3218fd773d79e4063d07]
-   P     [ARIMA Forecasting] [VAC Arima forecas...] [2008-12-23 15:27:49] [379d6c32f73e3218fd773d79e4063d07]
-  MP         [ARIMA Forecasting] [ARIMA Forecasting] [2010-01-23 19:29:11] [f32a893c5a60da9308cd5d37e6977c4f] [Current]
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'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=72392&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=72392&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72392&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[28])
24139-------
25116.7-------
26112.5-------
27122.8-------
28130-------
29125.6125.0128111.1876140.36650.47010.26220.85570.2622
30123.8119.228197.0372145.88620.36840.31970.68960.2142
31135.8120.632691.0878158.53870.21640.4350.45540.3141
32136.4122.865587.0072171.51610.29280.30110.38690.3869
33135.3128.487982.3837196.63840.42230.410.53310.4827
34149.5132.264176.6743221.81360.3530.47350.57350.5198
35159.6136.380472.0728248.3830.34220.40920.50410.5445
36161.4137.002266.4569268.97430.35850.36860.50360.5414
37175.2132.776259.225280.24110.28640.35180.48660.5147
38199.5137.889457.1882309.61350.2410.33510.44730.5359
39245148.541757.7977351.890.17630.31170.45760.5709
40257.8152.480755.6632380.86260.1830.21360.46950.5765

\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 & 125.0128 & 111.1876 & 140.3665 & 0.4701 & 0.2622 & 0.8557 & 0.2622 \tabularnewline
30 & 123.8 & 119.2281 & 97.0372 & 145.8862 & 0.3684 & 0.3197 & 0.6896 & 0.2142 \tabularnewline
31 & 135.8 & 120.6326 & 91.0878 & 158.5387 & 0.2164 & 0.435 & 0.4554 & 0.3141 \tabularnewline
32 & 136.4 & 122.8655 & 87.0072 & 171.5161 & 0.2928 & 0.3011 & 0.3869 & 0.3869 \tabularnewline
33 & 135.3 & 128.4879 & 82.3837 & 196.6384 & 0.4223 & 0.41 & 0.5331 & 0.4827 \tabularnewline
34 & 149.5 & 132.2641 & 76.6743 & 221.8136 & 0.353 & 0.4735 & 0.5735 & 0.5198 \tabularnewline
35 & 159.6 & 136.3804 & 72.0728 & 248.383 & 0.3422 & 0.4092 & 0.5041 & 0.5445 \tabularnewline
36 & 161.4 & 137.0022 & 66.4569 & 268.9743 & 0.3585 & 0.3686 & 0.5036 & 0.5414 \tabularnewline
37 & 175.2 & 132.7762 & 59.225 & 280.2411 & 0.2864 & 0.3518 & 0.4866 & 0.5147 \tabularnewline
38 & 199.5 & 137.8894 & 57.1882 & 309.6135 & 0.241 & 0.3351 & 0.4473 & 0.5359 \tabularnewline
39 & 245 & 148.5417 & 57.7977 & 351.89 & 0.1763 & 0.3117 & 0.4576 & 0.5709 \tabularnewline
40 & 257.8 & 152.4807 & 55.6632 & 380.8626 & 0.183 & 0.2136 & 0.4695 & 0.5765 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=72392&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]125.0128[/C][C]111.1876[/C][C]140.3665[/C][C]0.4701[/C][C]0.2622[/C][C]0.8557[/C][C]0.2622[/C][/ROW]
[ROW][C]30[/C][C]123.8[/C][C]119.2281[/C][C]97.0372[/C][C]145.8862[/C][C]0.3684[/C][C]0.3197[/C][C]0.6896[/C][C]0.2142[/C][/ROW]
[ROW][C]31[/C][C]135.8[/C][C]120.6326[/C][C]91.0878[/C][C]158.5387[/C][C]0.2164[/C][C]0.435[/C][C]0.4554[/C][C]0.3141[/C][/ROW]
[ROW][C]32[/C][C]136.4[/C][C]122.8655[/C][C]87.0072[/C][C]171.5161[/C][C]0.2928[/C][C]0.3011[/C][C]0.3869[/C][C]0.3869[/C][/ROW]
[ROW][C]33[/C][C]135.3[/C][C]128.4879[/C][C]82.3837[/C][C]196.6384[/C][C]0.4223[/C][C]0.41[/C][C]0.5331[/C][C]0.4827[/C][/ROW]
[ROW][C]34[/C][C]149.5[/C][C]132.2641[/C][C]76.6743[/C][C]221.8136[/C][C]0.353[/C][C]0.4735[/C][C]0.5735[/C][C]0.5198[/C][/ROW]
[ROW][C]35[/C][C]159.6[/C][C]136.3804[/C][C]72.0728[/C][C]248.383[/C][C]0.3422[/C][C]0.4092[/C][C]0.5041[/C][C]0.5445[/C][/ROW]
[ROW][C]36[/C][C]161.4[/C][C]137.0022[/C][C]66.4569[/C][C]268.9743[/C][C]0.3585[/C][C]0.3686[/C][C]0.5036[/C][C]0.5414[/C][/ROW]
[ROW][C]37[/C][C]175.2[/C][C]132.7762[/C][C]59.225[/C][C]280.2411[/C][C]0.2864[/C][C]0.3518[/C][C]0.4866[/C][C]0.5147[/C][/ROW]
[ROW][C]38[/C][C]199.5[/C][C]137.8894[/C][C]57.1882[/C][C]309.6135[/C][C]0.241[/C][C]0.3351[/C][C]0.4473[/C][C]0.5359[/C][/ROW]
[ROW][C]39[/C][C]245[/C][C]148.5417[/C][C]57.7977[/C][C]351.89[/C][C]0.1763[/C][C]0.3117[/C][C]0.4576[/C][C]0.5709[/C][/ROW]
[ROW][C]40[/C][C]257.8[/C][C]152.4807[/C][C]55.6632[/C][C]380.8626[/C][C]0.183[/C][C]0.2136[/C][C]0.4695[/C][C]0.5765[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=72392&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72392&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.6125.0128111.1876140.36650.47010.26220.85570.2622
30123.8119.228197.0372145.88620.36840.31970.68960.2142
31135.8120.632691.0878158.53870.21640.4350.45540.3141
32136.4122.865587.0072171.51610.29280.30110.38690.3869
33135.3128.487982.3837196.63840.42230.410.53310.4827
34149.5132.264176.6743221.81360.3530.47350.57350.5198
35159.6136.380472.0728248.3830.34220.40920.50410.5445
36161.4137.002266.4569268.97430.35850.36860.50360.5414
37175.2132.776259.225280.24110.28640.35180.48660.5147
38199.5137.889457.1882309.61350.2410.33510.44730.5359
39245148.541757.7977351.890.17630.31170.45760.5709
40257.8152.480755.6632380.86260.1830.21360.46950.5765







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
290.06270.00474e-040.34480.02870.1695
300.11410.03830.003220.90221.74181.3198
310.16030.12570.0105230.048819.17074.3784
320.2020.11020.0092183.182715.26523.9071
330.27060.0530.004446.40423.8671.9665
340.34540.13030.0109297.075524.75634.9756
350.4190.17030.0142539.148344.9296.7029
360.49150.17810.0148595.253449.60447.043
370.56660.31950.02661799.7751149.981312.2467
380.63540.44680.03723795.8685316.322417.7855
390.69850.64940.05419304.2071775.350627.8451
400.76420.69070.057611092.1595924.346630.4031

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
29 & 0.0627 & 0.0047 & 4e-04 & 0.3448 & 0.0287 & 0.1695 \tabularnewline
30 & 0.1141 & 0.0383 & 0.0032 & 20.9022 & 1.7418 & 1.3198 \tabularnewline
31 & 0.1603 & 0.1257 & 0.0105 & 230.0488 & 19.1707 & 4.3784 \tabularnewline
32 & 0.202 & 0.1102 & 0.0092 & 183.1827 & 15.2652 & 3.9071 \tabularnewline
33 & 0.2706 & 0.053 & 0.0044 & 46.4042 & 3.867 & 1.9665 \tabularnewline
34 & 0.3454 & 0.1303 & 0.0109 & 297.0755 & 24.7563 & 4.9756 \tabularnewline
35 & 0.419 & 0.1703 & 0.0142 & 539.1483 & 44.929 & 6.7029 \tabularnewline
36 & 0.4915 & 0.1781 & 0.0148 & 595.2534 & 49.6044 & 7.043 \tabularnewline
37 & 0.5666 & 0.3195 & 0.0266 & 1799.7751 & 149.9813 & 12.2467 \tabularnewline
38 & 0.6354 & 0.4468 & 0.0372 & 3795.8685 & 316.3224 & 17.7855 \tabularnewline
39 & 0.6985 & 0.6494 & 0.0541 & 9304.2071 & 775.3506 & 27.8451 \tabularnewline
40 & 0.7642 & 0.6907 & 0.0576 & 11092.1595 & 924.3466 & 30.4031 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=72392&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.0627[/C][C]0.0047[/C][C]4e-04[/C][C]0.3448[/C][C]0.0287[/C][C]0.1695[/C][/ROW]
[ROW][C]30[/C][C]0.1141[/C][C]0.0383[/C][C]0.0032[/C][C]20.9022[/C][C]1.7418[/C][C]1.3198[/C][/ROW]
[ROW][C]31[/C][C]0.1603[/C][C]0.1257[/C][C]0.0105[/C][C]230.0488[/C][C]19.1707[/C][C]4.3784[/C][/ROW]
[ROW][C]32[/C][C]0.202[/C][C]0.1102[/C][C]0.0092[/C][C]183.1827[/C][C]15.2652[/C][C]3.9071[/C][/ROW]
[ROW][C]33[/C][C]0.2706[/C][C]0.053[/C][C]0.0044[/C][C]46.4042[/C][C]3.867[/C][C]1.9665[/C][/ROW]
[ROW][C]34[/C][C]0.3454[/C][C]0.1303[/C][C]0.0109[/C][C]297.0755[/C][C]24.7563[/C][C]4.9756[/C][/ROW]
[ROW][C]35[/C][C]0.419[/C][C]0.1703[/C][C]0.0142[/C][C]539.1483[/C][C]44.929[/C][C]6.7029[/C][/ROW]
[ROW][C]36[/C][C]0.4915[/C][C]0.1781[/C][C]0.0148[/C][C]595.2534[/C][C]49.6044[/C][C]7.043[/C][/ROW]
[ROW][C]37[/C][C]0.5666[/C][C]0.3195[/C][C]0.0266[/C][C]1799.7751[/C][C]149.9813[/C][C]12.2467[/C][/ROW]
[ROW][C]38[/C][C]0.6354[/C][C]0.4468[/C][C]0.0372[/C][C]3795.8685[/C][C]316.3224[/C][C]17.7855[/C][/ROW]
[ROW][C]39[/C][C]0.6985[/C][C]0.6494[/C][C]0.0541[/C][C]9304.2071[/C][C]775.3506[/C][C]27.8451[/C][/ROW]
[ROW][C]40[/C][C]0.7642[/C][C]0.6907[/C][C]0.0576[/C][C]11092.1595[/C][C]924.3466[/C][C]30.4031[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=72392&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72392&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.06270.00474e-040.34480.02870.1695
300.11410.03830.003220.90221.74181.3198
310.16030.12570.0105230.048819.17074.3784
320.2020.11020.0092183.182715.26523.9071
330.27060.0530.004446.40423.8671.9665
340.34540.13030.0109297.075524.75634.9756
350.4190.17030.0142539.148344.9296.7029
360.49150.17810.0148595.253449.60447.043
370.56660.31950.02661799.7751149.981312.2467
380.63540.44680.03723795.8685316.322417.7855
390.69850.64940.05419304.2071775.350627.8451
400.76420.69070.057611092.1595924.346630.4031



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