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 computationTue, 07 Dec 2010 10:19:03 +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/07/t1291717021edbtrys9momkvgh.htm/, Retrieved Fri, 03 May 2024 18:59:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=106127, Retrieved Fri, 03 May 2024 18:59:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact158
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [web server] [2010-10-19 15:51:23] [b98453cac15ba1066b407e146608df68]
- RMP   [Variance Reduction Matrix] [Pageviews] [2010-11-29 10:12:20] [b98453cac15ba1066b407e146608df68]
- RM      [Standard Deviation-Mean Plot] [Pageviews] [2010-11-29 11:10:57] [b98453cac15ba1066b407e146608df68]
- RMP       [ARIMA Forecasting] [Pageviews] [2010-11-29 21:25:44] [b98453cac15ba1066b407e146608df68]
-   PD          [ARIMA Forecasting] [] [2010-12-07 10:19:03] [6fde1c772c7be11768d9b6a0344566b2] [Current]
Feedback Forum

Post a new message
Dataseries X:
46
62
66
59
58
61
41
27
58
70
49
59
44
36
72
45
56
54
53
35
61
52
47
51
52
63
74
45
51
64
36
30
55
64
39
40
63
45
59
55
40
64
27
28
45
57
45
69
60
56
58
50
51
53
37
22
55
70
62
58
39
49
58
47
42
62
39
40
72
70
54
65




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106127&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106127&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106127&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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







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])
5351-------
5453-------
5537-------
5622-------
5755-------
5870-------
5962-------
6058-------
613955.122331.026774.70420.05330.38670.58410.3867
624942.884312.311864.53770.28990.63740.70290.0856
635845.17715.356666.89450.12360.3650.98180.1236
644739.80163.70162.58260.26790.05870.09550.0587
654251.16223.825272.3660.19850.64980.04080.2637
666247.533318.249769.34560.09680.69050.09680.1735
673949.327320.866670.94540.17460.12530.21580.2158
684049.668619.662672.15390.19970.82380.82380.2338
697265.871941.906686.03150.27570.99410.94950.778
707053.241524.960375.21160.06740.04710.33560.3356
715447.155615.269570.18350.28010.02590.50530.178
726557.470830.790878.87570.24530.62470.92170.4807

