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 computationThu, 03 Dec 2009 11:20:42 -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/2009/Dec/03/t1259864551d24neuneypgkexs.htm/, Retrieved Fri, 19 Apr 2024 03:49:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63027, Retrieved Fri, 19 Apr 2024 03:49:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact114
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA forecasting] [2009-12-03 18:20:42] [2622964eb3e61db9b0dfd11950e3a18c] [Current]
Feedback Forum

Post a new message
Dataseries X:
5560
3922
3759
4138
4634
3996
4308
4429
5219
4929
5755
5592
4163
4962
5208
4755
4491
5732
5731
5040
6102
4904
5369
5578
4619
4731
5011
5299
4146
4625
4736
4219
5116
4205
4121
5103
4300
4578
3809
5526
4247
3830
4394
4826
4409
4569
4106
4794
3914
3793
4405
4022
4100
4788
3163
3585
3903
4178
3863
4187




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63027&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[60])
484794-------
493914-------
503793-------
514405-------
524022-------
534100-------
544788-------
553163-------
563585-------
573903-------
584178-------
593863-------
604187-------
61NA4102.92383152.74965206.9517NA0.44070.63130.4407
62NA4004.98993038.03235136.3664NANA0.64330.3763
63NA4116.78373092.00515322.2169NANA0.31970.4546
64NA4082.87442915.93275492.7074NANA0.53370.4425
65NA4053.00432844.59445526.3209NANA0.47510.4293
66NA4091.22823.61595650.214NANA0.19050.4521
67NA4077.90222737.52015750.1797NANA0.85820.4491
68NA4068.98342682.35695815.0961NANA0.70650.4473
69NA4081.94112643.29515910.048NANA0.57610.4552
70NA4076.84262585.62425991.7257NANA0.45880.4551
71NA4074.24912539.01946063.0288NANA0.58250.4558
72NA4078.61742498.25096143.4962NANA0.4590.459

