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:30:49 -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/t1229520725md3odfk440zf5e0.htm/, Retrieved Fri, 17 May 2024 04:42:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34337, Retrieved Fri, 17 May 2024 04:42:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact184
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] [Arima forecast vo...] [2008-12-17 13:30:49] [490fee4f334e2e025c95681783e3fd0b] [Current]
-   PD      [ARIMA Forecasting] [VAC Arima forecas...] [2008-12-23 15:33:48] [379d6c32f73e3218fd773d79e4063d07]
-  MP         [ARIMA Forecasting] [ARIMA Forecasting] [2010-01-23 19:30:38] [f1bd7399181c649098ca7b814ee0e027]
Feedback Forum

Post a new message
Dataseries X:
188,5
188,6
191,9
193,5
194,9
194,9
196,2
196,2
198
198,6
201,3
203,5
204,1
204,8
206,5
207,8
208,6
209,7
210
211,7
212,4
213,7
214,8
216,4
217,5
218,6
220,4
221,8
222,5
223,4
225,5
226,5
227,8
228,5
229,1
229,9
230,8
231,9
236
237,5




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34337&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]3 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=34337&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34337&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 time3 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[28])
24216.4-------
25217.5-------
26218.6-------
27220.4-------
28221.8-------
29222.5223.086221.5197224.66010.23280.945410.9454
30223.4224.1688221.8429226.51160.26010.918710.9762
31225.5225.4652222.0765228.890.49210.88140.99810.982
32226.5226.7508222.4709231.0880.45490.7140.98740.9874
33227.8227.7917222.4247233.24880.49880.67870.97130.9843
34228.5228.6918222.3564235.15240.47680.60660.94580.9817
35229.1230.0736222.74237.57460.39960.65950.8840.9847
36229.9231.1658222.9139239.62930.38470.68380.860.985
37230.8232.1542222.5619242.03240.39410.67270.80620.98
38231.9232.9751222.1419244.17290.42540.64830.78330.9748
39236234.0074221.821246.65490.37870.6280.77650.9707
40237.5234.9729221.5171248.99070.36190.44290.76090.9673

