Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSat, 15 Dec 2007 09:20: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/2007/Dec/15/t11977348109uro98h2scvs9mx.htm/, Retrieved Thu, 02 May 2024 14:27:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4078, Retrieved Thu, 02 May 2024 14:27:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsPaper G12 Totaal
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [Paper G12 Totaal] [2007-12-15 16:20:38] [ae3f0dfb5dab6ea17524363c550229d5] [Current]
Feedback Forum

Post a new message
Dataseries X:
106,7
110,2
125,9
100,1
106,4
114,8
81,3
87
104,2
108
105
94,5
92
95,9
108,8
103,4
102,1
110,1
83,2
82,7
106,8
113,7
102,5
96,6
92,1
95,6
102,3
98,6
98,2
104,5
84
73,8
103,9
106
97,2
102,6
89
93,8
116,7
106,8
98,5
118,7
90
91,9
113,3
113,1
104,1
108,7
96,7
101
116,9
105,8
99
129,4
83
88,9
115,9
104,2
113,4
112,2
100,8
107,3
126,6
102,9
117,9
128,8
87,5
93,8
122,7
126,2
124,6
116,7
115,2
111,1
129,9
113,3
118,5
133,5
102,1
102,4




Summary of compuational 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 compuational 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=4078&T=0

[TABLE]
[ROW][C]Summary of compuational 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=4078&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4078&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 compuational 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[80])
6893.8-------
69122.7-------
70126.2-------
71124.6-------
72116.7-------
73115.2-------
74111.1-------
75129.9-------
76113.3-------
77118.5-------
78133.5-------
79102.1-------
80102.4-------
81NA129.2893117.3248142.4738NA10.83631
82NA132.6719120.2828146.3371NANA0.82341
83NA126.4311113.8946140.3475NANA0.60180.9996
84NA122.8495109.1629138.2522NANA0.78310.9954
85NA114.5398101.523129.2255NANA0.46490.9474
86NA117.8015103.7485133.758NANA0.79480.9707
87NA136.027119.0386155.4399NANA0.73190.9997
88NA120.5087105.0481138.2448NANA0.78720.9773
89NA121.5247105.4007140.1154NANA0.62510.9781
90NA137.6014118.8166159.3562NANA0.64410.9992
91NA100.116186.1244116.381NANA0.40550.3916
92NA101.307286.8039118.2338NANA0.44970.4497

