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 computationMon, 14 Dec 2009 05:09:21 -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/14/t12607926494sm48nburgvz7fv.htm/, Retrieved Sun, 05 May 2024 14:26:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67527, Retrieved Sun, 05 May 2024 14:26:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact100
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2009-12-14 12:09:21] [dd88bf4749af0c195ad4f54cb428da1c] [Current]
Feedback Forum

Post a new message
Dataseries X:
6802.96
7132.68
7073.29
7264.5
7105.33
7218.71
7225.72
7354.25
7745.46
8070.26
8366.33
8667.51
8854.34
9218.1
9332.9
9358.31
9248.66
9401.2
9652.04
9957.38
10110.63
10169.26
10343.78
10750.21
11337.5
11786.96
12083.04
12007.74
11745.93
11051.51
11445.9
11924.88
12247.63
12690.91
12910.7
13202.12
13654.67
13862.82
13523.93
14211.17
14510.35
14289.23
14111.82
13086.59
13351.54
13747.69
12855.61
12926.93
12121.95
11731.65
11639.51
12163.78
12029.53
11234.18
9852.13
9709.04
9332.75
7108.6
6691.49
6143.05




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67527&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[48])
4712855.61-------
4812926.93-------
4912121.9512976.092312279.474213672.71040.00810.5550.5550.555
5011731.6512982.071711865.348414098.7950.01410.93440.93440.5385
5111639.5112982.79911552.158614413.43930.03290.95670.95670.5305
5212163.7812982.887411294.37914671.39580.17090.94050.94050.5259
5312029.5312982.898211070.842114894.95420.16420.79940.79940.5229
5411234.1812982.899510870.809215094.98970.05230.81180.81180.5207
559852.1312982.899610688.144715277.65460.00370.93240.93240.5191
569709.0412982.899710518.984715446.81460.00460.99360.99360.5178
579332.7512982.899710360.714915605.08450.00320.99280.99280.5167
587108.612982.899710211.468715754.330600.99510.99510.5158
596691.4912982.899710069.85915895.94030110.515
606143.0512982.89979934.821216030.97810110.5144

