Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSat, 13 Dec 2008 08:39:27 -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/13/t1229182859zg3hfw5yavgyx1b.htm/, Retrieved Sun, 19 May 2024 07:19:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33156, Retrieved Sun, 19 May 2024 07:19:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact151
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [marlies.polfliet_...] [2008-12-13 15:39:27] [e221948dd14811c7d88a6530ac2a8702] [Current]
-   PD    [ARIMA Forecasting] [marlies.polfliet_...] [2008-12-13 15:45:08] [fdc296cbeb5d8064cb0dbd634c3fdc55]
Feedback Forum

Post a new message
Dataseries X:
71,7
77,5
89,8
80,3
78,7
93,8
57,6
60,6
91
85,3
77,4
77,3
68,3
69,9
81,7
75,1
69,9
84
54,3
60
89,9
77
85,3
77,6
69,2
75,5
85,7
72,2
79,9
85,3
52,2
61,2
82,4
85,4
78,2
70,2
70,2
69,3
77,5
66,1
69
79,2
56,2
63,3
77,8
92
78,1
65,1
71,1
70,9
72
81,9
70,6
72,5
65,1
61,1




Summary of computational 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 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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33156&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33156&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33156&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'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[56])
4463.3-------
4577.8-------
4692-------
4778.1-------
4865.1-------
4971.1-------
5070.9-------
5172-------
5281.9-------
5370.6-------
5472.5-------
5565.1-------
5661.1-------
57NA79.995768.30696.1772NA0.9890.60490.989
58NA90.656175.954111.9034NANA0.45070.9968
59NA79.098167.451895.2664NANA0.54820.9854
60NA67.169658.394978.8407NANA0.63590.846
61NA71.350661.500184.7029NANA0.51470.9338
62NA71.34961.422784.8411NANA0.5260.9317
63NA74.27663.533389.0882NANA0.61840.9594
64NA78.524966.581495.3211NANA0.34680.979
65NA71.238961.116885.1031NANA0.5360.9241
66NA74.982863.817990.5512NANA0.62270.9597
67NA62.802754.601373.71NANA0.33990.6202
68NA61.904653.855472.5944NANA0.55860.5586

