Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationTue, 11 Dec 2007 10:25:08 -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/2007/Dec/11/t119739307185mjlf2eevcd099.htm/, Retrieved Sun, 28 Apr 2024 21:08:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=3136, Retrieved Sun, 28 Apr 2024 21:08:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsForecasting industriele productie bedrijfstak Tinne Van der Eycken
Estimated Impact204
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [Workshop 6] [2007-12-11 17:25:08] [c8635c97647ba59406cb570a9fab7b02] [Current]
Feedback Forum

Post a new message
Dataseries X:
86.5
104.1
110.9
114.5
112.2
96.4
92
102
99.7
102
98.9
87.4
94.4
109.3
116.4
101
105.5
97.8
95.5
113.7
103.7
100.8
113.8
84.6
95.3
110
107.5
107.6
116
96.9
97
108.1
101.9
107.2
110.2
78.7
96.5
115.2
104.7
109.1
108.4
95.5
97.8
115.1
96.2
112
111.8
82.5
100.8
116
116.3
116.6
112.9
100.9
104.1
117.4
103.3
111.6
115
92.6
105.2




Summary of compuational 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 compuational 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=3136&T=0

[TABLE]
[ROW][C]Summary of compuational 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=3136&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3136&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 compuational 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[49])
4397.8-------
44115.1-------
4596.2-------
46112-------
47111.8-------
4882.5-------
49100.8-------
50116114.449103.4939125.4040.39070.99270.45360.9927
51116.3102.829991.8749113.7850.0080.00920.88220.6418
52116.6109.479598.5245120.43460.10130.11120.3260.9398
53112.9109.303998.3488120.25890.260.09590.32760.9359
54100.991.881380.9263102.83640.05331e-040.95340.0553
55104.198.153387.1991109.10750.14370.31160.31790.3179
56117.4114.3887103.14125.63750.29990.96350.38950.9911
57103.398.656287.4074109.90490.20925e-040.00110.3544
58111.6110.899599.6508122.14830.45140.90730.16030.9608
59115110.975799.727122.22450.24160.45670.36870.9619
6092.685.486474.237696.73510.107600.00360.0038
61105.299.621788.3738110.86960.16550.88940.21760.4187

