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 computationFri, 24 Dec 2010 15:08:41 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/24/t1293203190uhk44p6efzq37kw.htm/, Retrieved Tue, 30 Apr 2024 07:01:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115071, Retrieved Tue, 30 Apr 2024 07:01:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2010-12-24 15:08:41] [5e4b6b538311b7e958647ef5010fb0e5] [Current]
Feedback Forum

Post a new message
Dataseries X:
740
691
683
594
729
731
386
331
706
715
657
653
642
643
718
654
632
731
392
344
792
852
649
629
685
617
715
715
629
916
531
357
917
828
708
858
775
785
1006
789
734
906
532
387
991
841
892
782




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115071&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 time2 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[36])
24629-------
25685-------
26617-------
27715-------
28715-------
29629-------
30916-------
31531-------
32357-------
33917-------
34828-------
35708-------
36858-------
37775685512.7996857.20040.15280.02450.50.0245
38785617444.7996789.20040.02790.03610.50.003
391006715542.7996887.20045e-040.21280.50.0518
40789715542.7996887.20040.19985e-040.50.0518
41734629456.7996801.20040.1160.03430.50.0046
42906916743.79961088.20040.45470.98080.50.7454
43532531358.7996703.20040.495500.51e-04
44387357184.7996529.20040.36640.02320.50
45991917744.79961089.20040.199810.50.7491
46841828655.79961000.20040.44120.03180.50.3664
47892708535.7996880.20040.01810.0650.50.0439
48782858685.79961030.20040.19350.34940.50.5

