Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationTue, 16 Dec 2008 13:44:12 -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/16/t1229460330xqktapls2torjqx.htm/, Retrieved Wed, 15 May 2024 07:30:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34190, Retrieved Wed, 15 May 2024 07:30:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact171
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2008-12-16 20:44:12] [a5ed2c45dea395ef181ba16fe56905d7] [Current]
Feedback Forum

Post a new message
Dataseries X:
98.8
100.5
110.4
96.4
101.9
106.2
81.0
94.7
101.0
109.4
102.3
90.7
96.2
96.1
106.0
103.1
102.0
104.7
86.0
92.1
106.9
112.6
101.7
92.0
97.4
97.0
105.4
102.7
98.1
104.5
87.4
89.9
109.8
111.7
98.6
96.9
95.1
97.0
112.7
102.9
97.4
111.4
87.4
96.8
114.1
110.3
103.9
101.6
94.6
95.9
104.7
102.8
98.1
113.9
80.9
95.7
113.2
105.9
108.8
102.3
99.0
100.7
115.5
100.7
109.9
114.6
85.4
100.5
114.8
116.5
112.9
102.0
106.0
105.3
118.8
106.1
109.3
117.2
92.5
104.2
112.5
122.4
113.3
100.0




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=34190&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=34190&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34190&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[84])
72102-------
73106-------
74105.3-------
75118.8-------
76106.1-------
77109.3-------
78117.2-------
7992.5-------
80104.2-------
81112.5-------
82122.4-------
83113.3-------
84100-------
85NA108.6989101.5238115.8741NA0.99130.76950.9913
86NA104.875797.697112.0543NANA0.45390.9084
87NA118.6455111.2335126.0574NANA0.48371
88NA107.155499.1714115.1394NANA0.60220.9605
89NA109.0454101.0563117.0344NANA0.47510.9868
90NA117.4119109.275125.5487NANA0.52041
91NA92.881584.6415101.1215NANA0.53620.0452
92NA104.13395.8792112.3869NANA0.49370.8368
93NA112.6908104.3789121.0028NANA0.51790.9986
94NA122.5408114.2035130.8781NANA0.51321
95NA113.3157104.967121.6645NANA0.50150.9991
96NA100.117691.7491108.486NANA0.5110.511

