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:30:38 -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/t12642750677ldvadxp123sqmc.htm/, Retrieved Sun, 05 May 2024 00:31:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=72393, Retrieved Sun, 05 May 2024 00:31:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact166
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] [379d6c32f73e3218fd773d79e4063d07]
-   PD    [ARIMA Forecasting] [VAC Arima forecas...] [2008-12-23 15:33:48] [379d6c32f73e3218fd773d79e4063d07]
-  MP         [ARIMA Forecasting] [ARIMA Forecasting] [2010-01-23 19:30:38] [f32a893c5a60da9308cd5d37e6977c4f] [Current]
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 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=72393&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=72393&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72393&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])
24216.4-------
25217.5-------
26218.6-------
27220.4-------
28221.8-------
29222.5223.0667221.6189224.51350.22130.956910.9569
30223.4224.1385221.9779226.2970.25120.931610.9831
31225.5225.4052222.2591228.54680.47640.89450.99910.9877
32226.5226.6538222.6777230.62310.46970.71560.99170.9917
33227.8227.6583222.6624232.64330.47780.67560.97870.9894
34228.5228.5308222.6217234.42460.49590.5960.9560.9874
35229.1229.845223.0076236.6620.41520.65050.89420.9896
36229.9230.8904223.1952238.56010.40010.67640.86910.9899
37230.8231.8203222.8904240.71590.41110.66390.81210.9864
38231.9232.5984222.516242.63730.44580.63730.78820.9825
39236233.5645222.2405244.83380.33590.61390.78130.9796
40237.5234.463221.9706246.88920.3160.40420.76420.9771