\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[48]) \tabularnewline
47 & 12855.61 & - & - & - & - & - & - & - \tabularnewline
48 & 12926.93 & - & - & - & - & - & - & - \tabularnewline
49 & 12121.95 & 12976.0923 & 12279.4742 & 13672.7104 & 0.0081 & 0.555 & 0.555 & 0.555 \tabularnewline
50 & 11731.65 & 12982.0717 & 11865.3484 & 14098.795 & 0.0141 & 0.9344 & 0.9344 & 0.5385 \tabularnewline
51 & 11639.51 & 12982.799 & 11552.1586 & 14413.4393 & 0.0329 & 0.9567 & 0.9567 & 0.5305 \tabularnewline
52 & 12163.78 & 12982.8874 & 11294.379 & 14671.3958 & 0.1709 & 0.9405 & 0.9405 & 0.5259 \tabularnewline
53 & 12029.53 & 12982.8982 & 11070.8421 & 14894.9542 & 0.1642 & 0.7994 & 0.7994 & 0.5229 \tabularnewline
54 & 11234.18 & 12982.8995 & 10870.8092 & 15094.9897 & 0.0523 & 0.8118 & 0.8118 & 0.5207 \tabularnewline
55 & 9852.13 & 12982.8996 & 10688.1447 & 15277.6546 & 0.0037 & 0.9324 & 0.9324 & 0.5191 \tabularnewline
56 & 9709.04 & 12982.8997 & 10518.9847 & 15446.8146 & 0.0046 & 0.9936 & 0.9936 & 0.5178 \tabularnewline
57 & 9332.75 & 12982.8997 & 10360.7149 & 15605.0845 & 0.0032 & 0.9928 & 0.9928 & 0.5167 \tabularnewline
58 & 7108.6 & 12982.8997 & 10211.4687 & 15754.3306 & 0 & 0.9951 & 0.9951 & 0.5158 \tabularnewline
59 & 6691.49 & 12982.8997 & 10069.859 & 15895.9403 & 0 & 1 & 1 & 0.515 \tabularnewline
60 & 6143.05 & 12982.8997 & 9934.8212 & 16030.9781 & 0 & 1 & 1 & 0.5144 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67527&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[48])[/C][/ROW]
[ROW][C]47[/C][C]12855.61[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]12926.93[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]12121.95[/C][C]12976.0923[/C][C]12279.4742[/C][C]13672.7104[/C][C]0.0081[/C][C]0.555[/C][C]0.555[/C][C]0.555[/C][/ROW]
[ROW][C]50[/C][C]11731.65[/C][C]12982.0717[/C][C]11865.3484[/C][C]14098.795[/C][C]0.0141[/C][C]0.9344[/C][C]0.9344[/C][C]0.5385[/C][/ROW]
[ROW][C]51[/C][C]11639.51[/C][C]12982.799[/C][C]11552.1586[/C][C]14413.4393[/C][C]0.0329[/C][C]0.9567[/C][C]0.9567[/C][C]0.5305[/C][/ROW]
[ROW][C]52[/C][C]12163.78[/C][C]12982.8874[/C][C]11294.379[/C][C]14671.3958[/C][C]0.1709[/C][C]0.9405[/C][C]0.9405[/C][C]0.5259[/C][/ROW]
[ROW][C]53[/C][C]12029.53[/C][C]12982.8982[/C][C]11070.8421[/C][C]14894.9542[/C][C]0.1642[/C][C]0.7994[/C][C]0.7994[/C][C]0.5229[/C][/ROW]
[ROW][C]54[/C][C]11234.18[/C][C]12982.8995[/C][C]10870.8092[/C][C]15094.9897[/C][C]0.0523[/C][C]0.8118[/C][C]0.8118[/C][C]0.5207[/C][/ROW]
[ROW][C]55[/C][C]9852.13[/C][C]12982.8996[/C][C]10688.1447[/C][C]15277.6546[/C][C]0.0037[/C][C]0.9324[/C][C]0.9324[/C][C]0.5191[/C][/ROW]
[ROW][C]56[/C][C]9709.04[/C][C]12982.8997[/C][C]10518.9847[/C][C]15446.8146[/C][C]0.0046[/C][C]0.9936[/C][C]0.9936[/C][C]0.5178[/C][/ROW]
[ROW][C]57[/C][C]9332.75[/C][C]12982.8997[/C][C]10360.7149[/C][C]15605.0845[/C][C]0.0032[/C][C]0.9928[/C][C]0.9928[/C][C]0.5167[/C][/ROW]
[ROW][C]58[/C][C]7108.6[/C][C]12982.8997[/C][C]10211.4687[/C][C]15754.3306[/C][C]0[/C][C]0.9951[/C][C]0.9951[/C][C]0.5158[/C][/ROW]
[ROW][C]59[/C][C]6691.49[/C][C]12982.8997[/C][C]10069.859[/C][C]15895.9403[/C][C]0[/C][C]1[/C][C]1[/C][C]0.515[/C][/ROW]
[ROW][C]60[/C][C]6143.05[/C][C]12982.8997[/C][C]9934.8212[/C][C]16030.9781[/C][C]0[/C][C]1[/C][C]1[/C][C]0.5144[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67527&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67527&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[48])
4712855.61-------
4812926.93-------
4912121.9512976.092312279.474213672.71040.00810.5550.5550.555
5011731.6512982.071711865.348414098.7950.01410.93440.93440.5385
5111639.5112982.79911552.158614413.43930.03290.95670.95670.5305
5212163.7812982.887411294.37914671.39580.17090.94050.94050.5259
5312029.5312982.898211070.842114894.95420.16420.79940.79940.5229
5411234.1812982.899510870.809215094.98970.05230.81180.81180.5207
559852.1312982.899610688.144715277.65460.00370.93240.93240.5191
569709.0412982.899710518.984715446.81460.00460.99360.99360.5178
579332.7512982.899710360.714915605.08450.00320.99280.99280.5167
587108.612982.899710211.468715754.330600.99510.99510.5158
596691.4912982.899710069.85915895.94030110.515
606143.0512982.89979934.821216030.97810110.5144







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
490.0274-0.06580729559.068600
500.0439-0.09630.08111563554.45121146556.75991070.7739
510.0562-0.10350.08851804425.23121365846.25031168.6943
520.0664-0.06310.0822670936.9541192118.92631091.842
530.0751-0.07340.0804908910.86971135477.3151065.5878
540.083-0.13470.08953058019.81831455901.06551206.6073
550.0902-0.24110.11119801718.53082648160.70341627.317
560.0968-0.25220.128810718157.06093656910.24811912.305
570.103-0.28120.145713323592.54364730986.05872175.083
580.1089-0.45250.176434507396.50417708627.10322776.4414
590.1145-0.48460.204439581835.519610606191.50473256.7148
600.1198-0.52680.231346783543.381913620970.82783690.6599

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
49 & 0.0274 & -0.0658 & 0 & 729559.0686 & 0 & 0 \tabularnewline
50 & 0.0439 & -0.0963 & 0.0811 & 1563554.4512 & 1146556.7599 & 1070.7739 \tabularnewline
51 & 0.0562 & -0.1035 & 0.0885 & 1804425.2312 & 1365846.2503 & 1168.6943 \tabularnewline
52 & 0.0664 & -0.0631 & 0.0822 & 670936.954 & 1192118.9263 & 1091.842 \tabularnewline
53 & 0.0751 & -0.0734 & 0.0804 & 908910.8697 & 1135477.315 & 1065.5878 \tabularnewline
54 & 0.083 & -0.1347 & 0.0895 & 3058019.8183 & 1455901.0655 & 1206.6073 \tabularnewline
55 & 0.0902 & -0.2411 & 0.1111 & 9801718.5308 & 2648160.7034 & 1627.317 \tabularnewline
56 & 0.0968 & -0.2522 & 0.1288 & 10718157.0609 & 3656910.2481 & 1912.305 \tabularnewline
57 & 0.103 & -0.2812 & 0.1457 & 13323592.5436 & 4730986.0587 & 2175.083 \tabularnewline
58 & 0.1089 & -0.4525 & 0.1764 & 34507396.5041 & 7708627.1032 & 2776.4414 \tabularnewline
59 & 0.1145 & -0.4846 & 0.2044 & 39581835.5196 & 10606191.5047 & 3256.7148 \tabularnewline
60 & 0.1198 & -0.5268 & 0.2313 & 46783543.3819 & 13620970.8278 & 3690.6599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67527&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]49[/C][C]0.0274[/C][C]-0.0658[/C][C]0[/C][C]729559.0686[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]50[/C][C]0.0439[/C][C]-0.0963[/C][C]0.0811[/C][C]1563554.4512[/C][C]1146556.7599[/C][C]1070.7739[/C][/ROW]
[ROW][C]51[/C][C]0.0562[/C][C]-0.1035[/C][C]0.0885[/C][C]1804425.2312[/C][C]1365846.2503[/C][C]1168.6943[/C][/ROW]
[ROW][C]52[/C][C]0.0664[/C][C]-0.0631[/C][C]0.0822[/C][C]670936.954[/C][C]1192118.9263[/C][C]1091.842[/C][/ROW]
[ROW][C]53[/C][C]0.0751[/C][C]-0.0734[/C][C]0.0804[/C][C]908910.8697[/C][C]1135477.315[/C][C]1065.5878[/C][/ROW]
[ROW][C]54[/C][C]0.083[/C][C]-0.1347[/C][C]0.0895[/C][C]3058019.8183[/C][C]1455901.0655[/C][C]1206.6073[/C][/ROW]
[ROW][C]55[/C][C]0.0902[/C][C]-0.2411[/C][C]0.1111[/C][C]9801718.5308[/C][C]2648160.7034[/C][C]1627.317[/C][/ROW]
[ROW][C]56[/C][C]0.0968[/C][C]-0.2522[/C][C]0.1288[/C][C]10718157.0609[/C][C]3656910.2481[/C][C]1912.305[/C][/ROW]
[ROW][C]57[/C][C]0.103[/C][C]-0.2812[/C][C]0.1457[/C][C]13323592.5436[/C][C]4730986.0587[/C][C]2175.083[/C][/ROW]
[ROW][C]58[/C][C]0.1089[/C][C]-0.4525[/C][C]0.1764[/C][C]34507396.5041[/C][C]7708627.1032[/C][C]2776.4414[/C][/ROW]
[ROW][C]59[/C][C]0.1145[/C][C]-0.4846[/C][C]0.2044[/C][C]39581835.5196[/C][C]10606191.5047[/C][C]3256.7148[/C][/ROW]
[ROW][C]60[/C][C]0.1198[/C][C]-0.5268[/C][C]0.2313[/C][C]46783543.3819[/C][C]13620970.8278[/C][C]3690.6599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67527&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67527&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
490.0274-0.06580729559.068600
500.0439-0.09630.08111563554.45121146556.75991070.7739
510.0562-0.10350.08851804425.23121365846.25031168.6943
520.0664-0.06310.0822670936.9541192118.92631091.842
530.0751-0.07340.0804908910.86971135477.3151065.5878
540.083-0.13470.08953058019.81831455901.06551206.6073
550.0902-0.24110.11119801718.53082648160.70341627.317
560.0968-0.25220.128810718157.06093656910.24811912.305
570.103-0.28120.145713323592.54364730986.05872175.083
580.1089-0.45250.176434507396.50417708627.10322776.4414
590.1145-0.48460.204439581835.519610606191.50473256.7148
600.1198-0.52680.231346783543.381913620970.82783690.6599



Parameters (Session):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; par8 = 0 ; par9 = 0 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; 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,par1))
(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.mape1 <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.mse1 <- 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.se[i] = (x[nx+i] - forecast$pred[i])^2
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[1] = abs(perf.pe[1])
perf.mse[1] = abs(perf.se[1])
for (i in 2:fx) {
perf.mape[i] = perf.mape[i-1] + abs(perf.pe[i])
perf.mape1[i] = perf.mape[i] / i
perf.mse[i] = perf.mse[i-1] + perf.se[i]
perf.mse1[i] = perf.mse[i] / i
}
perf.rmse = sqrt(perf.mse1)
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:par1] <- 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.mape1[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse1[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')