Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationMon, 15 Dec 2008 12:41:52 -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/15/t1229370170kbjalitbugryte7.htm/, Retrieved Wed, 15 May 2024 23:25:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33791, Retrieved Wed, 15 May 2024 23:25:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact216
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Backward Selection] [arimabackward tex...] [2008-12-13 09:31:49] [74be16979710d4c4e7c6647856088456]
- RMP     [ARIMA Forecasting] [dsqdqsdsqdqsdq] [2008-12-15 19:41:52] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.7
115.1
102.5
75.3
96.7
94.6
98.6
99.5
92
93.6
89.3
66.9
108.8
113.2
105.5
77.8
102.1
97
95.5
99.3
86.4
92.4
85.7
61.9
104.9
107.9
95.6
79.8
94.8
93.7
108.1
96.9
88.8
106.7
86.8
69.8
110.9
105.4
99.2
84.4
87.2
91.9
97.9
94.5
85
100.3
78.7
65.8
104.8
96
103.3
82.9
91.4
94.5
109.3
92.1
99.3
109.6
87.5
73.1
110.7
111.6
110.7
84
101.6
102.1
113.9
99
100.4
109.5
93.1
77
108
119.9
105.9
78.2
100.3
102.2
97
101.3
89.2
93.3
88.5
61.5
95




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33791&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 time2 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[73])
7277-------
73108-------
74119.9104.877579.0255130.72940.12740.40640.40640.4064
75105.993.670666.2817121.05960.19070.03030.03030.1526
7678.290.240362.6379117.84270.19630.13310.13310.1036
77100.3100.923372.3891129.45750.48290.94070.94070.3135
78102.2100.770168.4176133.12270.46550.51140.51140.3307
799795.439561.6045129.27460.4640.34770.34770.2334
80101.394.621460.1318129.11110.35210.44620.44620.2235
8189.298.627763.0054134.24990.3020.44160.44160.303
8293.398.733161.2336136.23260.38820.69090.69090.3141
8388.596.436157.6799135.19240.34410.5630.5630.2793
8461.596.218856.5764135.86110.0430.64860.64860.2801
859597.786957.0538138.520.44670.95960.95960.3116

