Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationFri, 07 Dec 2007 08:00:53 -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/07/t1197038874vymdoih240sn27j.htm/, Retrieved Sun, 26 Apr 2026 19:22:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2861, Retrieved Sun, 26 Apr 2026 19:22:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact416
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA Forecasting...] [2007-12-07 15:00:53] [ca5e0f9f346e091f4d0fe7e17f7dba21] [Current]
Feedback Forum

Post a new message
Dataseries X:
108.4
117
103.8
100.8
110.6
104
112.6
107.3
98.9
109.8
104.9
102.2
123.9
124.9
112.7
121.9
100.6
104.3
120.4
107.5
102.9
125.6
107.5
108.8
128.4
121.1
119.5
128.7
108.7
105.5
119.8
111.3
110.6
120.1
97.5
107.7
127.3
117.2
119.8
116.2
111
112.4
130.6
109.1
118.8
123.9
101.6
112.8
128
129.6
125.8
119.5
115.7
113.6
129.7
112
116.8
126.3
112.9
115.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2861&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 time2 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[60])
48112.8-------
49128-------
50129.6-------
51125.8-------
52119.5-------
53115.7-------
54113.6-------
55129.7-------
56112-------
57116.8-------
58126.3-------
59112.9-------
60115.9-------
61NA130.948119.4266141.5347NA0.99730.70740.9973
62NA130.5071118.4161141.5691NANA0.56380.9952
63NA125.9088112.6568137.8931NANA0.50710.9492
64NA124.1714110.5341136.4526NANA0.7720.9066
65NA114.731799.6955128.0137NANA0.44320.4316
66NA111.426795.8276125.0956NANA0.37770.2606
67NA126.3521112.8165138.5718NANA0.29560.9532
68NA112.464197.0004126.0448NANA0.52670.31
69NA114.375899.2062127.7566NANA0.36130.4117
70NA124.678110.9247137.058NANA0.39870.9177
71NA109.893994.001123.7624NANA0.33550.198
72NA113.707298.4316127.1608NANA0.37470.3747