\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[80]) \tabularnewline
68 & 93.8 & - & - & - & - & - & - & - \tabularnewline
69 & 122.7 & - & - & - & - & - & - & - \tabularnewline
70 & 126.2 & - & - & - & - & - & - & - \tabularnewline
71 & 124.6 & - & - & - & - & - & - & - \tabularnewline
72 & 116.7 & - & - & - & - & - & - & - \tabularnewline
73 & 115.2 & - & - & - & - & - & - & - \tabularnewline
74 & 111.1 & - & - & - & - & - & - & - \tabularnewline
75 & 129.9 & - & - & - & - & - & - & - \tabularnewline
76 & 113.3 & - & - & - & - & - & - & - \tabularnewline
77 & 118.5 & - & - & - & - & - & - & - \tabularnewline
78 & 133.5 & - & - & - & - & - & - & - \tabularnewline
79 & 102.1 & - & - & - & - & - & - & - \tabularnewline
80 & 102.4 & - & - & - & - & - & - & - \tabularnewline
81 & NA & 129.2893 & 117.3248 & 142.4738 & NA & 1 & 0.8363 & 1 \tabularnewline
82 & NA & 132.6719 & 120.2828 & 146.3371 & NA & NA & 0.8234 & 1 \tabularnewline
83 & NA & 126.4311 & 113.8946 & 140.3475 & NA & NA & 0.6018 & 0.9996 \tabularnewline
84 & NA & 122.8495 & 109.1629 & 138.2522 & NA & NA & 0.7831 & 0.9954 \tabularnewline
85 & NA & 114.5398 & 101.523 & 129.2255 & NA & NA & 0.4649 & 0.9474 \tabularnewline
86 & NA & 117.8015 & 103.7485 & 133.758 & NA & NA & 0.7948 & 0.9707 \tabularnewline
87 & NA & 136.027 & 119.0386 & 155.4399 & NA & NA & 0.7319 & 0.9997 \tabularnewline
88 & NA & 120.5087 & 105.0481 & 138.2448 & NA & NA & 0.7872 & 0.9773 \tabularnewline
89 & NA & 121.5247 & 105.4007 & 140.1154 & NA & NA & 0.6251 & 0.9781 \tabularnewline
90 & NA & 137.6014 & 118.8166 & 159.3562 & NA & NA & 0.6441 & 0.9992 \tabularnewline
91 & NA & 100.1161 & 86.1244 & 116.381 & NA & NA & 0.4055 & 0.3916 \tabularnewline
92 & NA & 101.3072 & 86.8039 & 118.2338 & NA & NA & 0.4497 & 0.4497 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4078&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[80])[/C][/ROW]
[ROW][C]68[/C][C]93.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]122.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]70[/C][C]126.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]71[/C][C]124.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]72[/C][C]116.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]73[/C][C]115.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]74[/C][C]111.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]75[/C][C]129.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]76[/C][C]113.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]77[/C][C]118.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]78[/C][C]133.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]79[/C][C]102.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]80[/C][C]102.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]81[/C][C]NA[/C][C]129.2893[/C][C]117.3248[/C][C]142.4738[/C][C]NA[/C][C]1[/C][C]0.8363[/C][C]1[/C][/ROW]
[ROW][C]82[/C][C]NA[/C][C]132.6719[/C][C]120.2828[/C][C]146.3371[/C][C]NA[/C][C]NA[/C][C]0.8234[/C][C]1[/C][/ROW]
[ROW][C]83[/C][C]NA[/C][C]126.4311[/C][C]113.8946[/C][C]140.3475[/C][C]NA[/C][C]NA[/C][C]0.6018[/C][C]0.9996[/C][/ROW]
[ROW][C]84[/C][C]NA[/C][C]122.8495[/C][C]109.1629[/C][C]138.2522[/C][C]NA[/C][C]NA[/C][C]0.7831[/C][C]0.9954[/C][/ROW]
[ROW][C]85[/C][C]NA[/C][C]114.5398[/C][C]101.523[/C][C]129.2255[/C][C]NA[/C][C]NA[/C][C]0.4649[/C][C]0.9474[/C][/ROW]
[ROW][C]86[/C][C]NA[/C][C]117.8015[/C][C]103.7485[/C][C]133.758[/C][C]NA[/C][C]NA[/C][C]0.7948[/C][C]0.9707[/C][/ROW]
[ROW][C]87[/C][C]NA[/C][C]136.027[/C][C]119.0386[/C][C]155.4399[/C][C]NA[/C][C]NA[/C][C]0.7319[/C][C]0.9997[/C][/ROW]
[ROW][C]88[/C][C]NA[/C][C]120.5087[/C][C]105.0481[/C][C]138.2448[/C][C]NA[/C][C]NA[/C][C]0.7872[/C][C]0.9773[/C][/ROW]
[ROW][C]89[/C][C]NA[/C][C]121.5247[/C][C]105.4007[/C][C]140.1154[/C][C]NA[/C][C]NA[/C][C]0.6251[/C][C]0.9781[/C][/ROW]
[ROW][C]90[/C][C]NA[/C][C]137.6014[/C][C]118.8166[/C][C]159.3562[/C][C]NA[/C][C]NA[/C][C]0.6441[/C][C]0.9992[/C][/ROW]
[ROW][C]91[/C][C]NA[/C][C]100.1161[/C][C]86.1244[/C][C]116.381[/C][C]NA[/C][C]NA[/C][C]0.4055[/C][C]0.3916[/C][/ROW]
[ROW][C]92[/C][C]NA[/C][C]101.3072[/C][C]86.8039[/C][C]118.2338[/C][C]NA[/C][C]NA[/C][C]0.4497[/C][C]0.4497[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4078&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4078&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[80])
6893.8-------
69122.7-------
70126.2-------
71124.6-------
72116.7-------
73115.2-------
74111.1-------
75129.9-------
76113.3-------
77118.5-------
78133.5-------
79102.1-------
80102.4-------
81NA129.2893117.3248142.4738NA10.83631
82NA132.6719120.2828146.3371NANA0.82341
83NA126.4311113.8946140.3475NANA0.60180.9996
84NA122.8495109.1629138.2522NANA0.78310.9954
85NA114.5398101.523129.2255NANA0.46490.9474
86NA117.8015103.7485133.758NANA0.79480.9707
87NA136.027119.0386155.4399NANA0.73190.9997
88NA120.5087105.0481138.2448NANA0.78720.9773
89NA121.5247105.4007140.1154NANA0.62510.9781
90NA137.6014118.8166159.3562NANA0.64410.9992
91NA100.116186.1244116.381NANA0.40550.3916
92NA101.307286.8039118.2338NANA0.44970.4497







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
810.052NANANANANA
820.0526NANANANANA
830.0562NANANANANA
840.064NANANANANA
850.0654NANANANANA
860.0691NANANANANA
870.0728NANANANANA
880.0751NANANANANA
890.0781NANANANANA
900.0807NANANANANA
910.0829NANANANANA
920.0852NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
81 & 0.052 & NA & NA & NA & NA & NA \tabularnewline
82 & 0.0526 & NA & NA & NA & NA & NA \tabularnewline
83 & 0.0562 & NA & NA & NA & NA & NA \tabularnewline
84 & 0.064 & NA & NA & NA & NA & NA \tabularnewline
85 & 0.0654 & NA & NA & NA & NA & NA \tabularnewline
86 & 0.0691 & NA & NA & NA & NA & NA \tabularnewline
87 & 0.0728 & NA & NA & NA & NA & NA \tabularnewline
88 & 0.0751 & NA & NA & NA & NA & NA \tabularnewline
89 & 0.0781 & NA & NA & NA & NA & NA \tabularnewline
90 & 0.0807 & NA & NA & NA & NA & NA \tabularnewline
91 & 0.0829 & NA & NA & NA & NA & NA \tabularnewline
92 & 0.0852 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4078&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]81[/C][C]0.052[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]82[/C][C]0.0526[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]83[/C][C]0.0562[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]84[/C][C]0.064[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]85[/C][C]0.0654[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]86[/C][C]0.0691[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]87[/C][C]0.0728[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]88[/C][C]0.0751[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]89[/C][C]0.0781[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]90[/C][C]0.0807[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]91[/C][C]0.0829[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]92[/C][C]0.0852[/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=4078&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4078&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
810.052NANANANANA
820.0526NANANANANA
830.0562NANANANANA
840.064NANANANANA
850.0654NANANANANA
860.0691NANANANANA
870.0728NANANANANA
880.0751NANANANANA
890.0781NANANANANA
900.0807NANANANANA
910.0829NANANANANA
920.0852NANANANANA



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