Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationWed, 10 Dec 2008 09:49:26 -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/10/t1228927796ppxgq9lt1sytqt9.htm/, Retrieved Sat, 18 May 2024 08:25:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32030, Retrieved Sat, 18 May 2024 08:25:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsjulie govaerts
Estimated Impact162
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [arima] [2008-12-10 16:49:26] [02bc582261bca489735616f51251e20c] [Current]
Feedback Forum

Post a new message
Dataseries X:
97,3
101
113,2
101
105,7
113,9
86,4
96,5
103,3
114,9
105,8
94,2
98,4
99,4
108,8
112,6
104,4
112,2
81,1
97,1
112,6
113,8
107,8
103,2
103,3
101,2
107,7
110,4
101,9
115,9
89,9
88,6
117,2
123,9
100
103,6
94,1
98,7
119,5
112,7
104,4
124,7
89,1
97
121,6
118,8
114
111,5
97,2
102,5
113,4
109,8
104,9
126,1
80
96,8
117,2
112,3
117,3
111,1
102,2
104,3
122,9
107,6
121,3
131,5
89
104,4
128,9
135,9
133,3
121,3
120,5
120,4
137,9
126,1
133,2
146,6
103,4
117,2




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 1 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32030&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32030&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32030&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 time1 seconds
R Server'George Udny Yule' @ 72.249.76.132







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])
68104.4-------
69128.9-------
70135.9-------
71133.3-------
72121.3-------
73120.5-------
74120.4-------
75137.9-------
76126.1-------
77133.2-------
78146.6-------
79103.4-------
80117.2-------
81NA141.2005129.2817153.1194NA10.97851
82NA147.4103135.2517159.569NANA0.96821
83NA143.8841131.2209156.5472NANA0.94931
84NA131.2954117.2445145.3463NANA0.91840.9754
85NA129.8238115.4363144.2113NANA0.8980.9573
86NA129.0677114.2373143.8981NANA0.8740.9416
87NA146.0282130.6809161.3755NANA0.85040.9999
88NA133.6831118.0542149.312NANA0.82920.9806
89NA140.273124.3504156.1955NANA0.8080.9977
90NA153.215137.0219169.4081NANA0.78831
91NA109.574393.181125.9676NANA0.76980.181
92NA122.9644106.3837139.545NANA0.75220.7522