\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[60]) \tabularnewline
48 & 112.8 & - & - & - & - & - & - & - \tabularnewline
49 & 128 & - & - & - & - & - & - & - \tabularnewline
50 & 129.6 & - & - & - & - & - & - & - \tabularnewline
51 & 125.8 & - & - & - & - & - & - & - \tabularnewline
52 & 119.5 & - & - & - & - & - & - & - \tabularnewline
53 & 115.7 & - & - & - & - & - & - & - \tabularnewline
54 & 113.6 & - & - & - & - & - & - & - \tabularnewline
55 & 129.7 & - & - & - & - & - & - & - \tabularnewline
56 & 112 & - & - & - & - & - & - & - \tabularnewline
57 & 116.8 & - & - & - & - & - & - & - \tabularnewline
58 & 126.3 & - & - & - & - & - & - & - \tabularnewline
59 & 112.9 & - & - & - & - & - & - & - \tabularnewline
60 & 115.9 & - & - & - & - & - & - & - \tabularnewline
61 & NA & 130.948 & 119.4266 & 141.5347 & NA & 0.9973 & 0.7074 & 0.9973 \tabularnewline
62 & NA & 130.5071 & 118.4161 & 141.5691 & NA & NA & 0.5638 & 0.9952 \tabularnewline
63 & NA & 125.9088 & 112.6568 & 137.8931 & NA & NA & 0.5071 & 0.9492 \tabularnewline
64 & NA & 124.1714 & 110.5341 & 136.4526 & NA & NA & 0.772 & 0.9066 \tabularnewline
65 & NA & 114.7317 & 99.6955 & 128.0137 & NA & NA & 0.4432 & 0.4316 \tabularnewline
66 & NA & 111.4267 & 95.8276 & 125.0956 & NA & NA & 0.3777 & 0.2606 \tabularnewline
67 & NA & 126.3521 & 112.8165 & 138.5718 & NA & NA & 0.2956 & 0.9532 \tabularnewline
68 & NA & 112.4641 & 97.0004 & 126.0448 & NA & NA & 0.5267 & 0.31 \tabularnewline
69 & NA & 114.3758 & 99.2062 & 127.7566 & NA & NA & 0.3613 & 0.4117 \tabularnewline
70 & NA & 124.678 & 110.9247 & 137.058 & NA & NA & 0.3987 & 0.9177 \tabularnewline
71 & NA & 109.8939 & 94.001 & 123.7624 & NA & NA & 0.3355 & 0.198 \tabularnewline
72 & NA & 113.7072 & 98.4316 & 127.1608 & NA & NA & 0.3747 & 0.3747 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2861&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[60])[/C][/ROW]
[ROW][C]48[/C][C]112.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]128[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]129.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]125.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]119.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]53[/C][C]115.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]113.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]129.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]112[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]116.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]126.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]112.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]115.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]NA[/C][C]130.948[/C][C]119.4266[/C][C]141.5347[/C][C]NA[/C][C]0.9973[/C][C]0.7074[/C][C]0.9973[/C][/ROW]
[ROW][C]62[/C][C]NA[/C][C]130.5071[/C][C]118.4161[/C][C]141.5691[/C][C]NA[/C][C]NA[/C][C]0.5638[/C][C]0.9952[/C][/ROW]
[ROW][C]63[/C][C]NA[/C][C]125.9088[/C][C]112.6568[/C][C]137.8931[/C][C]NA[/C][C]NA[/C][C]0.5071[/C][C]0.9492[/C][/ROW]
[ROW][C]64[/C][C]NA[/C][C]124.1714[/C][C]110.5341[/C][C]136.4526[/C][C]NA[/C][C]NA[/C][C]0.772[/C][C]0.9066[/C][/ROW]
[ROW][C]65[/C][C]NA[/C][C]114.7317[/C][C]99.6955[/C][C]128.0137[/C][C]NA[/C][C]NA[/C][C]0.4432[/C][C]0.4316[/C][/ROW]
[ROW][C]66[/C][C]NA[/C][C]111.4267[/C][C]95.8276[/C][C]125.0956[/C][C]NA[/C][C]NA[/C][C]0.3777[/C][C]0.2606[/C][/ROW]
[ROW][C]67[/C][C]NA[/C][C]126.3521[/C][C]112.8165[/C][C]138.5718[/C][C]NA[/C][C]NA[/C][C]0.2956[/C][C]0.9532[/C][/ROW]
[ROW][C]68[/C][C]NA[/C][C]112.4641[/C][C]97.0004[/C][C]126.0448[/C][C]NA[/C][C]NA[/C][C]0.5267[/C][C]0.31[/C][/ROW]
[ROW][C]69[/C][C]NA[/C][C]114.3758[/C][C]99.2062[/C][C]127.7566[/C][C]NA[/C][C]NA[/C][C]0.3613[/C][C]0.4117[/C][/ROW]
[ROW][C]70[/C][C]NA[/C][C]124.678[/C][C]110.9247[/C][C]137.058[/C][C]NA[/C][C]NA[/C][C]0.3987[/C][C]0.9177[/C][/ROW]
[ROW][C]71[/C][C]NA[/C][C]109.8939[/C][C]94.001[/C][C]123.7624[/C][C]NA[/C][C]NA[/C][C]0.3355[/C][C]0.198[/C][/ROW]
[ROW][C]72[/C][C]NA[/C][C]113.7072[/C][C]98.4316[/C][C]127.1608[/C][C]NA[/C][C]NA[/C][C]0.3747[/C][C]0.3747[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2861&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2861&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[60])
48112.8-------
49128-------
50129.6-------
51125.8-------
52119.5-------
53115.7-------
54113.6-------
55129.7-------
56112-------
57116.8-------
58126.3-------
59112.9-------
60115.9-------
61NA130.948119.4266141.5347NA0.99730.70740.9973
62NA130.5071118.4161141.5691NANA0.56380.9952
63NA125.9088112.6568137.8931NANA0.50710.9492
64NA124.1714110.5341136.4526NANA0.7720.9066
65NA114.731799.6955128.0137NANA0.44320.4316
66NA111.426795.8276125.0956NANA0.37770.2606
67NA126.3521112.8165138.5718NANA0.29560.9532
68NA112.464197.0004126.0448NANA0.52670.31
69NA114.375899.2062127.7566NANA0.36130.4117
70NA124.678110.9247137.058NANA0.39870.9177
71NA109.893994.001123.7624NANA0.33550.198
72NA113.707298.4316127.1608NANA0.37470.3747







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
610.0412NANANANANA
620.0432NANANANANA
630.0486NANANANANA
640.0505NANANANANA
650.0591NANANANANA
660.0626NANANANANA
670.0493NANANANANA
680.0616NANANANANA
690.0597NANANANANA
700.0507NANANANANA
710.0644NANANANANA
720.0604NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
61 & 0.0412 & NA & NA & NA & NA & NA \tabularnewline
62 & 0.0432 & NA & NA & NA & NA & NA \tabularnewline
63 & 0.0486 & NA & NA & NA & NA & NA \tabularnewline
64 & 0.0505 & NA & NA & NA & NA & NA \tabularnewline
65 & 0.0591 & NA & NA & NA & NA & NA \tabularnewline
66 & 0.0626 & NA & NA & NA & NA & NA \tabularnewline
67 & 0.0493 & NA & NA & NA & NA & NA \tabularnewline
68 & 0.0616 & NA & NA & NA & NA & NA \tabularnewline
69 & 0.0597 & NA & NA & NA & NA & NA \tabularnewline
70 & 0.0507 & NA & NA & NA & NA & NA \tabularnewline
71 & 0.0644 & NA & NA & NA & NA & NA \tabularnewline
72 & 0.0604 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2861&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]61[/C][C]0.0412[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]62[/C][C]0.0432[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]63[/C][C]0.0486[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]64[/C][C]0.0505[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]65[/C][C]0.0591[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]66[/C][C]0.0626[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]67[/C][C]0.0493[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]68[/C][C]0.0616[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]69[/C][C]0.0597[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]70[/C][C]0.0507[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]71[/C][C]0.0644[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]72[/C][C]0.0604[/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=2861&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2861&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
610.0412NANANANANA
620.0432NANANANANA
630.0486NANANANANA
640.0505NANANANANA
650.0591NANANANANA
660.0626NANANANANA
670.0493NANANANANA
680.0616NANANANANA
690.0597NANANANANA
700.0507NANANANANA
710.0644NANANANANA
720.0604NANANANANA



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