\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[36]) \tabularnewline
24 & 629 & - & - & - & - & - & - & - \tabularnewline
25 & 685 & - & - & - & - & - & - & - \tabularnewline
26 & 617 & - & - & - & - & - & - & - \tabularnewline
27 & 715 & - & - & - & - & - & - & - \tabularnewline
28 & 715 & - & - & - & - & - & - & - \tabularnewline
29 & 629 & - & - & - & - & - & - & - \tabularnewline
30 & 916 & - & - & - & - & - & - & - \tabularnewline
31 & 531 & - & - & - & - & - & - & - \tabularnewline
32 & 357 & - & - & - & - & - & - & - \tabularnewline
33 & 917 & - & - & - & - & - & - & - \tabularnewline
34 & 828 & - & - & - & - & - & - & - \tabularnewline
35 & 708 & - & - & - & - & - & - & - \tabularnewline
36 & 858 & - & - & - & - & - & - & - \tabularnewline
37 & 775 & 685 & 512.7996 & 857.2004 & 0.1528 & 0.0245 & 0.5 & 0.0245 \tabularnewline
38 & 785 & 617 & 444.7996 & 789.2004 & 0.0279 & 0.0361 & 0.5 & 0.003 \tabularnewline
39 & 1006 & 715 & 542.7996 & 887.2004 & 5e-04 & 0.2128 & 0.5 & 0.0518 \tabularnewline
40 & 789 & 715 & 542.7996 & 887.2004 & 0.1998 & 5e-04 & 0.5 & 0.0518 \tabularnewline
41 & 734 & 629 & 456.7996 & 801.2004 & 0.116 & 0.0343 & 0.5 & 0.0046 \tabularnewline
42 & 906 & 916 & 743.7996 & 1088.2004 & 0.4547 & 0.9808 & 0.5 & 0.7454 \tabularnewline
43 & 532 & 531 & 358.7996 & 703.2004 & 0.4955 & 0 & 0.5 & 1e-04 \tabularnewline
44 & 387 & 357 & 184.7996 & 529.2004 & 0.3664 & 0.0232 & 0.5 & 0 \tabularnewline
45 & 991 & 917 & 744.7996 & 1089.2004 & 0.1998 & 1 & 0.5 & 0.7491 \tabularnewline
46 & 841 & 828 & 655.7996 & 1000.2004 & 0.4412 & 0.0318 & 0.5 & 0.3664 \tabularnewline
47 & 892 & 708 & 535.7996 & 880.2004 & 0.0181 & 0.065 & 0.5 & 0.0439 \tabularnewline
48 & 782 & 858 & 685.7996 & 1030.2004 & 0.1935 & 0.3494 & 0.5 & 0.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115071&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[36])[/C][/ROW]
[ROW][C]24[/C][C]629[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]25[/C][C]685[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]26[/C][C]617[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]27[/C][C]715[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]28[/C][C]715[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]29[/C][C]629[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]30[/C][C]916[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]31[/C][C]531[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]32[/C][C]357[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]33[/C][C]917[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]34[/C][C]828[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]35[/C][C]708[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]36[/C][C]858[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]37[/C][C]775[/C][C]685[/C][C]512.7996[/C][C]857.2004[/C][C]0.1528[/C][C]0.0245[/C][C]0.5[/C][C]0.0245[/C][/ROW]
[ROW][C]38[/C][C]785[/C][C]617[/C][C]444.7996[/C][C]789.2004[/C][C]0.0279[/C][C]0.0361[/C][C]0.5[/C][C]0.003[/C][/ROW]
[ROW][C]39[/C][C]1006[/C][C]715[/C][C]542.7996[/C][C]887.2004[/C][C]5e-04[/C][C]0.2128[/C][C]0.5[/C][C]0.0518[/C][/ROW]
[ROW][C]40[/C][C]789[/C][C]715[/C][C]542.7996[/C][C]887.2004[/C][C]0.1998[/C][C]5e-04[/C][C]0.5[/C][C]0.0518[/C][/ROW]
[ROW][C]41[/C][C]734[/C][C]629[/C][C]456.7996[/C][C]801.2004[/C][C]0.116[/C][C]0.0343[/C][C]0.5[/C][C]0.0046[/C][/ROW]
[ROW][C]42[/C][C]906[/C][C]916[/C][C]743.7996[/C][C]1088.2004[/C][C]0.4547[/C][C]0.9808[/C][C]0.5[/C][C]0.7454[/C][/ROW]
[ROW][C]43[/C][C]532[/C][C]531[/C][C]358.7996[/C][C]703.2004[/C][C]0.4955[/C][C]0[/C][C]0.5[/C][C]1e-04[/C][/ROW]
[ROW][C]44[/C][C]387[/C][C]357[/C][C]184.7996[/C][C]529.2004[/C][C]0.3664[/C][C]0.0232[/C][C]0.5[/C][C]0[/C][/ROW]
[ROW][C]45[/C][C]991[/C][C]917[/C][C]744.7996[/C][C]1089.2004[/C][C]0.1998[/C][C]1[/C][C]0.5[/C][C]0.7491[/C][/ROW]
[ROW][C]46[/C][C]841[/C][C]828[/C][C]655.7996[/C][C]1000.2004[/C][C]0.4412[/C][C]0.0318[/C][C]0.5[/C][C]0.3664[/C][/ROW]
[ROW][C]47[/C][C]892[/C][C]708[/C][C]535.7996[/C][C]880.2004[/C][C]0.0181[/C][C]0.065[/C][C]0.5[/C][C]0.0439[/C][/ROW]
[ROW][C]48[/C][C]782[/C][C]858[/C][C]685.7996[/C][C]1030.2004[/C][C]0.1935[/C][C]0.3494[/C][C]0.5[/C][C]0.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115071&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115071&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[36])
24629-------
25685-------
26617-------
27715-------
28715-------
29629-------
30916-------
31531-------
32357-------
33917-------
34828-------
35708-------
36858-------
37775685512.7996857.20040.15280.02450.50.0245
38785617444.7996789.20040.02790.03610.50.003
391006715542.7996887.20045e-040.21280.50.0518
40789715542.7996887.20040.19985e-040.50.0518
41734629456.7996801.20040.1160.03430.50.0046
42906916743.79961088.20040.45470.98080.50.7454
43532531358.7996703.20040.495500.51e-04
44387357184.7996529.20040.36640.02320.50
45991917744.79961089.20040.199810.50.7491
46841828655.79961000.20040.44120.03180.50.3664
47892708535.7996880.20040.01810.0650.50.0439
48782858685.79961030.20040.19350.34940.50.5







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
370.12830.13140810000
380.14240.27230.20182822418162134.7665
390.12290.4070.27028468140335200.8358
400.12290.10350.2285547631620.25177.8208
410.13970.16690.21621102527501.2165.8349
420.0959-0.01090.18210022934.3333151.4409
430.16550.00190.1563119658.1429140.2075
440.24610.0840.147290017313.375131.5803
450.09580.08070.1398547615998.1111126.4836
460.10610.01570.127416914415.2120.0633
470.12410.25990.13953385616182.5455127.2106
480.1024-0.08860.1352577615315.3333123.7551

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
37 & 0.1283 & 0.1314 & 0 & 8100 & 0 & 0 \tabularnewline
38 & 0.1424 & 0.2723 & 0.2018 & 28224 & 18162 & 134.7665 \tabularnewline
39 & 0.1229 & 0.407 & 0.2702 & 84681 & 40335 & 200.8358 \tabularnewline
40 & 0.1229 & 0.1035 & 0.2285 & 5476 & 31620.25 & 177.8208 \tabularnewline
41 & 0.1397 & 0.1669 & 0.2162 & 11025 & 27501.2 & 165.8349 \tabularnewline
42 & 0.0959 & -0.0109 & 0.182 & 100 & 22934.3333 & 151.4409 \tabularnewline
43 & 0.1655 & 0.0019 & 0.1563 & 1 & 19658.1429 & 140.2075 \tabularnewline
44 & 0.2461 & 0.084 & 0.1472 & 900 & 17313.375 & 131.5803 \tabularnewline
45 & 0.0958 & 0.0807 & 0.1398 & 5476 & 15998.1111 & 126.4836 \tabularnewline
46 & 0.1061 & 0.0157 & 0.1274 & 169 & 14415.2 & 120.0633 \tabularnewline
47 & 0.1241 & 0.2599 & 0.1395 & 33856 & 16182.5455 & 127.2106 \tabularnewline
48 & 0.1024 & -0.0886 & 0.1352 & 5776 & 15315.3333 & 123.7551 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115071&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]37[/C][C]0.1283[/C][C]0.1314[/C][C]0[/C][C]8100[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]38[/C][C]0.1424[/C][C]0.2723[/C][C]0.2018[/C][C]28224[/C][C]18162[/C][C]134.7665[/C][/ROW]
[ROW][C]39[/C][C]0.1229[/C][C]0.407[/C][C]0.2702[/C][C]84681[/C][C]40335[/C][C]200.8358[/C][/ROW]
[ROW][C]40[/C][C]0.1229[/C][C]0.1035[/C][C]0.2285[/C][C]5476[/C][C]31620.25[/C][C]177.8208[/C][/ROW]
[ROW][C]41[/C][C]0.1397[/C][C]0.1669[/C][C]0.2162[/C][C]11025[/C][C]27501.2[/C][C]165.8349[/C][/ROW]
[ROW][C]42[/C][C]0.0959[/C][C]-0.0109[/C][C]0.182[/C][C]100[/C][C]22934.3333[/C][C]151.4409[/C][/ROW]
[ROW][C]43[/C][C]0.1655[/C][C]0.0019[/C][C]0.1563[/C][C]1[/C][C]19658.1429[/C][C]140.2075[/C][/ROW]
[ROW][C]44[/C][C]0.2461[/C][C]0.084[/C][C]0.1472[/C][C]900[/C][C]17313.375[/C][C]131.5803[/C][/ROW]
[ROW][C]45[/C][C]0.0958[/C][C]0.0807[/C][C]0.1398[/C][C]5476[/C][C]15998.1111[/C][C]126.4836[/C][/ROW]
[ROW][C]46[/C][C]0.1061[/C][C]0.0157[/C][C]0.1274[/C][C]169[/C][C]14415.2[/C][C]120.0633[/C][/ROW]
[ROW][C]47[/C][C]0.1241[/C][C]0.2599[/C][C]0.1395[/C][C]33856[/C][C]16182.5455[/C][C]127.2106[/C][/ROW]
[ROW][C]48[/C][C]0.1024[/C][C]-0.0886[/C][C]0.1352[/C][C]5776[/C][C]15315.3333[/C][C]123.7551[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115071&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115071&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
370.12830.13140810000
380.14240.27230.20182822418162134.7665
390.12290.4070.27028468140335200.8358
400.12290.10350.2285547631620.25177.8208
410.13970.16690.21621102527501.2165.8349
420.0959-0.01090.18210022934.3333151.4409
430.16550.00190.1563119658.1429140.2075
440.24610.0840.147290017313.375131.5803
450.09580.08070.1398547615998.1111126.4836
460.10610.01570.127416914415.2120.0633
470.12410.25990.13953385616182.5455127.2106
480.1024-0.08860.1352577615315.3333123.7551



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