\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[49]) \tabularnewline
43 & 97.8 & - & - & - & - & - & - & - \tabularnewline
44 & 115.1 & - & - & - & - & - & - & - \tabularnewline
45 & 96.2 & - & - & - & - & - & - & - \tabularnewline
46 & 112 & - & - & - & - & - & - & - \tabularnewline
47 & 111.8 & - & - & - & - & - & - & - \tabularnewline
48 & 82.5 & - & - & - & - & - & - & - \tabularnewline
49 & 100.8 & - & - & - & - & - & - & - \tabularnewline
50 & 116 & 114.449 & 103.4939 & 125.404 & 0.3907 & 0.9927 & 0.4536 & 0.9927 \tabularnewline
51 & 116.3 & 102.8299 & 91.8749 & 113.785 & 0.008 & 0.0092 & 0.8822 & 0.6418 \tabularnewline
52 & 116.6 & 109.4795 & 98.5245 & 120.4346 & 0.1013 & 0.1112 & 0.326 & 0.9398 \tabularnewline
53 & 112.9 & 109.3039 & 98.3488 & 120.2589 & 0.26 & 0.0959 & 0.3276 & 0.9359 \tabularnewline
54 & 100.9 & 91.8813 & 80.9263 & 102.8364 & 0.0533 & 1e-04 & 0.9534 & 0.0553 \tabularnewline
55 & 104.1 & 98.1533 & 87.1991 & 109.1075 & 0.1437 & 0.3116 & 0.3179 & 0.3179 \tabularnewline
56 & 117.4 & 114.3887 & 103.14 & 125.6375 & 0.2999 & 0.9635 & 0.3895 & 0.9911 \tabularnewline
57 & 103.3 & 98.6562 & 87.4074 & 109.9049 & 0.2092 & 5e-04 & 0.0011 & 0.3544 \tabularnewline
58 & 111.6 & 110.8995 & 99.6508 & 122.1483 & 0.4514 & 0.9073 & 0.1603 & 0.9608 \tabularnewline
59 & 115 & 110.9757 & 99.727 & 122.2245 & 0.2416 & 0.4567 & 0.3687 & 0.9619 \tabularnewline
60 & 92.6 & 85.4864 & 74.2376 & 96.7351 & 0.1076 & 0 & 0.0036 & 0.0038 \tabularnewline
61 & 105.2 & 99.6217 & 88.3738 & 110.8696 & 0.1655 & 0.8894 & 0.2176 & 0.4187 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3136&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[49])[/C][/ROW]
[ROW][C]43[/C][C]97.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]44[/C][C]115.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]96.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]112[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]111.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]82.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]100.8[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]116[/C][C]114.449[/C][C]103.4939[/C][C]125.404[/C][C]0.3907[/C][C]0.9927[/C][C]0.4536[/C][C]0.9927[/C][/ROW]
[ROW][C]51[/C][C]116.3[/C][C]102.8299[/C][C]91.8749[/C][C]113.785[/C][C]0.008[/C][C]0.0092[/C][C]0.8822[/C][C]0.6418[/C][/ROW]
[ROW][C]52[/C][C]116.6[/C][C]109.4795[/C][C]98.5245[/C][C]120.4346[/C][C]0.1013[/C][C]0.1112[/C][C]0.326[/C][C]0.9398[/C][/ROW]
[ROW][C]53[/C][C]112.9[/C][C]109.3039[/C][C]98.3488[/C][C]120.2589[/C][C]0.26[/C][C]0.0959[/C][C]0.3276[/C][C]0.9359[/C][/ROW]
[ROW][C]54[/C][C]100.9[/C][C]91.8813[/C][C]80.9263[/C][C]102.8364[/C][C]0.0533[/C][C]1e-04[/C][C]0.9534[/C][C]0.0553[/C][/ROW]
[ROW][C]55[/C][C]104.1[/C][C]98.1533[/C][C]87.1991[/C][C]109.1075[/C][C]0.1437[/C][C]0.3116[/C][C]0.3179[/C][C]0.3179[/C][/ROW]
[ROW][C]56[/C][C]117.4[/C][C]114.3887[/C][C]103.14[/C][C]125.6375[/C][C]0.2999[/C][C]0.9635[/C][C]0.3895[/C][C]0.9911[/C][/ROW]
[ROW][C]57[/C][C]103.3[/C][C]98.6562[/C][C]87.4074[/C][C]109.9049[/C][C]0.2092[/C][C]5e-04[/C][C]0.0011[/C][C]0.3544[/C][/ROW]
[ROW][C]58[/C][C]111.6[/C][C]110.8995[/C][C]99.6508[/C][C]122.1483[/C][C]0.4514[/C][C]0.9073[/C][C]0.1603[/C][C]0.9608[/C][/ROW]
[ROW][C]59[/C][C]115[/C][C]110.9757[/C][C]99.727[/C][C]122.2245[/C][C]0.2416[/C][C]0.4567[/C][C]0.3687[/C][C]0.9619[/C][/ROW]
[ROW][C]60[/C][C]92.6[/C][C]85.4864[/C][C]74.2376[/C][C]96.7351[/C][C]0.1076[/C][C]0[/C][C]0.0036[/C][C]0.0038[/C][/ROW]
[ROW][C]61[/C][C]105.2[/C][C]99.6217[/C][C]88.3738[/C][C]110.8696[/C][C]0.1655[/C][C]0.8894[/C][C]0.2176[/C][C]0.4187[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3136&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3136&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[49])
4397.8-------
44115.1-------
4596.2-------
46112-------
47111.8-------
4882.5-------
49100.8-------
50116114.449103.4939125.4040.39070.99270.45360.9927
51116.3102.829991.8749113.7850.0080.00920.88220.6418
52116.6109.479598.5245120.43460.10130.11120.3260.9398
53112.9109.303998.3488120.25890.260.09590.32760.9359
54100.991.881380.9263102.83640.05331e-040.95340.0553
55104.198.153387.1991109.10750.14370.31160.31790.3179
56117.4114.3887103.14125.63750.29990.96350.38950.9911
57103.398.656287.4074109.90490.20925e-040.00110.3544
58111.6110.899599.6508122.14830.45140.90730.16030.9608
59115110.975799.727122.22450.24160.45670.36870.9619
6092.685.486474.237696.73510.107600.00360.0038
61105.299.621788.3738110.86960.16550.88940.21760.4187







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
500.04880.01360.00112.40560.20050.4477
510.05440.1310.0109181.443415.12033.8885
520.05110.0650.005450.70154.22512.0555
530.05110.03290.002712.93211.07771.0381
540.06080.09820.008281.33686.77812.6035
550.05690.06060.00535.36332.94691.7167
560.05020.02630.00229.06770.75560.8693
570.05820.04710.003921.5651.79711.3406
580.05180.00635e-040.49070.04090.2022
590.05170.03630.00316.19461.34961.1617
600.06710.08320.006950.60384.2172.0535
610.05760.0560.004731.11772.59311.6103

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
50 & 0.0488 & 0.0136 & 0.0011 & 2.4056 & 0.2005 & 0.4477 \tabularnewline
51 & 0.0544 & 0.131 & 0.0109 & 181.4434 & 15.1203 & 3.8885 \tabularnewline
52 & 0.0511 & 0.065 & 0.0054 & 50.7015 & 4.2251 & 2.0555 \tabularnewline
53 & 0.0511 & 0.0329 & 0.0027 & 12.9321 & 1.0777 & 1.0381 \tabularnewline
54 & 0.0608 & 0.0982 & 0.0082 & 81.3368 & 6.7781 & 2.6035 \tabularnewline
55 & 0.0569 & 0.0606 & 0.005 & 35.3633 & 2.9469 & 1.7167 \tabularnewline
56 & 0.0502 & 0.0263 & 0.0022 & 9.0677 & 0.7556 & 0.8693 \tabularnewline
57 & 0.0582 & 0.0471 & 0.0039 & 21.565 & 1.7971 & 1.3406 \tabularnewline
58 & 0.0518 & 0.0063 & 5e-04 & 0.4907 & 0.0409 & 0.2022 \tabularnewline
59 & 0.0517 & 0.0363 & 0.003 & 16.1946 & 1.3496 & 1.1617 \tabularnewline
60 & 0.0671 & 0.0832 & 0.0069 & 50.6038 & 4.217 & 2.0535 \tabularnewline
61 & 0.0576 & 0.056 & 0.0047 & 31.1177 & 2.5931 & 1.6103 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=3136&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]50[/C][C]0.0488[/C][C]0.0136[/C][C]0.0011[/C][C]2.4056[/C][C]0.2005[/C][C]0.4477[/C][/ROW]
[ROW][C]51[/C][C]0.0544[/C][C]0.131[/C][C]0.0109[/C][C]181.4434[/C][C]15.1203[/C][C]3.8885[/C][/ROW]
[ROW][C]52[/C][C]0.0511[/C][C]0.065[/C][C]0.0054[/C][C]50.7015[/C][C]4.2251[/C][C]2.0555[/C][/ROW]
[ROW][C]53[/C][C]0.0511[/C][C]0.0329[/C][C]0.0027[/C][C]12.9321[/C][C]1.0777[/C][C]1.0381[/C][/ROW]
[ROW][C]54[/C][C]0.0608[/C][C]0.0982[/C][C]0.0082[/C][C]81.3368[/C][C]6.7781[/C][C]2.6035[/C][/ROW]
[ROW][C]55[/C][C]0.0569[/C][C]0.0606[/C][C]0.005[/C][C]35.3633[/C][C]2.9469[/C][C]1.7167[/C][/ROW]
[ROW][C]56[/C][C]0.0502[/C][C]0.0263[/C][C]0.0022[/C][C]9.0677[/C][C]0.7556[/C][C]0.8693[/C][/ROW]
[ROW][C]57[/C][C]0.0582[/C][C]0.0471[/C][C]0.0039[/C][C]21.565[/C][C]1.7971[/C][C]1.3406[/C][/ROW]
[ROW][C]58[/C][C]0.0518[/C][C]0.0063[/C][C]5e-04[/C][C]0.4907[/C][C]0.0409[/C][C]0.2022[/C][/ROW]
[ROW][C]59[/C][C]0.0517[/C][C]0.0363[/C][C]0.003[/C][C]16.1946[/C][C]1.3496[/C][C]1.1617[/C][/ROW]
[ROW][C]60[/C][C]0.0671[/C][C]0.0832[/C][C]0.0069[/C][C]50.6038[/C][C]4.217[/C][C]2.0535[/C][/ROW]
[ROW][C]61[/C][C]0.0576[/C][C]0.056[/C][C]0.0047[/C][C]31.1177[/C][C]2.5931[/C][C]1.6103[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=3136&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=3136&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
500.04880.01360.00112.40560.20050.4477
510.05440.1310.0109181.443415.12033.8885
520.05110.0650.005450.70154.22512.0555
530.05110.03290.002712.93211.07771.0381
540.06080.09820.008281.33686.77812.6035
550.05690.06060.00535.36332.94691.7167
560.05020.02630.00229.06770.75560.8693
570.05820.04710.003921.5651.79711.3406
580.05180.00635e-040.49070.04090.2022
590.05170.03630.00316.19461.34961.1617
600.06710.08320.006950.60384.2172.0535
610.05760.0560.004731.11772.59311.6103



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