\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 & 216.4 & - & - & - & - & - & - & - \tabularnewline
25 & 217.5 & - & - & - & - & - & - & - \tabularnewline
26 & 218.6 & - & - & - & - & - & - & - \tabularnewline
27 & 220.4 & - & - & - & - & - & - & - \tabularnewline
28 & 221.8 & - & - & - & - & - & - & - \tabularnewline
29 & 222.5 & 223.086 & 221.5197 & 224.6601 & 0.2328 & 0.9454 & 1 & 0.9454 \tabularnewline
30 & 223.4 & 224.1688 & 221.8429 & 226.5116 & 0.2601 & 0.9187 & 1 & 0.9762 \tabularnewline
31 & 225.5 & 225.4652 & 222.0765 & 228.89 & 0.4921 & 0.8814 & 0.9981 & 0.982 \tabularnewline
32 & 226.5 & 226.7508 & 222.4709 & 231.088 & 0.4549 & 0.714 & 0.9874 & 0.9874 \tabularnewline
33 & 227.8 & 227.7917 & 222.4247 & 233.2488 & 0.4988 & 0.6787 & 0.9713 & 0.9843 \tabularnewline
34 & 228.5 & 228.6918 & 222.3564 & 235.1524 & 0.4768 & 0.6066 & 0.9458 & 0.9817 \tabularnewline
35 & 229.1 & 230.0736 & 222.74 & 237.5746 & 0.3996 & 0.6595 & 0.884 & 0.9847 \tabularnewline
36 & 229.9 & 231.1658 & 222.9139 & 239.6293 & 0.3847 & 0.6838 & 0.86 & 0.985 \tabularnewline
37 & 230.8 & 232.1542 & 222.5619 & 242.0324 & 0.3941 & 0.6727 & 0.8062 & 0.98 \tabularnewline
38 & 231.9 & 232.9751 & 222.1419 & 244.1729 & 0.4254 & 0.6483 & 0.7833 & 0.9748 \tabularnewline
39 & 236 & 234.0074 & 221.821 & 246.6549 & 0.3787 & 0.628 & 0.7765 & 0.9707 \tabularnewline
40 & 237.5 & 234.9729 & 221.5171 & 248.9907 & 0.3619 & 0.4429 & 0.7609 & 0.9673 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34337&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]216.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]25[/C][C]217.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]26[/C][C]218.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]27[/C][C]220.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]28[/C][C]221.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]29[/C][C]222.5[/C][C]223.086[/C][C]221.5197[/C][C]224.6601[/C][C]0.2328[/C][C]0.9454[/C][C]1[/C][C]0.9454[/C][/ROW]
[ROW][C]30[/C][C]223.4[/C][C]224.1688[/C][C]221.8429[/C][C]226.5116[/C][C]0.2601[/C][C]0.9187[/C][C]1[/C][C]0.9762[/C][/ROW]
[ROW][C]31[/C][C]225.5[/C][C]225.4652[/C][C]222.0765[/C][C]228.89[/C][C]0.4921[/C][C]0.8814[/C][C]0.9981[/C][C]0.982[/C][/ROW]
[ROW][C]32[/C][C]226.5[/C][C]226.7508[/C][C]222.4709[/C][C]231.088[/C][C]0.4549[/C][C]0.714[/C][C]0.9874[/C][C]0.9874[/C][/ROW]
[ROW][C]33[/C][C]227.8[/C][C]227.7917[/C][C]222.4247[/C][C]233.2488[/C][C]0.4988[/C][C]0.6787[/C][C]0.9713[/C][C]0.9843[/C][/ROW]
[ROW][C]34[/C][C]228.5[/C][C]228.6918[/C][C]222.3564[/C][C]235.1524[/C][C]0.4768[/C][C]0.6066[/C][C]0.9458[/C][C]0.9817[/C][/ROW]
[ROW][C]35[/C][C]229.1[/C][C]230.0736[/C][C]222.74[/C][C]237.5746[/C][C]0.3996[/C][C]0.6595[/C][C]0.884[/C][C]0.9847[/C][/ROW]
[ROW][C]36[/C][C]229.9[/C][C]231.1658[/C][C]222.9139[/C][C]239.6293[/C][C]0.3847[/C][C]0.6838[/C][C]0.86[/C][C]0.985[/C][/ROW]
[ROW][C]37[/C][C]230.8[/C][C]232.1542[/C][C]222.5619[/C][C]242.0324[/C][C]0.3941[/C][C]0.6727[/C][C]0.8062[/C][C]0.98[/C][/ROW]
[ROW][C]38[/C][C]231.9[/C][C]232.9751[/C][C]222.1419[/C][C]244.1729[/C][C]0.4254[/C][C]0.6483[/C][C]0.7833[/C][C]0.9748[/C][/ROW]
[ROW][C]39[/C][C]236[/C][C]234.0074[/C][C]221.821[/C][C]246.6549[/C][C]0.3787[/C][C]0.628[/C][C]0.7765[/C][C]0.9707[/C][/ROW]
[ROW][C]40[/C][C]237.5[/C][C]234.9729[/C][C]221.5171[/C][C]248.9907[/C][C]0.3619[/C][C]0.4429[/C][C]0.7609[/C][C]0.9673[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34337&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34337&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])
24216.4-------
25217.5-------
26218.6-------
27220.4-------
28221.8-------
29222.5223.086221.5197224.66010.23280.945410.9454
30223.4224.1688221.8429226.51160.26010.918710.9762
31225.5225.4652222.0765228.890.49210.88140.99810.982
32226.5226.7508222.4709231.0880.45490.7140.98740.9874
33227.8227.7917222.4247233.24880.49880.67870.97130.9843
34228.5228.6918222.3564235.15240.47680.60660.94580.9817
35229.1230.0736222.74237.57460.39960.65950.8840.9847
36229.9231.1658222.9139239.62930.38470.68380.860.985
37230.8232.1542222.5619242.03240.39410.67270.80620.98
38231.9232.9751222.1419244.17290.42540.64830.78330.9748
39236234.0074221.821246.65490.37870.6280.77650.9707
40237.5234.9729221.5171248.99070.36190.44290.76090.9673







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
290.0036-0.00262e-040.34340.02860.1692
300.0053-0.00343e-040.5910.04930.2219
310.00772e-0400.00121e-040.01
320.0098-0.00111e-040.06290.00520.0724
330.0122001e-0400.0024
340.0144-8e-041e-040.03680.00310.0554
350.0166-0.00424e-040.94790.0790.2811
360.0187-0.00555e-041.60230.13350.3654
370.0217-0.00585e-041.8340.15280.3909
380.0245-0.00464e-041.15590.09630.3104
390.02760.00857e-043.97050.33090.5752
400.03040.01089e-046.38610.53220.7295

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
29 & 0.0036 & -0.0026 & 2e-04 & 0.3434 & 0.0286 & 0.1692 \tabularnewline
30 & 0.0053 & -0.0034 & 3e-04 & 0.591 & 0.0493 & 0.2219 \tabularnewline
31 & 0.0077 & 2e-04 & 0 & 0.0012 & 1e-04 & 0.01 \tabularnewline
32 & 0.0098 & -0.0011 & 1e-04 & 0.0629 & 0.0052 & 0.0724 \tabularnewline
33 & 0.0122 & 0 & 0 & 1e-04 & 0 & 0.0024 \tabularnewline
34 & 0.0144 & -8e-04 & 1e-04 & 0.0368 & 0.0031 & 0.0554 \tabularnewline
35 & 0.0166 & -0.0042 & 4e-04 & 0.9479 & 0.079 & 0.2811 \tabularnewline
36 & 0.0187 & -0.0055 & 5e-04 & 1.6023 & 0.1335 & 0.3654 \tabularnewline
37 & 0.0217 & -0.0058 & 5e-04 & 1.834 & 0.1528 & 0.3909 \tabularnewline
38 & 0.0245 & -0.0046 & 4e-04 & 1.1559 & 0.0963 & 0.3104 \tabularnewline
39 & 0.0276 & 0.0085 & 7e-04 & 3.9705 & 0.3309 & 0.5752 \tabularnewline
40 & 0.0304 & 0.0108 & 9e-04 & 6.3861 & 0.5322 & 0.7295 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34337&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.0036[/C][C]-0.0026[/C][C]2e-04[/C][C]0.3434[/C][C]0.0286[/C][C]0.1692[/C][/ROW]
[ROW][C]30[/C][C]0.0053[/C][C]-0.0034[/C][C]3e-04[/C][C]0.591[/C][C]0.0493[/C][C]0.2219[/C][/ROW]
[ROW][C]31[/C][C]0.0077[/C][C]2e-04[/C][C]0[/C][C]0.0012[/C][C]1e-04[/C][C]0.01[/C][/ROW]
[ROW][C]32[/C][C]0.0098[/C][C]-0.0011[/C][C]1e-04[/C][C]0.0629[/C][C]0.0052[/C][C]0.0724[/C][/ROW]
[ROW][C]33[/C][C]0.0122[/C][C]0[/C][C]0[/C][C]1e-04[/C][C]0[/C][C]0.0024[/C][/ROW]
[ROW][C]34[/C][C]0.0144[/C][C]-8e-04[/C][C]1e-04[/C][C]0.0368[/C][C]0.0031[/C][C]0.0554[/C][/ROW]
[ROW][C]35[/C][C]0.0166[/C][C]-0.0042[/C][C]4e-04[/C][C]0.9479[/C][C]0.079[/C][C]0.2811[/C][/ROW]
[ROW][C]36[/C][C]0.0187[/C][C]-0.0055[/C][C]5e-04[/C][C]1.6023[/C][C]0.1335[/C][C]0.3654[/C][/ROW]
[ROW][C]37[/C][C]0.0217[/C][C]-0.0058[/C][C]5e-04[/C][C]1.834[/C][C]0.1528[/C][C]0.3909[/C][/ROW]
[ROW][C]38[/C][C]0.0245[/C][C]-0.0046[/C][C]4e-04[/C][C]1.1559[/C][C]0.0963[/C][C]0.3104[/C][/ROW]
[ROW][C]39[/C][C]0.0276[/C][C]0.0085[/C][C]7e-04[/C][C]3.9705[/C][C]0.3309[/C][C]0.5752[/C][/ROW]
[ROW][C]40[/C][C]0.0304[/C][C]0.0108[/C][C]9e-04[/C][C]6.3861[/C][C]0.5322[/C][C]0.7295[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34337&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34337&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.0036-0.00262e-040.34340.02860.1692
300.0053-0.00343e-040.5910.04930.2219
310.00772e-0400.00121e-040.01
320.0098-0.00111e-040.06290.00520.0724
330.0122001e-0400.0024
340.0144-8e-041e-040.03680.00310.0554
350.0166-0.00424e-040.94790.0790.2811
360.0187-0.00555e-041.60230.13350.3654
370.0217-0.00585e-041.8340.15280.3909
380.0245-0.00464e-041.15590.09630.3104
390.02760.00857e-043.97050.33090.5752
400.03040.01089e-046.38610.53220.7295



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