\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 & 104.4 & - & - & - & - & - & - & - \tabularnewline
69 & 128.9 & - & - & - & - & - & - & - \tabularnewline
70 & 135.9 & - & - & - & - & - & - & - \tabularnewline
71 & 133.3 & - & - & - & - & - & - & - \tabularnewline
72 & 121.3 & - & - & - & - & - & - & - \tabularnewline
73 & 120.5 & - & - & - & - & - & - & - \tabularnewline
74 & 120.4 & - & - & - & - & - & - & - \tabularnewline
75 & 137.9 & - & - & - & - & - & - & - \tabularnewline
76 & 126.1 & - & - & - & - & - & - & - \tabularnewline
77 & 133.2 & - & - & - & - & - & - & - \tabularnewline
78 & 146.6 & - & - & - & - & - & - & - \tabularnewline
79 & 103.4 & - & - & - & - & - & - & - \tabularnewline
80 & 117.2 & - & - & - & - & - & - & - \tabularnewline
81 & NA & 141.2005 & 129.2817 & 153.1194 & NA & 1 & 0.9785 & 1 \tabularnewline
82 & NA & 147.4103 & 135.2517 & 159.569 & NA & NA & 0.9682 & 1 \tabularnewline
83 & NA & 143.8841 & 131.2209 & 156.5472 & NA & NA & 0.9493 & 1 \tabularnewline
84 & NA & 131.2954 & 117.2445 & 145.3463 & NA & NA & 0.9184 & 0.9754 \tabularnewline
85 & NA & 129.8238 & 115.4363 & 144.2113 & NA & NA & 0.898 & 0.9573 \tabularnewline
86 & NA & 129.0677 & 114.2373 & 143.8981 & NA & NA & 0.874 & 0.9416 \tabularnewline
87 & NA & 146.0282 & 130.6809 & 161.3755 & NA & NA & 0.8504 & 0.9999 \tabularnewline
88 & NA & 133.6831 & 118.0542 & 149.312 & NA & NA & 0.8292 & 0.9806 \tabularnewline
89 & NA & 140.273 & 124.3504 & 156.1955 & NA & NA & 0.808 & 0.9977 \tabularnewline
90 & NA & 153.215 & 137.0219 & 169.4081 & NA & NA & 0.7883 & 1 \tabularnewline
91 & NA & 109.5743 & 93.181 & 125.9676 & NA & NA & 0.7698 & 0.181 \tabularnewline
92 & NA & 122.9644 & 106.3837 & 139.545 & NA & NA & 0.7522 & 0.7522 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32030&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]104.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]69[/C][C]128.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]70[/C][C]135.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]71[/C][C]133.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]72[/C][C]121.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]73[/C][C]120.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]74[/C][C]120.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]75[/C][C]137.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]76[/C][C]126.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]77[/C][C]133.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]78[/C][C]146.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]79[/C][C]103.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]80[/C][C]117.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]81[/C][C]NA[/C][C]141.2005[/C][C]129.2817[/C][C]153.1194[/C][C]NA[/C][C]1[/C][C]0.9785[/C][C]1[/C][/ROW]
[ROW][C]82[/C][C]NA[/C][C]147.4103[/C][C]135.2517[/C][C]159.569[/C][C]NA[/C][C]NA[/C][C]0.9682[/C][C]1[/C][/ROW]
[ROW][C]83[/C][C]NA[/C][C]143.8841[/C][C]131.2209[/C][C]156.5472[/C][C]NA[/C][C]NA[/C][C]0.9493[/C][C]1[/C][/ROW]
[ROW][C]84[/C][C]NA[/C][C]131.2954[/C][C]117.2445[/C][C]145.3463[/C][C]NA[/C][C]NA[/C][C]0.9184[/C][C]0.9754[/C][/ROW]
[ROW][C]85[/C][C]NA[/C][C]129.8238[/C][C]115.4363[/C][C]144.2113[/C][C]NA[/C][C]NA[/C][C]0.898[/C][C]0.9573[/C][/ROW]
[ROW][C]86[/C][C]NA[/C][C]129.0677[/C][C]114.2373[/C][C]143.8981[/C][C]NA[/C][C]NA[/C][C]0.874[/C][C]0.9416[/C][/ROW]
[ROW][C]87[/C][C]NA[/C][C]146.0282[/C][C]130.6809[/C][C]161.3755[/C][C]NA[/C][C]NA[/C][C]0.8504[/C][C]0.9999[/C][/ROW]
[ROW][C]88[/C][C]NA[/C][C]133.6831[/C][C]118.0542[/C][C]149.312[/C][C]NA[/C][C]NA[/C][C]0.8292[/C][C]0.9806[/C][/ROW]
[ROW][C]89[/C][C]NA[/C][C]140.273[/C][C]124.3504[/C][C]156.1955[/C][C]NA[/C][C]NA[/C][C]0.808[/C][C]0.9977[/C][/ROW]
[ROW][C]90[/C][C]NA[/C][C]153.215[/C][C]137.0219[/C][C]169.4081[/C][C]NA[/C][C]NA[/C][C]0.7883[/C][C]1[/C][/ROW]
[ROW][C]91[/C][C]NA[/C][C]109.5743[/C][C]93.181[/C][C]125.9676[/C][C]NA[/C][C]NA[/C][C]0.7698[/C][C]0.181[/C][/ROW]
[ROW][C]92[/C][C]NA[/C][C]122.9644[/C][C]106.3837[/C][C]139.545[/C][C]NA[/C][C]NA[/C][C]0.7522[/C][C]0.7522[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32030&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32030&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])
68104.4-------
69128.9-------
70135.9-------
71133.3-------
72121.3-------
73120.5-------
74120.4-------
75137.9-------
76126.1-------
77133.2-------
78146.6-------
79103.4-------
80117.2-------
81NA141.2005129.2817153.1194NA10.97851
82NA147.4103135.2517159.569NANA0.96821
83NA143.8841131.2209156.5472NANA0.94931
84NA131.2954117.2445145.3463NANA0.91840.9754
85NA129.8238115.4363144.2113NANA0.8980.9573
86NA129.0677114.2373143.8981NANA0.8740.9416
87NA146.0282130.6809161.3755NANA0.85040.9999
88NA133.6831118.0542149.312NANA0.82920.9806
89NA140.273124.3504156.1955NANA0.8080.9977
90NA153.215137.0219169.4081NANA0.78831
91NA109.574393.181125.9676NANA0.76980.181
92NA122.9644106.3837139.545NANA0.75220.7522







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
810.0431NANANANANA
820.0421NANANANANA
830.0449NANANANANA
840.0546NANANANANA
850.0565NANANANANA
860.0586NANANANANA
870.0536NANANANANA
880.0596NANANANANA
890.0579NANANANANA
900.0539NANANANANA
910.0763NANANANANA
920.0688NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
81 & 0.0431 & NA & NA & NA & NA & NA \tabularnewline
82 & 0.0421 & NA & NA & NA & NA & NA \tabularnewline
83 & 0.0449 & NA & NA & NA & NA & NA \tabularnewline
84 & 0.0546 & NA & NA & NA & NA & NA \tabularnewline
85 & 0.0565 & NA & NA & NA & NA & NA \tabularnewline
86 & 0.0586 & NA & NA & NA & NA & NA \tabularnewline
87 & 0.0536 & NA & NA & NA & NA & NA \tabularnewline
88 & 0.0596 & NA & NA & NA & NA & NA \tabularnewline
89 & 0.0579 & NA & NA & NA & NA & NA \tabularnewline
90 & 0.0539 & NA & NA & NA & NA & NA \tabularnewline
91 & 0.0763 & NA & NA & NA & NA & NA \tabularnewline
92 & 0.0688 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32030&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.0431[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]82[/C][C]0.0421[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]83[/C][C]0.0449[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]84[/C][C]0.0546[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]85[/C][C]0.0565[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]86[/C][C]0.0586[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]87[/C][C]0.0536[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]88[/C][C]0.0596[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]89[/C][C]0.0579[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]90[/C][C]0.0539[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]91[/C][C]0.0763[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]92[/C][C]0.0688[/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=32030&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32030&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.0431NANANANANA
820.0421NANANANANA
830.0449NANANANANA
840.0546NANANANANA
850.0565NANANANANA
860.0586NANANANANA
870.0536NANANANANA
880.0596NANANANANA
890.0579NANANANANA
900.0539NANANANANA
910.0763NANANANANA
920.0688NANANANANA



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')