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, 15 Dec 2008 13:10:25 -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/15/t1229371919opnjqinjar1dxcg.htm/, Retrieved Wed, 15 May 2024 13:12:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33805, Retrieved Wed, 15 May 2024 13:12:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords3
Estimated Impact193
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2008-12-15 19:56:43] [fe7291e888d31b8c4db0b24d6c0f75c6]
-    D    [ARIMA Forecasting] [3] [2008-12-15 20:10:25] [458fee276d63daa9deadf4e7db401a64] [Current]
Feedback Forum

Post a new message
Dataseries X:
308347
298427
289231
291975
294912
293488
290555
284736
281818
287854
316263
325412
326011
328282
317480
317539
313737
312276
309391
302950
300316
304035
333476
337698
335932
323931
313927
314485
313218
309664
302963
298989
298423
301631
329765
335083
327616
309119
295916
291413
291542
284678
276475
272566
264981
263290
296806
303598
286994
276427
266424
267153
268381
262522
255542
253158
243803
250741
280445
285257
270976
261076
255603




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33805&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]4 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=33805&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33805&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 time4 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[51])
50276427-------
51266424-------
52267153254723.6164231716.2093277731.02350.14480.15940.15940.1594
53268381243113.3489194569.4744291657.22330.15380.16590.16590.1733
54262522231944.9835157238.9461306651.02080.21120.16960.16960.1828
55255542220689.6811116581.0771324798.28510.25590.21550.21550.1946
56253158209328.352772023.344346633.36140.26580.25470.25470.2075
57243803198005.380424606.3787371404.3820.30230.26650.26650.2197
58250741186705.3605-25324.0755398734.79660.27690.29880.29880.2306
59280445175391.804-77782.7602428566.36820.2080.27980.27980.2405
60285257164074.0223-132633.1747460781.21940.21170.2210.2210.2495
61270976152760.4674-189708.3849495229.31970.24930.22410.22410.2577
62261076141447.4437-248908.5424531803.42980.2740.25770.25770.2652
63255603130133.2122-310153.3598570419.78420.28820.280.280.272

