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, 10 Dec 2009 08:18:07 -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/2009/Dec/10/t1260458387zj7mfs8exl03aj0.htm/, Retrieved Sat, 20 Apr 2024 05:57:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65460, Retrieved Sat, 20 Apr 2024 05:57:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [ARIMA Backward Selection] [] [2009-11-27 14:53:14] [b98453cac15ba1066b407e146608df68]
-   PD    [ARIMA Backward Selection] [Workshop 9: ARIMA...] [2009-12-02 17:37:24] [b00a5c3d5f6ccb867aa9e2de58adfa61]
- RMP       [ARIMA Forecasting] [WS 10: Forecasting] [2009-12-10 14:58:18] [b00a5c3d5f6ccb867aa9e2de58adfa61]
-   P           [ARIMA Forecasting] [WS 10: Forecast t...] [2009-12-10 15:18:07] [63d6214c2814604a6f6cfa44dba5912e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.1
7.7
7.5
7.6
7.8
7.8
7.8
7.5
7.5
7.1
7.5
7.5
7.6
7.7
7.7
7.9
8.1
8.2
8.2
8.2
7.9
7.3
6.9
6.6
6.7
6.9
7.0
7.1
7.2
7.1
6.9
7.0
6.8
6.4
6.7
6.6
6.4
6.3
6.2
6.5
6.8
6.8
6.4
6.1
5.8
6.1
7.2
7.3
6.9
6.1
5.8
6.2
7.1
7.7
7.9
7.7
7.4
7.5
8.0
8.1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65460&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]5 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=65460&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65460&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 time5 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[51])
396.2-------
406.5-------
416.8-------
426.8-------
436.4-------
446.1-------
455.8-------
466.1-------
477.2-------
487.3-------
496.9-------
506.1-------
515.8-------
526.26.10235.67676.52780.32630.91810.03350.9181
537.16.65585.94557.36620.11020.89570.34540.9909
547.76.92176.01317.83040.04660.35030.60360.9922
557.96.72075.74297.69850.0090.02480.73980.9675
567.76.32365.31937.32790.00360.0010.66870.8466
577.45.99974.97377.02570.00376e-040.64860.6486
587.56.2195.14727.29080.00960.01540.58610.7782
5986.77125.62597.91650.01770.10620.23150.9517
608.16.92175.69768.14570.02960.04210.27230.9638