\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 & 4794 & - & - & - & - & - & - & - \tabularnewline
49 & 3914 & - & - & - & - & - & - & - \tabularnewline
50 & 3793 & - & - & - & - & - & - & - \tabularnewline
51 & 4405 & - & - & - & - & - & - & - \tabularnewline
52 & 4022 & - & - & - & - & - & - & - \tabularnewline
53 & 4100 & - & - & - & - & - & - & - \tabularnewline
54 & 4788 & - & - & - & - & - & - & - \tabularnewline
55 & 3163 & - & - & - & - & - & - & - \tabularnewline
56 & 3585 & - & - & - & - & - & - & - \tabularnewline
57 & 3903 & - & - & - & - & - & - & - \tabularnewline
58 & 4178 & - & - & - & - & - & - & - \tabularnewline
59 & 3863 & - & - & - & - & - & - & - \tabularnewline
60 & 4187 & - & - & - & - & - & - & - \tabularnewline
61 & NA & 4102.9238 & 3152.7496 & 5206.9517 & NA & 0.4407 & 0.6313 & 0.4407 \tabularnewline
62 & NA & 4004.9899 & 3038.0323 & 5136.3664 & NA & NA & 0.6433 & 0.3763 \tabularnewline
63 & NA & 4116.7837 & 3092.0051 & 5322.2169 & NA & NA & 0.3197 & 0.4546 \tabularnewline
64 & NA & 4082.8744 & 2915.9327 & 5492.7074 & NA & NA & 0.5337 & 0.4425 \tabularnewline
65 & NA & 4053.0043 & 2844.5944 & 5526.3209 & NA & NA & 0.4751 & 0.4293 \tabularnewline
66 & NA & 4091.2 & 2823.6159 & 5650.214 & NA & NA & 0.1905 & 0.4521 \tabularnewline
67 & NA & 4077.9022 & 2737.5201 & 5750.1797 & NA & NA & 0.8582 & 0.4491 \tabularnewline
68 & NA & 4068.9834 & 2682.3569 & 5815.0961 & NA & NA & 0.7065 & 0.4473 \tabularnewline
69 & NA & 4081.9411 & 2643.2951 & 5910.048 & NA & NA & 0.5761 & 0.4552 \tabularnewline
70 & NA & 4076.8426 & 2585.6242 & 5991.7257 & NA & NA & 0.4588 & 0.4551 \tabularnewline
71 & NA & 4074.2491 & 2539.0194 & 6063.0288 & NA & NA & 0.5825 & 0.4558 \tabularnewline
72 & NA & 4078.6174 & 2498.2509 & 6143.4962 & NA & NA & 0.459 & 0.459 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63027&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]4794[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]3914[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]3793[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]4405[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]4022[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]53[/C][C]4100[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]4788[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]3163[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]3585[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]3903[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]4178[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]3863[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]4187[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]NA[/C][C]4102.9238[/C][C]3152.7496[/C][C]5206.9517[/C][C]NA[/C][C]0.4407[/C][C]0.6313[/C][C]0.4407[/C][/ROW]
[ROW][C]62[/C][C]NA[/C][C]4004.9899[/C][C]3038.0323[/C][C]5136.3664[/C][C]NA[/C][C]NA[/C][C]0.6433[/C][C]0.3763[/C][/ROW]
[ROW][C]63[/C][C]NA[/C][C]4116.7837[/C][C]3092.0051[/C][C]5322.2169[/C][C]NA[/C][C]NA[/C][C]0.3197[/C][C]0.4546[/C][/ROW]
[ROW][C]64[/C][C]NA[/C][C]4082.8744[/C][C]2915.9327[/C][C]5492.7074[/C][C]NA[/C][C]NA[/C][C]0.5337[/C][C]0.4425[/C][/ROW]
[ROW][C]65[/C][C]NA[/C][C]4053.0043[/C][C]2844.5944[/C][C]5526.3209[/C][C]NA[/C][C]NA[/C][C]0.4751[/C][C]0.4293[/C][/ROW]
[ROW][C]66[/C][C]NA[/C][C]4091.2[/C][C]2823.6159[/C][C]5650.214[/C][C]NA[/C][C]NA[/C][C]0.1905[/C][C]0.4521[/C][/ROW]
[ROW][C]67[/C][C]NA[/C][C]4077.9022[/C][C]2737.5201[/C][C]5750.1797[/C][C]NA[/C][C]NA[/C][C]0.8582[/C][C]0.4491[/C][/ROW]
[ROW][C]68[/C][C]NA[/C][C]4068.9834[/C][C]2682.3569[/C][C]5815.0961[/C][C]NA[/C][C]NA[/C][C]0.7065[/C][C]0.4473[/C][/ROW]
[ROW][C]69[/C][C]NA[/C][C]4081.9411[/C][C]2643.2951[/C][C]5910.048[/C][C]NA[/C][C]NA[/C][C]0.5761[/C][C]0.4552[/C][/ROW]
[ROW][C]70[/C][C]NA[/C][C]4076.8426[/C][C]2585.6242[/C][C]5991.7257[/C][C]NA[/C][C]NA[/C][C]0.4588[/C][C]0.4551[/C][/ROW]
[ROW][C]71[/C][C]NA[/C][C]4074.2491[/C][C]2539.0194[/C][C]6063.0288[/C][C]NA[/C][C]NA[/C][C]0.5825[/C][C]0.4558[/C][/ROW]
[ROW][C]72[/C][C]NA[/C][C]4078.6174[/C][C]2498.2509[/C][C]6143.4962[/C][C]NA[/C][C]NA[/C][C]0.459[/C][C]0.459[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63027&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63027&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])
484794-------
493914-------
503793-------
514405-------
524022-------
534100-------
544788-------
553163-------
563585-------
573903-------
584178-------
593863-------
604187-------
61NA4102.92383152.74965206.9517NA0.44070.63130.4407
62NA4004.98993038.03235136.3664NANA0.64330.3763
63NA4116.78373092.00515322.2169NANA0.31970.4546
64NA4082.87442915.93275492.7074NANA0.53370.4425
65NA4053.00432844.59445526.3209NANA0.47510.4293
66NA4091.22823.61595650.214NANA0.19050.4521
67NA4077.90222737.52015750.1797NANA0.85820.4491
68NA4068.98342682.35695815.0961NANA0.70650.4473
69NA4081.94112643.29515910.048NANA0.57610.4552
70NA4076.84262585.62425991.7257NANA0.45880.4551
71NA4074.24912539.01946063.0288NANA0.58250.4558
72NA4078.61742498.25096143.4962NANA0.4590.459







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
610.1373NANANANANA
620.1441NANANANANA
630.1494NANANANANA
640.1762NANANANANA
650.1855NANANANANA
660.1944NANANANANA
670.2092NANANANANA
680.2189NANANANANA
690.2285NANANANANA
700.2396NANANANANA
710.249NANANANANA
720.2583NANANANANA

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
61 & 0.1373 & NA & NA & NA & NA & NA \tabularnewline
62 & 0.1441 & NA & NA & NA & NA & NA \tabularnewline
63 & 0.1494 & NA & NA & NA & NA & NA \tabularnewline
64 & 0.1762 & NA & NA & NA & NA & NA \tabularnewline
65 & 0.1855 & NA & NA & NA & NA & NA \tabularnewline
66 & 0.1944 & NA & NA & NA & NA & NA \tabularnewline
67 & 0.2092 & NA & NA & NA & NA & NA \tabularnewline
68 & 0.2189 & NA & NA & NA & NA & NA \tabularnewline
69 & 0.2285 & NA & NA & NA & NA & NA \tabularnewline
70 & 0.2396 & NA & NA & NA & NA & NA \tabularnewline
71 & 0.249 & NA & NA & NA & NA & NA \tabularnewline
72 & 0.2583 & NA & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63027&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.1373[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]62[/C][C]0.1441[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]63[/C][C]0.1494[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]64[/C][C]0.1762[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]65[/C][C]0.1855[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]66[/C][C]0.1944[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]67[/C][C]0.2092[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]68[/C][C]0.2189[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]69[/C][C]0.2285[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]70[/C][C]0.2396[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]71[/C][C]0.249[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]72[/C][C]0.2583[/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=63027&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63027&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.1373NANANANANA
620.1441NANANANANA
630.1494NANANANANA
640.1762NANANANANA
650.1855NANANANANA
660.1944NANANANANA
670.2092NANANANANA
680.2189NANANANANA
690.2285NANANANANA
700.2396NANANANANA
710.249NANANANANA
720.2583NANANANANA



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