\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[73]) \tabularnewline
72 & 77 & - & - & - & - & - & - & - \tabularnewline
73 & 108 & - & - & - & - & - & - & - \tabularnewline
74 & 119.9 & 104.8775 & 79.0255 & 130.7294 & 0.1274 & 0.4064 & 0.4064 & 0.4064 \tabularnewline
75 & 105.9 & 93.6706 & 66.2817 & 121.0596 & 0.1907 & 0.0303 & 0.0303 & 0.1526 \tabularnewline
76 & 78.2 & 90.2403 & 62.6379 & 117.8427 & 0.1963 & 0.1331 & 0.1331 & 0.1036 \tabularnewline
77 & 100.3 & 100.9233 & 72.3891 & 129.4575 & 0.4829 & 0.9407 & 0.9407 & 0.3135 \tabularnewline
78 & 102.2 & 100.7701 & 68.4176 & 133.1227 & 0.4655 & 0.5114 & 0.5114 & 0.3307 \tabularnewline
79 & 97 & 95.4395 & 61.6045 & 129.2746 & 0.464 & 0.3477 & 0.3477 & 0.2334 \tabularnewline
80 & 101.3 & 94.6214 & 60.1318 & 129.1111 & 0.3521 & 0.4462 & 0.4462 & 0.2235 \tabularnewline
81 & 89.2 & 98.6277 & 63.0054 & 134.2499 & 0.302 & 0.4416 & 0.4416 & 0.303 \tabularnewline
82 & 93.3 & 98.7331 & 61.2336 & 136.2326 & 0.3882 & 0.6909 & 0.6909 & 0.3141 \tabularnewline
83 & 88.5 & 96.4361 & 57.6799 & 135.1924 & 0.3441 & 0.563 & 0.563 & 0.2793 \tabularnewline
84 & 61.5 & 96.2188 & 56.5764 & 135.8611 & 0.043 & 0.6486 & 0.6486 & 0.2801 \tabularnewline
85 & 95 & 97.7869 & 57.0538 & 138.52 & 0.4467 & 0.9596 & 0.9596 & 0.3116 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33791&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[73])[/C][/ROW]
[ROW][C]72[/C][C]77[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]73[/C][C]108[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]74[/C][C]119.9[/C][C]104.8775[/C][C]79.0255[/C][C]130.7294[/C][C]0.1274[/C][C]0.4064[/C][C]0.4064[/C][C]0.4064[/C][/ROW]
[ROW][C]75[/C][C]105.9[/C][C]93.6706[/C][C]66.2817[/C][C]121.0596[/C][C]0.1907[/C][C]0.0303[/C][C]0.0303[/C][C]0.1526[/C][/ROW]
[ROW][C]76[/C][C]78.2[/C][C]90.2403[/C][C]62.6379[/C][C]117.8427[/C][C]0.1963[/C][C]0.1331[/C][C]0.1331[/C][C]0.1036[/C][/ROW]
[ROW][C]77[/C][C]100.3[/C][C]100.9233[/C][C]72.3891[/C][C]129.4575[/C][C]0.4829[/C][C]0.9407[/C][C]0.9407[/C][C]0.3135[/C][/ROW]
[ROW][C]78[/C][C]102.2[/C][C]100.7701[/C][C]68.4176[/C][C]133.1227[/C][C]0.4655[/C][C]0.5114[/C][C]0.5114[/C][C]0.3307[/C][/ROW]
[ROW][C]79[/C][C]97[/C][C]95.4395[/C][C]61.6045[/C][C]129.2746[/C][C]0.464[/C][C]0.3477[/C][C]0.3477[/C][C]0.2334[/C][/ROW]
[ROW][C]80[/C][C]101.3[/C][C]94.6214[/C][C]60.1318[/C][C]129.1111[/C][C]0.3521[/C][C]0.4462[/C][C]0.4462[/C][C]0.2235[/C][/ROW]
[ROW][C]81[/C][C]89.2[/C][C]98.6277[/C][C]63.0054[/C][C]134.2499[/C][C]0.302[/C][C]0.4416[/C][C]0.4416[/C][C]0.303[/C][/ROW]
[ROW][C]82[/C][C]93.3[/C][C]98.7331[/C][C]61.2336[/C][C]136.2326[/C][C]0.3882[/C][C]0.6909[/C][C]0.6909[/C][C]0.3141[/C][/ROW]
[ROW][C]83[/C][C]88.5[/C][C]96.4361[/C][C]57.6799[/C][C]135.1924[/C][C]0.3441[/C][C]0.563[/C][C]0.563[/C][C]0.2793[/C][/ROW]
[ROW][C]84[/C][C]61.5[/C][C]96.2188[/C][C]56.5764[/C][C]135.8611[/C][C]0.043[/C][C]0.6486[/C][C]0.6486[/C][C]0.2801[/C][/ROW]
[ROW][C]85[/C][C]95[/C][C]97.7869[/C][C]57.0538[/C][C]138.52[/C][C]0.4467[/C][C]0.9596[/C][C]0.9596[/C][C]0.3116[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33791&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33791&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[73])
7277-------
73108-------
74119.9104.877579.0255130.72940.12740.40640.40640.4064
75105.993.670666.2817121.05960.19070.03030.03030.1526
7678.290.240362.6379117.84270.19630.13310.13310.1036
77100.3100.923372.3891129.45750.48290.94070.94070.3135
78102.2100.770168.4176133.12270.46550.51140.51140.3307
799795.439561.6045129.27460.4640.34770.34770.2334
80101.394.621460.1318129.11110.35210.44620.44620.2235
8189.298.627763.0054134.24990.3020.44160.44160.303
8293.398.733161.2336136.23260.38820.69090.69090.3141
8388.596.436157.6799135.19240.34410.5630.5630.2793
8461.596.218856.5764135.86110.0430.64860.64860.2801
859597.786957.0538138.520.44670.95960.95960.3116







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
740.12580.14320.0119225.676418.80644.3366
750.14920.13060.0109149.557312.46313.5303
760.1561-0.13340.0111144.968412.08073.4757
770.1443-0.00625e-040.38850.03240.1799
780.16380.01420.00122.04450.17040.4128
790.18090.01640.00142.43510.20290.4505
800.1860.07060.005944.60333.71691.9279
810.1843-0.09560.00888.88097.40672.7215
820.1938-0.0550.004629.51872.45991.5684
830.205-0.08230.006962.98185.24852.291
840.2102-0.36080.03011205.3937100.449510.0224
850.2125-0.02850.00247.76680.64720.8045

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
74 & 0.1258 & 0.1432 & 0.0119 & 225.6764 & 18.8064 & 4.3366 \tabularnewline
75 & 0.1492 & 0.1306 & 0.0109 & 149.5573 & 12.4631 & 3.5303 \tabularnewline
76 & 0.1561 & -0.1334 & 0.0111 & 144.9684 & 12.0807 & 3.4757 \tabularnewline
77 & 0.1443 & -0.0062 & 5e-04 & 0.3885 & 0.0324 & 0.1799 \tabularnewline
78 & 0.1638 & 0.0142 & 0.0012 & 2.0445 & 0.1704 & 0.4128 \tabularnewline
79 & 0.1809 & 0.0164 & 0.0014 & 2.4351 & 0.2029 & 0.4505 \tabularnewline
80 & 0.186 & 0.0706 & 0.0059 & 44.6033 & 3.7169 & 1.9279 \tabularnewline
81 & 0.1843 & -0.0956 & 0.008 & 88.8809 & 7.4067 & 2.7215 \tabularnewline
82 & 0.1938 & -0.055 & 0.0046 & 29.5187 & 2.4599 & 1.5684 \tabularnewline
83 & 0.205 & -0.0823 & 0.0069 & 62.9818 & 5.2485 & 2.291 \tabularnewline
84 & 0.2102 & -0.3608 & 0.0301 & 1205.3937 & 100.4495 & 10.0224 \tabularnewline
85 & 0.2125 & -0.0285 & 0.0024 & 7.7668 & 0.6472 & 0.8045 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33791&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]74[/C][C]0.1258[/C][C]0.1432[/C][C]0.0119[/C][C]225.6764[/C][C]18.8064[/C][C]4.3366[/C][/ROW]
[ROW][C]75[/C][C]0.1492[/C][C]0.1306[/C][C]0.0109[/C][C]149.5573[/C][C]12.4631[/C][C]3.5303[/C][/ROW]
[ROW][C]76[/C][C]0.1561[/C][C]-0.1334[/C][C]0.0111[/C][C]144.9684[/C][C]12.0807[/C][C]3.4757[/C][/ROW]
[ROW][C]77[/C][C]0.1443[/C][C]-0.0062[/C][C]5e-04[/C][C]0.3885[/C][C]0.0324[/C][C]0.1799[/C][/ROW]
[ROW][C]78[/C][C]0.1638[/C][C]0.0142[/C][C]0.0012[/C][C]2.0445[/C][C]0.1704[/C][C]0.4128[/C][/ROW]
[ROW][C]79[/C][C]0.1809[/C][C]0.0164[/C][C]0.0014[/C][C]2.4351[/C][C]0.2029[/C][C]0.4505[/C][/ROW]
[ROW][C]80[/C][C]0.186[/C][C]0.0706[/C][C]0.0059[/C][C]44.6033[/C][C]3.7169[/C][C]1.9279[/C][/ROW]
[ROW][C]81[/C][C]0.1843[/C][C]-0.0956[/C][C]0.008[/C][C]88.8809[/C][C]7.4067[/C][C]2.7215[/C][/ROW]
[ROW][C]82[/C][C]0.1938[/C][C]-0.055[/C][C]0.0046[/C][C]29.5187[/C][C]2.4599[/C][C]1.5684[/C][/ROW]
[ROW][C]83[/C][C]0.205[/C][C]-0.0823[/C][C]0.0069[/C][C]62.9818[/C][C]5.2485[/C][C]2.291[/C][/ROW]
[ROW][C]84[/C][C]0.2102[/C][C]-0.3608[/C][C]0.0301[/C][C]1205.3937[/C][C]100.4495[/C][C]10.0224[/C][/ROW]
[ROW][C]85[/C][C]0.2125[/C][C]-0.0285[/C][C]0.0024[/C][C]7.7668[/C][C]0.6472[/C][C]0.8045[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33791&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33791&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
740.12580.14320.0119225.676418.80644.3366
750.14920.13060.0109149.557312.46313.5303
760.1561-0.13340.0111144.968412.08073.4757
770.1443-0.00625e-040.38850.03240.1799
780.16380.01420.00122.04450.17040.4128
790.18090.01640.00142.43510.20290.4505
800.1860.07060.005944.60333.71691.9279
810.1843-0.09560.00888.88097.40672.7215
820.1938-0.0550.004629.51872.45991.5684
830.205-0.08230.006962.98185.24852.291
840.2102-0.36080.03011205.3937100.449510.0224
850.2125-0.02850.00247.76680.64720.8045



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