\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[84]) \tabularnewline
72 & 102 & - & - & - & - & - & - & - \tabularnewline
73 & 106 & - & - & - & - & - & - & - \tabularnewline
74 & 105.3 & - & - & - & - & - & - & - \tabularnewline
75 & 118.8 & - & - & - & - & - & - & - \tabularnewline
76 & 106.1 & - & - & - & - & - & - & - \tabularnewline
77 & 109.3 & - & - & - & - & - & - & - \tabularnewline
78 & 117.2 & - & - & - & - & - & - & - \tabularnewline
79 & 92.5 & - & - & - & - & - & - & - \tabularnewline
80 & 104.2 & - & - & - & - & - & - & - \tabularnewline
81 & 112.5 & - & - & - & - & - & - & - \tabularnewline
82 & 122.4 & - & - & - & - & - & - & - \tabularnewline
83 & 113.3 & - & - & - & - & - & - & - \tabularnewline
84 & 100 & - & - & - & - & - & - & - \tabularnewline
85 & NA & 108.6989 & 101.5238 & 115.8741 & NA & 0.9913 & 0.7695 & 0.9913 \tabularnewline
86 & NA & 104.8757 & 97.697 & 112.0543 & NA & NA & 0.4539 & 0.9084 \tabularnewline
87 & NA & 118.6455 & 111.2335 & 126.0574 & NA & NA & 0.4837 & 1 \tabularnewline
88 & NA & 107.1554 & 99.1714 & 115.1394 & NA & NA & 0.6022 & 0.9605 \tabularnewline
89 & NA & 109.0454 & 101.0563 & 117.0344 & NA & NA & 0.4751 & 0.9868 \tabularnewline
90 & NA & 117.4119 & 109.275 & 125.5487 & NA & NA & 0.5204 & 1 \tabularnewline
91 & NA & 92.8815 & 84.6415 & 101.1215 & NA & NA & 0.5362 & 0.0452 \tabularnewline
92 & NA & 104.133 & 95.8792 & 112.3869 & NA & NA & 0.4937 & 0.8368 \tabularnewline
93 & NA & 112.6908 & 104.3789 & 121.0028 & NA & NA & 0.5179 & 0.9986 \tabularnewline
94 & NA & 122.5408 & 114.2035 & 130.8781 & NA & NA & 0.5132 & 1 \tabularnewline
95 & NA & 113.3157 & 104.967 & 121.6645 & NA & NA & 0.5015 & 0.9991 \tabularnewline
96 & NA & 100.1176 & 91.7491 & 108.486 & NA & NA & 0.511 & 0.511 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34190&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[84])[/C][/ROW]
[ROW][C]72[/C][C]102[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]73[/C][C]106[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]74[/C][C]105.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]75[/C][C]118.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]76[/C][C]106.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]77[/C][C]109.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]78[/C][C]117.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]79[/C][C]92.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]80[/C][C]104.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]81[/C][C]112.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]82[/C][C]122.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]83[/C][C]113.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]84[/C][C]100[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]85[/C][C]NA[/C][C]108.6989[/C][C]101.5238[/C][C]115.8741[/C][C]NA[/C][C]0.9913[/C][C]0.7695[/C][C]0.9913[/C][/ROW]
[ROW][C]86[/C][C]NA[/C][C]104.8757[/C][C]97.697[/C][C]112.0543[/C][C]NA[/C][C]NA[/C][C]0.4539[/C][C]0.9084[/C][/ROW]
[ROW][C]87[/C][C]NA[/C][C]118.6455[/C][C]111.2335[/C][C]126.0574[/C][C]NA[/C][C]NA[/C][C]0.4837[/C][C]1[/C][/ROW]
[ROW][C]88[/C][C]NA[/C][C]107.1554[/C][C]99.1714[/C][C]115.1394[/C][C]NA[/C][C]NA[/C][C]0.6022[/C][C]0.9605[/C][/ROW]
[ROW][C]89[/C][C]NA[/C][C]109.0454[/C][C]101.0563[/C][C]117.0344[/C][C]NA[/C][C]NA[/C][C]0.4751[/C][C]0.9868[/C][/ROW]
[ROW][C]90[/C][C]NA[/C][C]117.4119[/C][C]109.275[/C][C]125.5487[/C][C]NA[/C][C]NA[/C][C]0.5204[/C][C]1[/C][/ROW]
[ROW][C]91[/C][C]NA[/C][C]92.8815[/C][C]84.6415[/C][C]101.1215[/C][C]NA[/C][C]NA[/C][C]0.5362[/C][C]0.0452[/C][/ROW]
[ROW][C]92[/C][C]NA[/C][C]104.133[/C][C]95.8792[/C][C]112.3869[/C][C]NA[/C][C]NA[/C][C]0.4937[/C][C]0.8368[/C][/ROW]
[ROW][C]93[/C][C]NA[/C][C]112.6908[/C][C]104.3789[/C][C]121.0028[/C][C]NA[/C][C]NA[/C][C]0.5179[/C][C]0.9986[/C][/ROW]
[ROW][C]94[/C][C]NA[/C][C]122.5408[/C][C]114.2035[/C][C]130.8781[/C][C]NA[/C][C]NA[/C][C]0.5132[/C][C]1[/C][/ROW]
[ROW][C]95[/C][C]NA[/C][C]113.3157[/C][C]104.967[/C][C]121.6645[/C][C]NA[/C][C]NA[/C][C]0.5015[/C][C]0.9991[/C][/ROW]
[ROW][C]96[/C][C]NA[/C][C]100.1176[/C][C]91.7491[/C][C]108.486[/C][C]NA[/C][C]NA[/C][C]0.511[/C][C]0.511[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34190&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34190&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[84])
72102-------
73106-------
74105.3-------
75118.8-------
76106.1-------
77109.3-------
78117.2-------
7992.5-------
80104.2-------
81112.5-------
82122.4-------
83113.3-------
84100-------
85NA108.6989101.5238115.8741NA0.99130.76950.9913
86NA104.875797.697112.0543NANA0.45390.9084
87NA118.6455111.2335126.0574NANA0.48371
88NA107.155499.1714115.1394NANA0.60220.9605
89NA109.0454101.0563117.0344NANA0.47510.9868
90NA117.4119109.275125.5487NANA0.52041
91NA92.881584.6415101.1215NANA0.53620.0452
92NA104.13395.8792112.3869NANA0.49370.8368
93NA112.6908104.3789121.0028NANA0.51790.9986
94NA122.5408114.2035130.8781NANA0.51321
95NA113.3157104.967121.6645NANA0.50150.9991
96NA100.117691.7491108.486NANA0.5110.511







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
850.0337NANANANANA
860.0349NANANANANA
870.0319NANANANANA
880.038NANANANANA
890.0374NANANANANA
900.0354NANANANANA
910.0453NANANANANA
920.0404NANANANANA
930.0376NANANANANA
940.0347NANANANANA
950.0376NANANANANA
960.0426NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
85 & 0.0337 & NA & NA & NA & NA & NA \tabularnewline
86 & 0.0349 & NA & NA & NA & NA & NA \tabularnewline
87 & 0.0319 & NA & NA & NA & NA & NA \tabularnewline
88 & 0.038 & NA & NA & NA & NA & NA \tabularnewline
89 & 0.0374 & NA & NA & NA & NA & NA \tabularnewline
90 & 0.0354 & NA & NA & NA & NA & NA \tabularnewline
91 & 0.0453 & NA & NA & NA & NA & NA \tabularnewline
92 & 0.0404 & NA & NA & NA & NA & NA \tabularnewline
93 & 0.0376 & NA & NA & NA & NA & NA \tabularnewline
94 & 0.0347 & NA & NA & NA & NA & NA \tabularnewline
95 & 0.0376 & NA & NA & NA & NA & NA \tabularnewline
96 & 0.0426 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34190&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]85[/C][C]0.0337[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]86[/C][C]0.0349[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]87[/C][C]0.0319[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]88[/C][C]0.038[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]89[/C][C]0.0374[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]90[/C][C]0.0354[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]91[/C][C]0.0453[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]92[/C][C]0.0404[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]93[/C][C]0.0376[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]94[/C][C]0.0347[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]95[/C][C]0.0376[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]96[/C][C]0.0426[/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=34190&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34190&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
850.0337NANANANANA
860.0349NANANANANA
870.0319NANANANANA
880.038NANANANANA
890.0374NANANANANA
900.0354NANANANANA
910.0453NANANANANA
920.0404NANANANANA
930.0376NANANANANA
940.0347NANANANANA
950.0376NANANANANA
960.0426NANANANANA



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