\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[51]) \tabularnewline
39 & 6.2 & - & - & - & - & - & - & - \tabularnewline
40 & 6.5 & - & - & - & - & - & - & - \tabularnewline
41 & 6.8 & - & - & - & - & - & - & - \tabularnewline
42 & 6.8 & - & - & - & - & - & - & - \tabularnewline
43 & 6.4 & - & - & - & - & - & - & - \tabularnewline
44 & 6.1 & - & - & - & - & - & - & - \tabularnewline
45 & 5.8 & - & - & - & - & - & - & - \tabularnewline
46 & 6.1 & - & - & - & - & - & - & - \tabularnewline
47 & 7.2 & - & - & - & - & - & - & - \tabularnewline
48 & 7.3 & - & - & - & - & - & - & - \tabularnewline
49 & 6.9 & - & - & - & - & - & - & - \tabularnewline
50 & 6.1 & - & - & - & - & - & - & - \tabularnewline
51 & 5.8 & - & - & - & - & - & - & - \tabularnewline
52 & 6.2 & 6.1023 & 5.6767 & 6.5278 & 0.3263 & 0.9181 & 0.0335 & 0.9181 \tabularnewline
53 & 7.1 & 6.6558 & 5.9455 & 7.3662 & 0.1102 & 0.8957 & 0.3454 & 0.9909 \tabularnewline
54 & 7.7 & 6.9217 & 6.0131 & 7.8304 & 0.0466 & 0.3503 & 0.6036 & 0.9922 \tabularnewline
55 & 7.9 & 6.7207 & 5.7429 & 7.6985 & 0.009 & 0.0248 & 0.7398 & 0.9675 \tabularnewline
56 & 7.7 & 6.3236 & 5.3193 & 7.3279 & 0.0036 & 0.001 & 0.6687 & 0.8466 \tabularnewline
57 & 7.4 & 5.9997 & 4.9737 & 7.0257 & 0.0037 & 6e-04 & 0.6486 & 0.6486 \tabularnewline
58 & 7.5 & 6.219 & 5.1472 & 7.2908 & 0.0096 & 0.0154 & 0.5861 & 0.7782 \tabularnewline
59 & 8 & 6.7712 & 5.6259 & 7.9165 & 0.0177 & 0.1062 & 0.2315 & 0.9517 \tabularnewline
60 & 8.1 & 6.9217 & 5.6976 & 8.1457 & 0.0296 & 0.0421 & 0.2723 & 0.9638 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65460&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[51])[/C][/ROW]
[ROW][C]39[/C][C]6.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]40[/C][C]6.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]5.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]7.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]6.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]5.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]6.2[/C][C]6.1023[/C][C]5.6767[/C][C]6.5278[/C][C]0.3263[/C][C]0.9181[/C][C]0.0335[/C][C]0.9181[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]6.6558[/C][C]5.9455[/C][C]7.3662[/C][C]0.1102[/C][C]0.8957[/C][C]0.3454[/C][C]0.9909[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]6.9217[/C][C]6.0131[/C][C]7.8304[/C][C]0.0466[/C][C]0.3503[/C][C]0.6036[/C][C]0.9922[/C][/ROW]
[ROW][C]55[/C][C]7.9[/C][C]6.7207[/C][C]5.7429[/C][C]7.6985[/C][C]0.009[/C][C]0.0248[/C][C]0.7398[/C][C]0.9675[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]6.3236[/C][C]5.3193[/C][C]7.3279[/C][C]0.0036[/C][C]0.001[/C][C]0.6687[/C][C]0.8466[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]5.9997[/C][C]4.9737[/C][C]7.0257[/C][C]0.0037[/C][C]6e-04[/C][C]0.6486[/C][C]0.6486[/C][/ROW]
[ROW][C]58[/C][C]7.5[/C][C]6.219[/C][C]5.1472[/C][C]7.2908[/C][C]0.0096[/C][C]0.0154[/C][C]0.5861[/C][C]0.7782[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]6.7712[/C][C]5.6259[/C][C]7.9165[/C][C]0.0177[/C][C]0.1062[/C][C]0.2315[/C][C]0.9517[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]6.9217[/C][C]5.6976[/C][C]8.1457[/C][C]0.0296[/C][C]0.0421[/C][C]0.2723[/C][C]0.9638[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65460&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65460&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[51])
396.2-------
406.5-------
416.8-------
426.8-------
436.4-------
446.1-------
455.8-------
466.1-------
477.2-------
487.3-------
496.9-------
506.1-------
515.8-------
526.26.10235.67676.52780.32630.91810.03350.9181
537.16.65585.94557.36620.11020.89570.34540.9909
547.76.92176.01317.83040.04660.35030.60360.9922
557.96.72075.74297.69850.0090.02480.73980.9675
567.76.32365.31937.32790.00360.0010.66870.8466
577.45.99974.97377.02570.00376e-040.64860.6486
587.56.2195.14727.29080.00960.01540.58610.7782
5986.77125.62597.91650.01770.10620.23150.9517
608.16.92175.69768.14570.02960.04210.27230.9638







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
520.03560.01600.009600
530.05450.06670.04140.19730.10340.3216
540.0670.11240.06510.60570.27090.5204
550.07420.17550.09271.39070.55080.7422
560.0810.21770.11771.89450.81960.9053
570.08730.23340.1371.96081.00981.0049
580.08790.2060.14681.64111.11.0488
590.08630.18150.15111.511.15121.0729
600.09020.17020.15331.38851.17761.0852

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
52 & 0.0356 & 0.016 & 0 & 0.0096 & 0 & 0 \tabularnewline
53 & 0.0545 & 0.0667 & 0.0414 & 0.1973 & 0.1034 & 0.3216 \tabularnewline
54 & 0.067 & 0.1124 & 0.0651 & 0.6057 & 0.2709 & 0.5204 \tabularnewline
55 & 0.0742 & 0.1755 & 0.0927 & 1.3907 & 0.5508 & 0.7422 \tabularnewline
56 & 0.081 & 0.2177 & 0.1177 & 1.8945 & 0.8196 & 0.9053 \tabularnewline
57 & 0.0873 & 0.2334 & 0.137 & 1.9608 & 1.0098 & 1.0049 \tabularnewline
58 & 0.0879 & 0.206 & 0.1468 & 1.6411 & 1.1 & 1.0488 \tabularnewline
59 & 0.0863 & 0.1815 & 0.1511 & 1.51 & 1.1512 & 1.0729 \tabularnewline
60 & 0.0902 & 0.1702 & 0.1533 & 1.3885 & 1.1776 & 1.0852 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65460&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]52[/C][C]0.0356[/C][C]0.016[/C][C]0[/C][C]0.0096[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]53[/C][C]0.0545[/C][C]0.0667[/C][C]0.0414[/C][C]0.1973[/C][C]0.1034[/C][C]0.3216[/C][/ROW]
[ROW][C]54[/C][C]0.067[/C][C]0.1124[/C][C]0.0651[/C][C]0.6057[/C][C]0.2709[/C][C]0.5204[/C][/ROW]
[ROW][C]55[/C][C]0.0742[/C][C]0.1755[/C][C]0.0927[/C][C]1.3907[/C][C]0.5508[/C][C]0.7422[/C][/ROW]
[ROW][C]56[/C][C]0.081[/C][C]0.2177[/C][C]0.1177[/C][C]1.8945[/C][C]0.8196[/C][C]0.9053[/C][/ROW]
[ROW][C]57[/C][C]0.0873[/C][C]0.2334[/C][C]0.137[/C][C]1.9608[/C][C]1.0098[/C][C]1.0049[/C][/ROW]
[ROW][C]58[/C][C]0.0879[/C][C]0.206[/C][C]0.1468[/C][C]1.6411[/C][C]1.1[/C][C]1.0488[/C][/ROW]
[ROW][C]59[/C][C]0.0863[/C][C]0.1815[/C][C]0.1511[/C][C]1.51[/C][C]1.1512[/C][C]1.0729[/C][/ROW]
[ROW][C]60[/C][C]0.0902[/C][C]0.1702[/C][C]0.1533[/C][C]1.3885[/C][C]1.1776[/C][C]1.0852[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65460&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65460&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
520.03560.01600.009600
530.05450.06670.04140.19730.10340.3216
540.0670.11240.06510.60570.27090.5204
550.07420.17550.09271.39070.55080.7422
560.0810.21770.11771.89450.81960.9053
570.08730.23340.1371.96081.00981.0049
580.08790.2060.14681.64111.11.0488
590.08630.18150.15111.511.15121.0729
600.09020.17020.15331.38851.17761.0852



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