\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[51]) \tabularnewline
50 & 276427 & - & - & - & - & - & - & - \tabularnewline
51 & 266424 & - & - & - & - & - & - & - \tabularnewline
52 & 267153 & 254723.6164 & 231716.2093 & 277731.0235 & 0.1448 & 0.1594 & 0.1594 & 0.1594 \tabularnewline
53 & 268381 & 243113.3489 & 194569.4744 & 291657.2233 & 0.1538 & 0.1659 & 0.1659 & 0.1733 \tabularnewline
54 & 262522 & 231944.9835 & 157238.9461 & 306651.0208 & 0.2112 & 0.1696 & 0.1696 & 0.1828 \tabularnewline
55 & 255542 & 220689.6811 & 116581.0771 & 324798.2851 & 0.2559 & 0.2155 & 0.2155 & 0.1946 \tabularnewline
56 & 253158 & 209328.3527 & 72023.344 & 346633.3614 & 0.2658 & 0.2547 & 0.2547 & 0.2075 \tabularnewline
57 & 243803 & 198005.3804 & 24606.3787 & 371404.382 & 0.3023 & 0.2665 & 0.2665 & 0.2197 \tabularnewline
58 & 250741 & 186705.3605 & -25324.0755 & 398734.7966 & 0.2769 & 0.2988 & 0.2988 & 0.2306 \tabularnewline
59 & 280445 & 175391.804 & -77782.7602 & 428566.3682 & 0.208 & 0.2798 & 0.2798 & 0.2405 \tabularnewline
60 & 285257 & 164074.0223 & -132633.1747 & 460781.2194 & 0.2117 & 0.221 & 0.221 & 0.2495 \tabularnewline
61 & 270976 & 152760.4674 & -189708.3849 & 495229.3197 & 0.2493 & 0.2241 & 0.2241 & 0.2577 \tabularnewline
62 & 261076 & 141447.4437 & -248908.5424 & 531803.4298 & 0.274 & 0.2577 & 0.2577 & 0.2652 \tabularnewline
63 & 255603 & 130133.2122 & -310153.3598 & 570419.7842 & 0.2882 & 0.28 & 0.28 & 0.272 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33805&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[51])[/C][/ROW]
[ROW][C]50[/C][C]276427[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]266424[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]267153[/C][C]254723.6164[/C][C]231716.2093[/C][C]277731.0235[/C][C]0.1448[/C][C]0.1594[/C][C]0.1594[/C][C]0.1594[/C][/ROW]
[ROW][C]53[/C][C]268381[/C][C]243113.3489[/C][C]194569.4744[/C][C]291657.2233[/C][C]0.1538[/C][C]0.1659[/C][C]0.1659[/C][C]0.1733[/C][/ROW]
[ROW][C]54[/C][C]262522[/C][C]231944.9835[/C][C]157238.9461[/C][C]306651.0208[/C][C]0.2112[/C][C]0.1696[/C][C]0.1696[/C][C]0.1828[/C][/ROW]
[ROW][C]55[/C][C]255542[/C][C]220689.6811[/C][C]116581.0771[/C][C]324798.2851[/C][C]0.2559[/C][C]0.2155[/C][C]0.2155[/C][C]0.1946[/C][/ROW]
[ROW][C]56[/C][C]253158[/C][C]209328.3527[/C][C]72023.344[/C][C]346633.3614[/C][C]0.2658[/C][C]0.2547[/C][C]0.2547[/C][C]0.2075[/C][/ROW]
[ROW][C]57[/C][C]243803[/C][C]198005.3804[/C][C]24606.3787[/C][C]371404.382[/C][C]0.3023[/C][C]0.2665[/C][C]0.2665[/C][C]0.2197[/C][/ROW]
[ROW][C]58[/C][C]250741[/C][C]186705.3605[/C][C]-25324.0755[/C][C]398734.7966[/C][C]0.2769[/C][C]0.2988[/C][C]0.2988[/C][C]0.2306[/C][/ROW]
[ROW][C]59[/C][C]280445[/C][C]175391.804[/C][C]-77782.7602[/C][C]428566.3682[/C][C]0.208[/C][C]0.2798[/C][C]0.2798[/C][C]0.2405[/C][/ROW]
[ROW][C]60[/C][C]285257[/C][C]164074.0223[/C][C]-132633.1747[/C][C]460781.2194[/C][C]0.2117[/C][C]0.221[/C][C]0.221[/C][C]0.2495[/C][/ROW]
[ROW][C]61[/C][C]270976[/C][C]152760.4674[/C][C]-189708.3849[/C][C]495229.3197[/C][C]0.2493[/C][C]0.2241[/C][C]0.2241[/C][C]0.2577[/C][/ROW]
[ROW][C]62[/C][C]261076[/C][C]141447.4437[/C][C]-248908.5424[/C][C]531803.4298[/C][C]0.274[/C][C]0.2577[/C][C]0.2577[/C][C]0.2652[/C][/ROW]
[ROW][C]63[/C][C]255603[/C][C]130133.2122[/C][C]-310153.3598[/C][C]570419.7842[/C][C]0.2882[/C][C]0.28[/C][C]0.28[/C][C]0.272[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33805&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33805&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[51])
50276427-------
51266424-------
52267153254723.6164231716.2093277731.02350.14480.15940.15940.1594
53268381243113.3489194569.4744291657.22330.15380.16590.16590.1733
54262522231944.9835157238.9461306651.02080.21120.16960.16960.1828
55255542220689.6811116581.0771324798.28510.25590.21550.21550.1946
56253158209328.352772023.344346633.36140.26580.25470.25470.2075
57243803198005.380424606.3787371404.3820.30230.26650.26650.2197
58250741186705.3605-25324.0755398734.79660.27690.29880.29880.2306
59280445175391.804-77782.7602428566.36820.2080.27980.27980.2405
60285257164074.0223-132633.1747460781.21940.21170.2210.2210.2495
61270976152760.4674-189708.3849495229.31970.24930.22410.22410.2577
62261076141447.4437-248908.5424531803.42980.2740.25770.25770.2652
63255603130133.2122-310153.3598570419.78420.28820.280.280.272







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
520.04610.04880.0041154489577.375412874131.44793588.054
530.10190.10390.0087638454193.045653204516.08717294.1426
540.16430.13180.011934953940.177277912828.34818826.8244
550.24070.15790.01321214684133.9316101223677.827610060.9979
560.33470.20940.01741921037980.9887160086498.415712652.5293
570.44680.23130.01932097421962.9877174785163.582313220.634
580.57940.3430.02864100563120.8081341713593.400718485.4968
590.73650.5990.049911036173997.1585919681166.429930326.2455
600.92260.73860.061514685314078.97951223776173.248334982.5124
611.14380.77390.064513974912147.791164576012.315834125.8848
621.4080.84570.070514310991485.1691192582623.764134533.7896
631.72620.96420.080315742667649.69581311888970.80836220.0079

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
52 & 0.0461 & 0.0488 & 0.0041 & 154489577.3754 & 12874131.4479 & 3588.054 \tabularnewline
53 & 0.1019 & 0.1039 & 0.0087 & 638454193.0456 & 53204516.0871 & 7294.1426 \tabularnewline
54 & 0.1643 & 0.1318 & 0.011 & 934953940.1772 & 77912828.3481 & 8826.8244 \tabularnewline
55 & 0.2407 & 0.1579 & 0.0132 & 1214684133.9316 & 101223677.8276 & 10060.9979 \tabularnewline
56 & 0.3347 & 0.2094 & 0.0174 & 1921037980.9887 & 160086498.4157 & 12652.5293 \tabularnewline
57 & 0.4468 & 0.2313 & 0.0193 & 2097421962.9877 & 174785163.5823 & 13220.634 \tabularnewline
58 & 0.5794 & 0.343 & 0.0286 & 4100563120.8081 & 341713593.4007 & 18485.4968 \tabularnewline
59 & 0.7365 & 0.599 & 0.0499 & 11036173997.1585 & 919681166.4299 & 30326.2455 \tabularnewline
60 & 0.9226 & 0.7386 & 0.0615 & 14685314078.9795 & 1223776173.2483 & 34982.5124 \tabularnewline
61 & 1.1438 & 0.7739 & 0.0645 & 13974912147.79 & 1164576012.3158 & 34125.8848 \tabularnewline
62 & 1.408 & 0.8457 & 0.0705 & 14310991485.169 & 1192582623.7641 & 34533.7896 \tabularnewline
63 & 1.7262 & 0.9642 & 0.0803 & 15742667649.6958 & 1311888970.808 & 36220.0079 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33805&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]52[/C][C]0.0461[/C][C]0.0488[/C][C]0.0041[/C][C]154489577.3754[/C][C]12874131.4479[/C][C]3588.054[/C][/ROW]
[ROW][C]53[/C][C]0.1019[/C][C]0.1039[/C][C]0.0087[/C][C]638454193.0456[/C][C]53204516.0871[/C][C]7294.1426[/C][/ROW]
[ROW][C]54[/C][C]0.1643[/C][C]0.1318[/C][C]0.011[/C][C]934953940.1772[/C][C]77912828.3481[/C][C]8826.8244[/C][/ROW]
[ROW][C]55[/C][C]0.2407[/C][C]0.1579[/C][C]0.0132[/C][C]1214684133.9316[/C][C]101223677.8276[/C][C]10060.9979[/C][/ROW]
[ROW][C]56[/C][C]0.3347[/C][C]0.2094[/C][C]0.0174[/C][C]1921037980.9887[/C][C]160086498.4157[/C][C]12652.5293[/C][/ROW]
[ROW][C]57[/C][C]0.4468[/C][C]0.2313[/C][C]0.0193[/C][C]2097421962.9877[/C][C]174785163.5823[/C][C]13220.634[/C][/ROW]
[ROW][C]58[/C][C]0.5794[/C][C]0.343[/C][C]0.0286[/C][C]4100563120.8081[/C][C]341713593.4007[/C][C]18485.4968[/C][/ROW]
[ROW][C]59[/C][C]0.7365[/C][C]0.599[/C][C]0.0499[/C][C]11036173997.1585[/C][C]919681166.4299[/C][C]30326.2455[/C][/ROW]
[ROW][C]60[/C][C]0.9226[/C][C]0.7386[/C][C]0.0615[/C][C]14685314078.9795[/C][C]1223776173.2483[/C][C]34982.5124[/C][/ROW]
[ROW][C]61[/C][C]1.1438[/C][C]0.7739[/C][C]0.0645[/C][C]13974912147.79[/C][C]1164576012.3158[/C][C]34125.8848[/C][/ROW]
[ROW][C]62[/C][C]1.408[/C][C]0.8457[/C][C]0.0705[/C][C]14310991485.169[/C][C]1192582623.7641[/C][C]34533.7896[/C][/ROW]
[ROW][C]63[/C][C]1.7262[/C][C]0.9642[/C][C]0.0803[/C][C]15742667649.6958[/C][C]1311888970.808[/C][C]36220.0079[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33805&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33805&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
520.04610.04880.0041154489577.375412874131.44793588.054
530.10190.10390.0087638454193.045653204516.08717294.1426
540.16430.13180.011934953940.177277912828.34818826.8244
550.24070.15790.01321214684133.9316101223677.827610060.9979
560.33470.20940.01741921037980.9887160086498.415712652.5293
570.44680.23130.01932097421962.9877174785163.582313220.634
580.57940.3430.02864100563120.8081341713593.400718485.4968
590.73650.5990.049911036173997.1585919681166.429930326.2455
600.92260.73860.061514685314078.97951223776173.248334982.5124
611.14380.77390.064513974912147.791164576012.315834125.8848
621.4080.84570.070514310991485.1691192582623.764134533.7896
631.72620.96420.080315742667649.69581311888970.80836220.0079



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