Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSat, 13 Dec 2008 16:31:10 -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/14/t1229211196gwnr064zsvykkqd.htm/, Retrieved Thu, 16 May 2024 00:41:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33231, Retrieved Thu, 16 May 2024 00:41:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact179
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [eigen] [2008-12-13 23:31:10] [59094f58b9d90d3694e930ebd2901ecd] [Current]
Feedback Forum

Post a new message
Dataseries X:
7,5
7,2
6,9
6,7
6,4
6,3
6,8
7,3
7,1
7,1
6,8
6,5
6,3
6,1
6,1
6,3
6,3
6
6,2
6,4
6,8
7,5
7,5
7,6
7,6
7,4
7,3
7,1
6,9
6,8
7,5
7,6
7,8
8,0
8,1
8,2
8,3
8,2
8,0
7,9
7,6
7,6
8,2
8,3
8,4
8,4
8,4
8,6
8,9
8,8
8,3
7,5
7,2
7,5
8,8
9,3
9,3
8,7
8,2
8,3
8,5
8,6
8,6
8,2
8,1
8,0
8,6
8,7
8,8
8,5
8,4
8,5
8,7
8,7
8,6
8,5
8,3
8,1
8,2
8,1
8,1
7,9
7,9
7,9
8,0
8,0
7,9
8,0
7,7
7,2
7,5
7,3
7,0
7,0
7,0
7,2
7,3
7,1
6,8
6,6
6,2
6,2
6,8
6,9
6,8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33231&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]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33231&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33231&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'Herman Ole Andreas Wold' @ 193.190.124.10:1001







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[105])
937-------
947-------
957-------
967.2-------
977.3-------
987.1-------
996.8-------
1006.6-------
1016.2-------
1026.2-------
1036.8-------
1046.9-------
1056.8-------
106NA6.76266.21917.306NA0.44630.19590.4463
107NA6.74865.8257.6722NANA0.29680.4565
108NA6.74335.50637.9804NANA0.23470.4642
109NA6.74145.23978.2431NANA0.2330.4695
110NA6.74065.00918.4722NANA0.34210.4732
111NA6.74044.80438.6764NANA0.47590.4759
112NA6.74034.61878.8618NANA0.55160.478
113NA6.74024.4489.0325NANA0.67790.4796
114NA6.74024.2899.1914NANA0.66710.4809
115NA6.74024.13979.3407NANA0.4820.482
116NA6.74023.99869.4818NANA0.45450.483
117NA6.74023.86439.6161NANA0.48370.4837