\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.0667 & 221.6189 & 224.5135 & 0.2213 & 0.9569 & 1 & 0.9569 \tabularnewline
30 & 223.4 & 224.1385 & 221.9779 & 226.297 & 0.2512 & 0.9316 & 1 & 0.9831 \tabularnewline
31 & 225.5 & 225.4052 & 222.2591 & 228.5468 & 0.4764 & 0.8945 & 0.9991 & 0.9877 \tabularnewline
32 & 226.5 & 226.6538 & 222.6777 & 230.6231 & 0.4697 & 0.7156 & 0.9917 & 0.9917 \tabularnewline
33 & 227.8 & 227.6583 & 222.6624 & 232.6433 & 0.4778 & 0.6756 & 0.9787 & 0.9894 \tabularnewline
34 & 228.5 & 228.5308 & 222.6217 & 234.4246 & 0.4959 & 0.596 & 0.956 & 0.9874 \tabularnewline
35 & 229.1 & 229.845 & 223.0076 & 236.662 & 0.4152 & 0.6505 & 0.8942 & 0.9896 \tabularnewline
36 & 229.9 & 230.8904 & 223.1952 & 238.5601 & 0.4001 & 0.6764 & 0.8691 & 0.9899 \tabularnewline
37 & 230.8 & 231.8203 & 222.8904 & 240.7159 & 0.4111 & 0.6639 & 0.8121 & 0.9864 \tabularnewline
38 & 231.9 & 232.5984 & 222.516 & 242.6373 & 0.4458 & 0.6373 & 0.7882 & 0.9825 \tabularnewline
39 & 236 & 233.5645 & 222.2405 & 244.8338 & 0.3359 & 0.6139 & 0.7813 & 0.9796 \tabularnewline
40 & 237.5 & 234.463 & 221.9706 & 246.8892 & 0.316 & 0.4042 & 0.7642 & 0.9771 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=72393&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.0667[/C][C]221.6189[/C][C]224.5135[/C][C]0.2213[/C][C]0.9569[/C][C]1[/C][C]0.9569[/C][/ROW]
[ROW][C]30[/C][C]223.4[/C][C]224.1385[/C][C]221.9779[/C][C]226.297[/C][C]0.2512[/C][C]0.9316[/C][C]1[/C][C]0.9831[/C][/ROW]
[ROW][C]31[/C][C]225.5[/C][C]225.4052[/C][C]222.2591[/C][C]228.5468[/C][C]0.4764[/C][C]0.8945[/C][C]0.9991[/C][C]0.9877[/C][/ROW]
[ROW][C]32[/C][C]226.5[/C][C]226.6538[/C][C]222.6777[/C][C]230.6231[/C][C]0.4697[/C][C]0.7156[/C][C]0.9917[/C][C]0.9917[/C][/ROW]
[ROW][C]33[/C][C]227.8[/C][C]227.6583[/C][C]222.6624[/C][C]232.6433[/C][C]0.4778[/C][C]0.6756[/C][C]0.9787[/C][C]0.9894[/C][/ROW]
[ROW][C]34[/C][C]228.5[/C][C]228.5308[/C][C]222.6217[/C][C]234.4246[/C][C]0.4959[/C][C]0.596[/C][C]0.956[/C][C]0.9874[/C][/ROW]
[ROW][C]35[/C][C]229.1[/C][C]229.845[/C][C]223.0076[/C][C]236.662[/C][C]0.4152[/C][C]0.6505[/C][C]0.8942[/C][C]0.9896[/C][/ROW]
[ROW][C]36[/C][C]229.9[/C][C]230.8904[/C][C]223.1952[/C][C]238.5601[/C][C]0.4001[/C][C]0.6764[/C][C]0.8691[/C][C]0.9899[/C][/ROW]
[ROW][C]37[/C][C]230.8[/C][C]231.8203[/C][C]222.8904[/C][C]240.7159[/C][C]0.4111[/C][C]0.6639[/C][C]0.8121[/C][C]0.9864[/C][/ROW]
[ROW][C]38[/C][C]231.9[/C][C]232.5984[/C][C]222.516[/C][C]242.6373[/C][C]0.4458[/C][C]0.6373[/C][C]0.7882[/C][C]0.9825[/C][/ROW]
[ROW][C]39[/C][C]236[/C][C]233.5645[/C][C]222.2405[/C][C]244.8338[/C][C]0.3359[/C][C]0.6139[/C][C]0.7813[/C][C]0.9796[/C][/ROW]
[ROW][C]40[/C][C]237.5[/C][C]234.463[/C][C]221.9706[/C][C]246.8892[/C][C]0.316[/C][C]0.4042[/C][C]0.7642[/C][C]0.9771[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=72393&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72393&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.0667221.6189224.51350.22130.956910.9569
30223.4224.1385221.9779226.2970.25120.931610.9831
31225.5225.4052222.2591228.54680.47640.89450.99910.9877
32226.5226.6538222.6777230.62310.46970.71560.99170.9917
33227.8227.6583222.6624232.64330.47780.67560.97870.9894
34228.5228.5308222.6217234.42460.49590.5960.9560.9874
35229.1229.845223.0076236.6620.41520.65050.89420.9896
36229.9230.8904223.1952238.56010.40010.67640.86910.9899
37230.8231.8203222.8904240.71590.41110.66390.81210.9864
38231.9232.5984222.516242.63730.44580.63730.78820.9825
39236233.5645222.2405244.83380.33590.61390.78130.9796
40237.5234.463221.9706246.88920.3160.40420.76420.9771







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
290.0033-0.00252e-040.32110.02680.1636
300.0049-0.00333e-040.54540.04540.2132
310.00714e-0400.0097e-040.0274
320.0089-7e-041e-040.02370.0020.0444
330.01126e-041e-040.02010.00170.0409
340.0132-1e-0409e-041e-040.0089
350.0151-0.00323e-040.5550.04620.2151
360.0169-0.00434e-040.98090.08170.2859
370.0196-0.00444e-041.04110.08680.2945
380.022-0.0033e-040.48780.04060.2016
390.02460.01049e-045.93160.49430.7031
400.0270.0130.00119.22340.76860.8767

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
29 & 0.0033 & -0.0025 & 2e-04 & 0.3211 & 0.0268 & 0.1636 \tabularnewline
30 & 0.0049 & -0.0033 & 3e-04 & 0.5454 & 0.0454 & 0.2132 \tabularnewline
31 & 0.0071 & 4e-04 & 0 & 0.009 & 7e-04 & 0.0274 \tabularnewline
32 & 0.0089 & -7e-04 & 1e-04 & 0.0237 & 0.002 & 0.0444 \tabularnewline
33 & 0.0112 & 6e-04 & 1e-04 & 0.0201 & 0.0017 & 0.0409 \tabularnewline
34 & 0.0132 & -1e-04 & 0 & 9e-04 & 1e-04 & 0.0089 \tabularnewline
35 & 0.0151 & -0.0032 & 3e-04 & 0.555 & 0.0462 & 0.2151 \tabularnewline
36 & 0.0169 & -0.0043 & 4e-04 & 0.9809 & 0.0817 & 0.2859 \tabularnewline
37 & 0.0196 & -0.0044 & 4e-04 & 1.0411 & 0.0868 & 0.2945 \tabularnewline
38 & 0.022 & -0.003 & 3e-04 & 0.4878 & 0.0406 & 0.2016 \tabularnewline
39 & 0.0246 & 0.0104 & 9e-04 & 5.9316 & 0.4943 & 0.7031 \tabularnewline
40 & 0.027 & 0.013 & 0.0011 & 9.2234 & 0.7686 & 0.8767 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=72393&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.0033[/C][C]-0.0025[/C][C]2e-04[/C][C]0.3211[/C][C]0.0268[/C][C]0.1636[/C][/ROW]
[ROW][C]30[/C][C]0.0049[/C][C]-0.0033[/C][C]3e-04[/C][C]0.5454[/C][C]0.0454[/C][C]0.2132[/C][/ROW]
[ROW][C]31[/C][C]0.0071[/C][C]4e-04[/C][C]0[/C][C]0.009[/C][C]7e-04[/C][C]0.0274[/C][/ROW]
[ROW][C]32[/C][C]0.0089[/C][C]-7e-04[/C][C]1e-04[/C][C]0.0237[/C][C]0.002[/C][C]0.0444[/C][/ROW]
[ROW][C]33[/C][C]0.0112[/C][C]6e-04[/C][C]1e-04[/C][C]0.0201[/C][C]0.0017[/C][C]0.0409[/C][/ROW]
[ROW][C]34[/C][C]0.0132[/C][C]-1e-04[/C][C]0[/C][C]9e-04[/C][C]1e-04[/C][C]0.0089[/C][/ROW]
[ROW][C]35[/C][C]0.0151[/C][C]-0.0032[/C][C]3e-04[/C][C]0.555[/C][C]0.0462[/C][C]0.2151[/C][/ROW]
[ROW][C]36[/C][C]0.0169[/C][C]-0.0043[/C][C]4e-04[/C][C]0.9809[/C][C]0.0817[/C][C]0.2859[/C][/ROW]
[ROW][C]37[/C][C]0.0196[/C][C]-0.0044[/C][C]4e-04[/C][C]1.0411[/C][C]0.0868[/C][C]0.2945[/C][/ROW]
[ROW][C]38[/C][C]0.022[/C][C]-0.003[/C][C]3e-04[/C][C]0.4878[/C][C]0.0406[/C][C]0.2016[/C][/ROW]
[ROW][C]39[/C][C]0.0246[/C][C]0.0104[/C][C]9e-04[/C][C]5.9316[/C][C]0.4943[/C][C]0.7031[/C][/ROW]
[ROW][C]40[/C][C]0.027[/C][C]0.013[/C][C]0.0011[/C][C]9.2234[/C][C]0.7686[/C][C]0.8767[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=72393&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=72393&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.0033-0.00252e-040.32110.02680.1636
300.0049-0.00333e-040.54540.04540.2132
310.00714e-0400.0097e-040.0274
320.0089-7e-041e-040.02370.0020.0444
330.01126e-041e-040.02010.00170.0409
340.0132-1e-0409e-041e-040.0089
350.0151-0.00323e-040.5550.04620.2151
360.0169-0.00434e-040.98090.08170.2859
370.0196-0.00444e-041.04110.08680.2945
380.022-0.0033e-040.48780.04060.2016
390.02460.01049e-045.93160.49430.7031
400.0270.0130.00119.22340.76860.8767



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 = 1.1 ; 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')