\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[56]) \tabularnewline
44 & 63.3 & - & - & - & - & - & - & - \tabularnewline
45 & 77.8 & - & - & - & - & - & - & - \tabularnewline
46 & 92 & - & - & - & - & - & - & - \tabularnewline
47 & 78.1 & - & - & - & - & - & - & - \tabularnewline
48 & 65.1 & - & - & - & - & - & - & - \tabularnewline
49 & 71.1 & - & - & - & - & - & - & - \tabularnewline
50 & 70.9 & - & - & - & - & - & - & - \tabularnewline
51 & 72 & - & - & - & - & - & - & - \tabularnewline
52 & 81.9 & - & - & - & - & - & - & - \tabularnewline
53 & 70.6 & - & - & - & - & - & - & - \tabularnewline
54 & 72.5 & - & - & - & - & - & - & - \tabularnewline
55 & 65.1 & - & - & - & - & - & - & - \tabularnewline
56 & 61.1 & - & - & - & - & - & - & - \tabularnewline
57 & NA & 79.9957 & 68.306 & 96.1772 & NA & 0.989 & 0.6049 & 0.989 \tabularnewline
58 & NA & 90.6561 & 75.954 & 111.9034 & NA & NA & 0.4507 & 0.9968 \tabularnewline
59 & NA & 79.0981 & 67.4518 & 95.2664 & NA & NA & 0.5482 & 0.9854 \tabularnewline
60 & NA & 67.1696 & 58.3949 & 78.8407 & NA & NA & 0.6359 & 0.846 \tabularnewline
61 & NA & 71.3506 & 61.5001 & 84.7029 & NA & NA & 0.5147 & 0.9338 \tabularnewline
62 & NA & 71.349 & 61.4227 & 84.8411 & NA & NA & 0.526 & 0.9317 \tabularnewline
63 & NA & 74.276 & 63.5333 & 89.0882 & NA & NA & 0.6184 & 0.9594 \tabularnewline
64 & NA & 78.5249 & 66.5814 & 95.3211 & NA & NA & 0.3468 & 0.979 \tabularnewline
65 & NA & 71.2389 & 61.1168 & 85.1031 & NA & NA & 0.536 & 0.9241 \tabularnewline
66 & NA & 74.9828 & 63.8179 & 90.5512 & NA & NA & 0.6227 & 0.9597 \tabularnewline
67 & NA & 62.8027 & 54.6013 & 73.71 & NA & NA & 0.3399 & 0.6202 \tabularnewline
68 & NA & 61.9046 & 53.8554 & 72.5944 & NA & NA & 0.5586 & 0.5586 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33156&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[56])[/C][/ROW]
[ROW][C]44[/C][C]63.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]77.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]92[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]78.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]65.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]71.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]70.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]72[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]81.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]53[/C][C]70.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]72.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]65.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]61.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]NA[/C][C]79.9957[/C][C]68.306[/C][C]96.1772[/C][C]NA[/C][C]0.989[/C][C]0.6049[/C][C]0.989[/C][/ROW]
[ROW][C]58[/C][C]NA[/C][C]90.6561[/C][C]75.954[/C][C]111.9034[/C][C]NA[/C][C]NA[/C][C]0.4507[/C][C]0.9968[/C][/ROW]
[ROW][C]59[/C][C]NA[/C][C]79.0981[/C][C]67.4518[/C][C]95.2664[/C][C]NA[/C][C]NA[/C][C]0.5482[/C][C]0.9854[/C][/ROW]
[ROW][C]60[/C][C]NA[/C][C]67.1696[/C][C]58.3949[/C][C]78.8407[/C][C]NA[/C][C]NA[/C][C]0.6359[/C][C]0.846[/C][/ROW]
[ROW][C]61[/C][C]NA[/C][C]71.3506[/C][C]61.5001[/C][C]84.7029[/C][C]NA[/C][C]NA[/C][C]0.5147[/C][C]0.9338[/C][/ROW]
[ROW][C]62[/C][C]NA[/C][C]71.349[/C][C]61.4227[/C][C]84.8411[/C][C]NA[/C][C]NA[/C][C]0.526[/C][C]0.9317[/C][/ROW]
[ROW][C]63[/C][C]NA[/C][C]74.276[/C][C]63.5333[/C][C]89.0882[/C][C]NA[/C][C]NA[/C][C]0.6184[/C][C]0.9594[/C][/ROW]
[ROW][C]64[/C][C]NA[/C][C]78.5249[/C][C]66.5814[/C][C]95.3211[/C][C]NA[/C][C]NA[/C][C]0.3468[/C][C]0.979[/C][/ROW]
[ROW][C]65[/C][C]NA[/C][C]71.2389[/C][C]61.1168[/C][C]85.1031[/C][C]NA[/C][C]NA[/C][C]0.536[/C][C]0.9241[/C][/ROW]
[ROW][C]66[/C][C]NA[/C][C]74.9828[/C][C]63.8179[/C][C]90.5512[/C][C]NA[/C][C]NA[/C][C]0.6227[/C][C]0.9597[/C][/ROW]
[ROW][C]67[/C][C]NA[/C][C]62.8027[/C][C]54.6013[/C][C]73.71[/C][C]NA[/C][C]NA[/C][C]0.3399[/C][C]0.6202[/C][/ROW]
[ROW][C]68[/C][C]NA[/C][C]61.9046[/C][C]53.8554[/C][C]72.5944[/C][C]NA[/C][C]NA[/C][C]0.5586[/C][C]0.5586[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33156&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33156&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[56])
4463.3-------
4577.8-------
4692-------
4778.1-------
4865.1-------
4971.1-------
5070.9-------
5172-------
5281.9-------
5370.6-------
5472.5-------
5565.1-------
5661.1-------
57NA79.995768.30696.1772NA0.9890.60490.989
58NA90.656175.954111.9034NANA0.45070.9968
59NA79.098167.451895.2664NANA0.54820.9854
60NA67.169658.394978.8407NANA0.63590.846
61NA71.350661.500184.7029NANA0.51470.9338
62NA71.34961.422784.8411NANA0.5260.9317
63NA74.27663.533389.0882NANA0.61840.9594
64NA78.524966.581495.3211NANA0.34680.979
65NA71.238961.116885.1031NANA0.5360.9241
66NA74.982863.817990.5512NANA0.62270.9597
67NA62.802754.601373.71NANA0.33990.6202
68NA61.904653.855472.5944NANA0.55860.5586







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
570.1032NANANANANA
580.1196NANANANANA
590.1043NANANANANA
600.0887NANANANANA
610.0955NANANANANA
620.0965NANANANANA
630.1017NANANANANA
640.1091NANANANANA
650.0993NANANANANA
660.1059NANANANANA
670.0886NANANANANA
680.0881NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
57 & 0.1032 & NA & NA & NA & NA & NA \tabularnewline
58 & 0.1196 & NA & NA & NA & NA & NA \tabularnewline
59 & 0.1043 & NA & NA & NA & NA & NA \tabularnewline
60 & 0.0887 & NA & NA & NA & NA & NA \tabularnewline
61 & 0.0955 & NA & NA & NA & NA & NA \tabularnewline
62 & 0.0965 & NA & NA & NA & NA & NA \tabularnewline
63 & 0.1017 & NA & NA & NA & NA & NA \tabularnewline
64 & 0.1091 & NA & NA & NA & NA & NA \tabularnewline
65 & 0.0993 & NA & NA & NA & NA & NA \tabularnewline
66 & 0.1059 & NA & NA & NA & NA & NA \tabularnewline
67 & 0.0886 & NA & NA & NA & NA & NA \tabularnewline
68 & 0.0881 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33156&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]57[/C][C]0.1032[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]0.1196[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]0.1043[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]0.0887[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]61[/C][C]0.0955[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]62[/C][C]0.0965[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]63[/C][C]0.1017[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]64[/C][C]0.1091[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]65[/C][C]0.0993[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]66[/C][C]0.1059[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]67[/C][C]0.0886[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]68[/C][C]0.0881[/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=33156&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33156&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
570.1032NANANANANA
580.1196NANANANANA
590.1043NANANANANA
600.0887NANANANANA
610.0955NANANANANA
620.0965NANANANANA
630.1017NANANANANA
640.1091NANANANANA
650.0993NANANANANA
660.1059NANANANANA
670.0886NANANANANA
680.0881NANANANANA



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