\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
53 & 51 & - & - & - & - & - & - & - \tabularnewline
54 & 53 & - & - & - & - & - & - & - \tabularnewline
55 & 37 & - & - & - & - & - & - & - \tabularnewline
56 & 22 & - & - & - & - & - & - & - \tabularnewline
57 & 55 & - & - & - & - & - & - & - \tabularnewline
58 & 70 & - & - & - & - & - & - & - \tabularnewline
59 & 62 & - & - & - & - & - & - & - \tabularnewline
60 & 58 & - & - & - & - & - & - & - \tabularnewline
61 & 39 & 55.1223 & 31.0267 & 74.7042 & 0.0533 & 0.3867 & 0.5841 & 0.3867 \tabularnewline
62 & 49 & 42.8843 & 12.3118 & 64.5377 & 0.2899 & 0.6374 & 0.7029 & 0.0856 \tabularnewline
63 & 58 & 45.177 & 15.3566 & 66.8945 & 0.1236 & 0.365 & 0.9818 & 0.1236 \tabularnewline
64 & 47 & 39.8016 & 3.701 & 62.5826 & 0.2679 & 0.0587 & 0.0955 & 0.0587 \tabularnewline
65 & 42 & 51.162 & 23.8252 & 72.366 & 0.1985 & 0.6498 & 0.0408 & 0.2637 \tabularnewline
66 & 62 & 47.5333 & 18.2497 & 69.3456 & 0.0968 & 0.6905 & 0.0968 & 0.1735 \tabularnewline
67 & 39 & 49.3273 & 20.8666 & 70.9454 & 0.1746 & 0.1253 & 0.2158 & 0.2158 \tabularnewline
68 & 40 & 49.6686 & 19.6626 & 72.1539 & 0.1997 & 0.8238 & 0.8238 & 0.2338 \tabularnewline
69 & 72 & 65.8719 & 41.9066 & 86.0315 & 0.2757 & 0.9941 & 0.9495 & 0.778 \tabularnewline
70 & 70 & 53.2415 & 24.9603 & 75.2116 & 0.0674 & 0.0471 & 0.3356 & 0.3356 \tabularnewline
71 & 54 & 47.1556 & 15.2695 & 70.1835 & 0.2801 & 0.0259 & 0.5053 & 0.178 \tabularnewline
72 & 65 & 57.4708 & 30.7908 & 78.8757 & 0.2453 & 0.6247 & 0.9217 & 0.4807 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106127&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]53[/C][C]51[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]53[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]37[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]22[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]55[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]70[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]62[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]58[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]39[/C][C]55.1223[/C][C]31.0267[/C][C]74.7042[/C][C]0.0533[/C][C]0.3867[/C][C]0.5841[/C][C]0.3867[/C][/ROW]
[ROW][C]62[/C][C]49[/C][C]42.8843[/C][C]12.3118[/C][C]64.5377[/C][C]0.2899[/C][C]0.6374[/C][C]0.7029[/C][C]0.0856[/C][/ROW]
[ROW][C]63[/C][C]58[/C][C]45.177[/C][C]15.3566[/C][C]66.8945[/C][C]0.1236[/C][C]0.365[/C][C]0.9818[/C][C]0.1236[/C][/ROW]
[ROW][C]64[/C][C]47[/C][C]39.8016[/C][C]3.701[/C][C]62.5826[/C][C]0.2679[/C][C]0.0587[/C][C]0.0955[/C][C]0.0587[/C][/ROW]
[ROW][C]65[/C][C]42[/C][C]51.162[/C][C]23.8252[/C][C]72.366[/C][C]0.1985[/C][C]0.6498[/C][C]0.0408[/C][C]0.2637[/C][/ROW]
[ROW][C]66[/C][C]62[/C][C]47.5333[/C][C]18.2497[/C][C]69.3456[/C][C]0.0968[/C][C]0.6905[/C][C]0.0968[/C][C]0.1735[/C][/ROW]
[ROW][C]67[/C][C]39[/C][C]49.3273[/C][C]20.8666[/C][C]70.9454[/C][C]0.1746[/C][C]0.1253[/C][C]0.2158[/C][C]0.2158[/C][/ROW]
[ROW][C]68[/C][C]40[/C][C]49.6686[/C][C]19.6626[/C][C]72.1539[/C][C]0.1997[/C][C]0.8238[/C][C]0.8238[/C][C]0.2338[/C][/ROW]
[ROW][C]69[/C][C]72[/C][C]65.8719[/C][C]41.9066[/C][C]86.0315[/C][C]0.2757[/C][C]0.9941[/C][C]0.9495[/C][C]0.778[/C][/ROW]
[ROW][C]70[/C][C]70[/C][C]53.2415[/C][C]24.9603[/C][C]75.2116[/C][C]0.0674[/C][C]0.0471[/C][C]0.3356[/C][C]0.3356[/C][/ROW]
[ROW][C]71[/C][C]54[/C][C]47.1556[/C][C]15.2695[/C][C]70.1835[/C][C]0.2801[/C][C]0.0259[/C][C]0.5053[/C][C]0.178[/C][/ROW]
[ROW][C]72[/C][C]65[/C][C]57.4708[/C][C]30.7908[/C][C]78.8757[/C][C]0.2453[/C][C]0.6247[/C][C]0.9217[/C][C]0.4807[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106127&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106127&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])
5351-------
5453-------
5537-------
5622-------
5755-------
5870-------
5962-------
6058-------
613955.122331.026774.70420.05330.38670.58410.3867
624942.884312.311864.53770.28990.63740.70290.0856
635845.17715.356666.89450.12360.3650.98180.1236
644739.80163.70162.58260.26790.05870.09550.0587
654251.16223.825272.3660.19850.64980.04080.2637
666247.533318.249769.34560.09680.69050.09680.1735
673949.327320.866670.94540.17460.12530.21580.2158
684049.668619.662672.15390.19970.82380.82380.2338
697265.871941.906686.03150.27570.99410.94950.778
707053.241524.960375.21160.06740.04710.33560.3356
715447.155615.269570.18350.28010.02590.50530.178
726557.470830.790878.87570.24530.62470.92170.4807







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
610.1812-0.29250259.928200
620.25760.14260.217537.4015148.664912.1928
630.24530.28380.2396164.4303153.9212.4065
640.2920.18090.224951.8163128.394111.3311
650.2115-0.17910.215883.9418119.503610.9318
660.23410.30430.2305209.2862134.467411.596
670.2236-0.20940.2275106.6534130.49411.4234
680.231-0.19470.223493.4821125.867511.2191
690.15610.0930.208937.5539116.054810.7729
700.21050.31480.2195280.8467132.53411.5123
710.24920.14510.212746.8464124.744211.1689
720.190.1310.205956.6883119.072910.9121

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
61 & 0.1812 & -0.2925 & 0 & 259.9282 & 0 & 0 \tabularnewline
62 & 0.2576 & 0.1426 & 0.2175 & 37.4015 & 148.6649 & 12.1928 \tabularnewline
63 & 0.2453 & 0.2838 & 0.2396 & 164.4303 & 153.92 & 12.4065 \tabularnewline
64 & 0.292 & 0.1809 & 0.2249 & 51.8163 & 128.3941 & 11.3311 \tabularnewline
65 & 0.2115 & -0.1791 & 0.2158 & 83.9418 & 119.5036 & 10.9318 \tabularnewline
66 & 0.2341 & 0.3043 & 0.2305 & 209.2862 & 134.4674 & 11.596 \tabularnewline
67 & 0.2236 & -0.2094 & 0.2275 & 106.6534 & 130.494 & 11.4234 \tabularnewline
68 & 0.231 & -0.1947 & 0.2234 & 93.4821 & 125.8675 & 11.2191 \tabularnewline
69 & 0.1561 & 0.093 & 0.2089 & 37.5539 & 116.0548 & 10.7729 \tabularnewline
70 & 0.2105 & 0.3148 & 0.2195 & 280.8467 & 132.534 & 11.5123 \tabularnewline
71 & 0.2492 & 0.1451 & 0.2127 & 46.8464 & 124.7442 & 11.1689 \tabularnewline
72 & 0.19 & 0.131 & 0.2059 & 56.6883 & 119.0729 & 10.9121 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106127&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.1812[/C][C]-0.2925[/C][C]0[/C][C]259.9282[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]62[/C][C]0.2576[/C][C]0.1426[/C][C]0.2175[/C][C]37.4015[/C][C]148.6649[/C][C]12.1928[/C][/ROW]
[ROW][C]63[/C][C]0.2453[/C][C]0.2838[/C][C]0.2396[/C][C]164.4303[/C][C]153.92[/C][C]12.4065[/C][/ROW]
[ROW][C]64[/C][C]0.292[/C][C]0.1809[/C][C]0.2249[/C][C]51.8163[/C][C]128.3941[/C][C]11.3311[/C][/ROW]
[ROW][C]65[/C][C]0.2115[/C][C]-0.1791[/C][C]0.2158[/C][C]83.9418[/C][C]119.5036[/C][C]10.9318[/C][/ROW]
[ROW][C]66[/C][C]0.2341[/C][C]0.3043[/C][C]0.2305[/C][C]209.2862[/C][C]134.4674[/C][C]11.596[/C][/ROW]
[ROW][C]67[/C][C]0.2236[/C][C]-0.2094[/C][C]0.2275[/C][C]106.6534[/C][C]130.494[/C][C]11.4234[/C][/ROW]
[ROW][C]68[/C][C]0.231[/C][C]-0.1947[/C][C]0.2234[/C][C]93.4821[/C][C]125.8675[/C][C]11.2191[/C][/ROW]
[ROW][C]69[/C][C]0.1561[/C][C]0.093[/C][C]0.2089[/C][C]37.5539[/C][C]116.0548[/C][C]10.7729[/C][/ROW]
[ROW][C]70[/C][C]0.2105[/C][C]0.3148[/C][C]0.2195[/C][C]280.8467[/C][C]132.534[/C][C]11.5123[/C][/ROW]
[ROW][C]71[/C][C]0.2492[/C][C]0.1451[/C][C]0.2127[/C][C]46.8464[/C][C]124.7442[/C][C]11.1689[/C][/ROW]
[ROW][C]72[/C][C]0.19[/C][C]0.131[/C][C]0.2059[/C][C]56.6883[/C][C]119.0729[/C][C]10.9121[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106127&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106127&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.1812-0.29250259.928200
620.25760.14260.217537.4015148.664912.1928
630.24530.28380.2396164.4303153.9212.4065
640.2920.18090.224951.8163128.394111.3311
650.2115-0.17910.215883.9418119.503610.9318
660.23410.30430.2305209.2862134.467411.596
670.2236-0.20940.2275106.6534130.49411.4234
680.231-0.19470.223493.4821125.867511.2191
690.15610.0930.208937.5539116.054810.7729
700.21050.31480.2195280.8467132.53411.5123
710.24920.14510.212746.8464124.744211.1689
720.190.1310.205956.6883119.072910.9121



Parameters (Session):
par1 = 12 ; par2 = 1.5 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 0 ; par8 = 0 ; par9 = 0 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1.5 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; 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 <- 7 #seasonal period
par6 <- 4 #p
par7 <- as.numeric(par7) #q
par8 <- 4 #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')