\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[105]) \tabularnewline
93 & 7 & - & - & - & - & - & - & - \tabularnewline
94 & 7 & - & - & - & - & - & - & - \tabularnewline
95 & 7 & - & - & - & - & - & - & - \tabularnewline
96 & 7.2 & - & - & - & - & - & - & - \tabularnewline
97 & 7.3 & - & - & - & - & - & - & - \tabularnewline
98 & 7.1 & - & - & - & - & - & - & - \tabularnewline
99 & 6.8 & - & - & - & - & - & - & - \tabularnewline
100 & 6.6 & - & - & - & - & - & - & - \tabularnewline
101 & 6.2 & - & - & - & - & - & - & - \tabularnewline
102 & 6.2 & - & - & - & - & - & - & - \tabularnewline
103 & 6.8 & - & - & - & - & - & - & - \tabularnewline
104 & 6.9 & - & - & - & - & - & - & - \tabularnewline
105 & 6.8 & - & - & - & - & - & - & - \tabularnewline
106 & NA & 6.7626 & 6.2191 & 7.306 & NA & 0.4463 & 0.1959 & 0.4463 \tabularnewline
107 & NA & 6.7486 & 5.825 & 7.6722 & NA & NA & 0.2968 & 0.4565 \tabularnewline
108 & NA & 6.7433 & 5.5063 & 7.9804 & NA & NA & 0.2347 & 0.4642 \tabularnewline
109 & NA & 6.7414 & 5.2397 & 8.2431 & NA & NA & 0.233 & 0.4695 \tabularnewline
110 & NA & 6.7406 & 5.0091 & 8.4722 & NA & NA & 0.3421 & 0.4732 \tabularnewline
111 & NA & 6.7404 & 4.8043 & 8.6764 & NA & NA & 0.4759 & 0.4759 \tabularnewline
112 & NA & 6.7403 & 4.6187 & 8.8618 & NA & NA & 0.5516 & 0.478 \tabularnewline
113 & NA & 6.7402 & 4.448 & 9.0325 & NA & NA & 0.6779 & 0.4796 \tabularnewline
114 & NA & 6.7402 & 4.289 & 9.1914 & NA & NA & 0.6671 & 0.4809 \tabularnewline
115 & NA & 6.7402 & 4.1397 & 9.3407 & NA & NA & 0.482 & 0.482 \tabularnewline
116 & NA & 6.7402 & 3.9986 & 9.4818 & NA & NA & 0.4545 & 0.483 \tabularnewline
117 & NA & 6.7402 & 3.8643 & 9.6161 & NA & NA & 0.4837 & 0.4837 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33231&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[105])[/C][/ROW]
[ROW][C]93[/C][C]7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]94[/C][C]7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]95[/C][C]7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]96[/C][C]7.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]97[/C][C]7.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]98[/C][C]7.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]99[/C][C]6.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]100[/C][C]6.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]101[/C][C]6.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]102[/C][C]6.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]103[/C][C]6.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]104[/C][C]6.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]105[/C][C]6.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]106[/C][C]NA[/C][C]6.7626[/C][C]6.2191[/C][C]7.306[/C][C]NA[/C][C]0.4463[/C][C]0.1959[/C][C]0.4463[/C][/ROW]
[ROW][C]107[/C][C]NA[/C][C]6.7486[/C][C]5.825[/C][C]7.6722[/C][C]NA[/C][C]NA[/C][C]0.2968[/C][C]0.4565[/C][/ROW]
[ROW][C]108[/C][C]NA[/C][C]6.7433[/C][C]5.5063[/C][C]7.9804[/C][C]NA[/C][C]NA[/C][C]0.2347[/C][C]0.4642[/C][/ROW]
[ROW][C]109[/C][C]NA[/C][C]6.7414[/C][C]5.2397[/C][C]8.2431[/C][C]NA[/C][C]NA[/C][C]0.233[/C][C]0.4695[/C][/ROW]
[ROW][C]110[/C][C]NA[/C][C]6.7406[/C][C]5.0091[/C][C]8.4722[/C][C]NA[/C][C]NA[/C][C]0.3421[/C][C]0.4732[/C][/ROW]
[ROW][C]111[/C][C]NA[/C][C]6.7404[/C][C]4.8043[/C][C]8.6764[/C][C]NA[/C][C]NA[/C][C]0.4759[/C][C]0.4759[/C][/ROW]
[ROW][C]112[/C][C]NA[/C][C]6.7403[/C][C]4.6187[/C][C]8.8618[/C][C]NA[/C][C]NA[/C][C]0.5516[/C][C]0.478[/C][/ROW]
[ROW][C]113[/C][C]NA[/C][C]6.7402[/C][C]4.448[/C][C]9.0325[/C][C]NA[/C][C]NA[/C][C]0.6779[/C][C]0.4796[/C][/ROW]
[ROW][C]114[/C][C]NA[/C][C]6.7402[/C][C]4.289[/C][C]9.1914[/C][C]NA[/C][C]NA[/C][C]0.6671[/C][C]0.4809[/C][/ROW]
[ROW][C]115[/C][C]NA[/C][C]6.7402[/C][C]4.1397[/C][C]9.3407[/C][C]NA[/C][C]NA[/C][C]0.482[/C][C]0.482[/C][/ROW]
[ROW][C]116[/C][C]NA[/C][C]6.7402[/C][C]3.9986[/C][C]9.4818[/C][C]NA[/C][C]NA[/C][C]0.4545[/C][C]0.483[/C][/ROW]
[ROW][C]117[/C][C]NA[/C][C]6.7402[/C][C]3.8643[/C][C]9.6161[/C][C]NA[/C][C]NA[/C][C]0.4837[/C][C]0.4837[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33231&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33231&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[105])
937-------
947-------
957-------
967.2-------
977.3-------
987.1-------
996.8-------
1006.6-------
1016.2-------
1026.2-------
1036.8-------
1046.9-------
1056.8-------
106NA6.76266.21917.306NA0.44630.19590.4463
107NA6.74865.8257.6722NANA0.29680.4565
108NA6.74335.50637.9804NANA0.23470.4642
109NA6.74145.23978.2431NANA0.2330.4695
110NA6.74065.00918.4722NANA0.34210.4732
111NA6.74044.80438.6764NANA0.47590.4759
112NA6.74034.61878.8618NANA0.55160.478
113NA6.74024.4489.0325NANA0.67790.4796
114NA6.74024.2899.1914NANA0.66710.4809
115NA6.74024.13979.3407NANA0.4820.482
116NA6.74023.99869.4818NANA0.45450.483
117NA6.74023.86439.6161NANA0.48370.4837







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
1060.041NANANANANA
1070.0698NANANANANA
1080.0936NANANANANA
1090.1137NANANANANA
1100.1311NANANANANA
1110.1465NANANANANA
1120.1606NANANANANA
1130.1735NANANANANA
1140.1855NANANANANA
1150.1968NANANANANA
1160.2075NANANANANA
1170.2177NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
106 & 0.041 & NA & NA & NA & NA & NA \tabularnewline
107 & 0.0698 & NA & NA & NA & NA & NA \tabularnewline
108 & 0.0936 & NA & NA & NA & NA & NA \tabularnewline
109 & 0.1137 & NA & NA & NA & NA & NA \tabularnewline
110 & 0.1311 & NA & NA & NA & NA & NA \tabularnewline
111 & 0.1465 & NA & NA & NA & NA & NA \tabularnewline
112 & 0.1606 & NA & NA & NA & NA & NA \tabularnewline
113 & 0.1735 & NA & NA & NA & NA & NA \tabularnewline
114 & 0.1855 & NA & NA & NA & NA & NA \tabularnewline
115 & 0.1968 & NA & NA & NA & NA & NA \tabularnewline
116 & 0.2075 & NA & NA & NA & NA & NA \tabularnewline
117 & 0.2177 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33231&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]106[/C][C]0.041[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]107[/C][C]0.0698[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]108[/C][C]0.0936[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]109[/C][C]0.1137[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]110[/C][C]0.1311[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]111[/C][C]0.1465[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]112[/C][C]0.1606[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]113[/C][C]0.1735[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]114[/C][C]0.1855[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]115[/C][C]0.1968[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]116[/C][C]0.2075[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]117[/C][C]0.2177[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33231&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33231&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
1060.041NANANANANA
1070.0698NANANANANA
1080.0936NANANANANA
1090.1137NANANANANA
1100.1311NANANANANA
1110.1465NANANANANA
1120.1606NANANANANA
1130.1735NANANANANA
1140.1855NANANANANA
1150.1968NANANANANA
1160.2075NANANANANA
1170.2177NANANANANA



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