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, 28 Dec 2010 19:39:15 +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/28/t1293565047mm13dbq64ndbyrx.htm/, Retrieved Sun, 05 May 2024 08:40:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116531, Retrieved Sun, 05 May 2024 08:40:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact138
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2010-12-28 19:39:15] [0956ee981dded61b2e7128dae94e5715] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.1
9.27
9.59
10.64
12.17
12.81
12.33
11.92
11.92
12.17
12.33
10.39
10.96
11.44
11.36
11.84
11.2
12.17
11.92
11.92
12.73
12.89
15.47
17
14.91
13.62
12.89
12.33
12.33
11.36
10.96
11.36
10.15
9.35
9.59
9.59
9.67
9.19
9.02
8.94
8.38
8.3
8.14
8.3
8.54
9.02
9.27
9.02
9.02
8.38
8.46
7.9
7.17
7.25
7.33
7.41
7.98
7.65
7.41
7.57
7.41
7.49
7.49
8.14
8.38
8.22
8.46
7.98
8.06
8.06
8.54
9.75
12.17
15.23
15.79
15.39
14.34
13.78
13.21
12.65
11.84
11.84
11.6
11.04
10.64
10.39
10.15
9.67
9.67
9.91
9.91
9.91
9.71
9.51
9.32
9.12
9.22
9.22
8.92
8.82
8.82
8.82
8.72
8.34
8.14
8.14
8.04
8.04
8.04
8.14
8.24
8.34
8.53
8.63
8.53
8.72
9.11
8.92
8.82
9.21
9.21
9.4
9.6
9.69
9.74
10.64
12.82
15.06
17.3
20.04
17.9
16.77
17.07
17.1
17.53
17.7
17.37
17.13
17.13
16.7
15.23
13.66
12.96
13.39
13.73
13.86
14.36
14.09
13.89
14.03
14.73
16.3
17.3
17.6
18
19.54
22.34
24.08
23.85
24.08
25.98
26.55
26.75
26.88
26.78
27.18
28.15
28.92
29.16
29.62
29.92
30.26
30.62
31.03
31.56
32.46
33.4
34.8
36.67
38.84
40.51
41.85
44.45
49.33
53.84
56.94
60.61
65.22
72.57
82.38
90.93
96.5
99.6
103.9
107.6
109.6
113.6
118.3
124
130.7
136.2
140.3
144.5
148.2
152.4
156.9
160.5
163
166.6
172.2
177.1
179.9
184
188.9
195.3
201.6
207.34
215.3
214.54




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116531&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116531&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116531&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'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[207])
206156.9-------
207160.5-------
208163164.2013162.5257165.87680.08111
209166.6168.1947164.6433171.74610.18940.99790.99791
210172.2172.3511166.9847177.71740.4780.98220.98221
211177.1176.5391169.467183.61120.43820.88540.88541
212179.9180.7065171.9684189.44460.42820.79070.79071
213184184.8526174.4202195.2850.43640.82390.82391
214188.9188.9901176.7996201.18070.49420.78880.78881
215195.3193.1275179.1047207.15040.38070.72270.72271
216201.6197.267181.3389213.19510.2970.59560.59561
217207.34201.4078183.5048219.31080.2580.49160.49161
218215.3205.549185.604225.4940.1690.43010.43011
219214.54209.6901187.6378231.74240.33320.3090.3091

\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[207]) \tabularnewline
206 & 156.9 & - & - & - & - & - & - & - \tabularnewline
207 & 160.5 & - & - & - & - & - & - & - \tabularnewline
208 & 163 & 164.2013 & 162.5257 & 165.8768 & 0.08 & 1 & 1 & 1 \tabularnewline
209 & 166.6 & 168.1947 & 164.6433 & 171.7461 & 0.1894 & 0.9979 & 0.9979 & 1 \tabularnewline
210 & 172.2 & 172.3511 & 166.9847 & 177.7174 & 0.478 & 0.9822 & 0.9822 & 1 \tabularnewline
211 & 177.1 & 176.5391 & 169.467 & 183.6112 & 0.4382 & 0.8854 & 0.8854 & 1 \tabularnewline
212 & 179.9 & 180.7065 & 171.9684 & 189.4446 & 0.4282 & 0.7907 & 0.7907 & 1 \tabularnewline
213 & 184 & 184.8526 & 174.4202 & 195.285 & 0.4364 & 0.8239 & 0.8239 & 1 \tabularnewline
214 & 188.9 & 188.9901 & 176.7996 & 201.1807 & 0.4942 & 0.7888 & 0.7888 & 1 \tabularnewline
215 & 195.3 & 193.1275 & 179.1047 & 207.1504 & 0.3807 & 0.7227 & 0.7227 & 1 \tabularnewline
216 & 201.6 & 197.267 & 181.3389 & 213.1951 & 0.297 & 0.5956 & 0.5956 & 1 \tabularnewline
217 & 207.34 & 201.4078 & 183.5048 & 219.3108 & 0.258 & 0.4916 & 0.4916 & 1 \tabularnewline
218 & 215.3 & 205.549 & 185.604 & 225.494 & 0.169 & 0.4301 & 0.4301 & 1 \tabularnewline
219 & 214.54 & 209.6901 & 187.6378 & 231.7424 & 0.3332 & 0.309 & 0.309 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116531&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[207])[/C][/ROW]
[ROW][C]206[/C][C]156.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]207[/C][C]160.5[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]208[/C][C]163[/C][C]164.2013[/C][C]162.5257[/C][C]165.8768[/C][C]0.08[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]209[/C][C]166.6[/C][C]168.1947[/C][C]164.6433[/C][C]171.7461[/C][C]0.1894[/C][C]0.9979[/C][C]0.9979[/C][C]1[/C][/ROW]
[ROW][C]210[/C][C]172.2[/C][C]172.3511[/C][C]166.9847[/C][C]177.7174[/C][C]0.478[/C][C]0.9822[/C][C]0.9822[/C][C]1[/C][/ROW]
[ROW][C]211[/C][C]177.1[/C][C]176.5391[/C][C]169.467[/C][C]183.6112[/C][C]0.4382[/C][C]0.8854[/C][C]0.8854[/C][C]1[/C][/ROW]
[ROW][C]212[/C][C]179.9[/C][C]180.7065[/C][C]171.9684[/C][C]189.4446[/C][C]0.4282[/C][C]0.7907[/C][C]0.7907[/C][C]1[/C][/ROW]
[ROW][C]213[/C][C]184[/C][C]184.8526[/C][C]174.4202[/C][C]195.285[/C][C]0.4364[/C][C]0.8239[/C][C]0.8239[/C][C]1[/C][/ROW]
[ROW][C]214[/C][C]188.9[/C][C]188.9901[/C][C]176.7996[/C][C]201.1807[/C][C]0.4942[/C][C]0.7888[/C][C]0.7888[/C][C]1[/C][/ROW]
[ROW][C]215[/C][C]195.3[/C][C]193.1275[/C][C]179.1047[/C][C]207.1504[/C][C]0.3807[/C][C]0.7227[/C][C]0.7227[/C][C]1[/C][/ROW]
[ROW][C]216[/C][C]201.6[/C][C]197.267[/C][C]181.3389[/C][C]213.1951[/C][C]0.297[/C][C]0.5956[/C][C]0.5956[/C][C]1[/C][/ROW]
[ROW][C]217[/C][C]207.34[/C][C]201.4078[/C][C]183.5048[/C][C]219.3108[/C][C]0.258[/C][C]0.4916[/C][C]0.4916[/C][C]1[/C][/ROW]
[ROW][C]218[/C][C]215.3[/C][C]205.549[/C][C]185.604[/C][C]225.494[/C][C]0.169[/C][C]0.4301[/C][C]0.4301[/C][C]1[/C][/ROW]
[ROW][C]219[/C][C]214.54[/C][C]209.6901[/C][C]187.6378[/C][C]231.7424[/C][C]0.3332[/C][C]0.309[/C][C]0.309[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116531&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116531&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[207])
206156.9-------
207160.5-------
208163164.2013162.5257165.87680.08111
209166.6168.1947164.6433171.74610.18940.99790.99791
210172.2172.3511166.9847177.71740.4780.98220.98221
211177.1176.5391169.467183.61120.43820.88540.88541
212179.9180.7065171.9684189.44460.42820.79070.79071
213184184.8526174.4202195.2850.43640.82390.82391
214188.9188.9901176.7996201.18070.49420.78880.78881
215195.3193.1275179.1047207.15040.38070.72270.72271
216201.6197.267181.3389213.19510.2970.59560.59561
217207.34201.4078183.5048219.31080.2580.49160.49161
218215.3205.549185.604225.4940.1690.43010.43011
219214.54209.6901187.6378231.74240.33320.3090.3091







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
2080.0052-0.007301.443100
2090.0108-0.00950.00842.5431.9931.4117
2100.0159-9e-040.00590.02281.33631.156
2110.02040.00320.00520.31461.08091.0396
2120.0247-0.00450.00510.65040.99480.9974
2130.0288-0.00460.0050.72690.95010.9748
2140.0329-5e-040.00430.00810.81560.9031
2150.0370.01120.00524.71961.30361.1417
2160.04120.0220.007118.77493.24481.8013
2170.04540.02950.009335.19086.43942.5376
2180.04950.04740.012895.08214.49783.8076
2190.05370.02310.013623.521815.24983.9051

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
208 & 0.0052 & -0.0073 & 0 & 1.4431 & 0 & 0 \tabularnewline
209 & 0.0108 & -0.0095 & 0.0084 & 2.543 & 1.993 & 1.4117 \tabularnewline
210 & 0.0159 & -9e-04 & 0.0059 & 0.0228 & 1.3363 & 1.156 \tabularnewline
211 & 0.0204 & 0.0032 & 0.0052 & 0.3146 & 1.0809 & 1.0396 \tabularnewline
212 & 0.0247 & -0.0045 & 0.0051 & 0.6504 & 0.9948 & 0.9974 \tabularnewline
213 & 0.0288 & -0.0046 & 0.005 & 0.7269 & 0.9501 & 0.9748 \tabularnewline
214 & 0.0329 & -5e-04 & 0.0043 & 0.0081 & 0.8156 & 0.9031 \tabularnewline
215 & 0.037 & 0.0112 & 0.0052 & 4.7196 & 1.3036 & 1.1417 \tabularnewline
216 & 0.0412 & 0.022 & 0.0071 & 18.7749 & 3.2448 & 1.8013 \tabularnewline
217 & 0.0454 & 0.0295 & 0.0093 & 35.1908 & 6.4394 & 2.5376 \tabularnewline
218 & 0.0495 & 0.0474 & 0.0128 & 95.082 & 14.4978 & 3.8076 \tabularnewline
219 & 0.0537 & 0.0231 & 0.0136 & 23.5218 & 15.2498 & 3.9051 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116531&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]208[/C][C]0.0052[/C][C]-0.0073[/C][C]0[/C][C]1.4431[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]209[/C][C]0.0108[/C][C]-0.0095[/C][C]0.0084[/C][C]2.543[/C][C]1.993[/C][C]1.4117[/C][/ROW]
[ROW][C]210[/C][C]0.0159[/C][C]-9e-04[/C][C]0.0059[/C][C]0.0228[/C][C]1.3363[/C][C]1.156[/C][/ROW]
[ROW][C]211[/C][C]0.0204[/C][C]0.0032[/C][C]0.0052[/C][C]0.3146[/C][C]1.0809[/C][C]1.0396[/C][/ROW]
[ROW][C]212[/C][C]0.0247[/C][C]-0.0045[/C][C]0.0051[/C][C]0.6504[/C][C]0.9948[/C][C]0.9974[/C][/ROW]
[ROW][C]213[/C][C]0.0288[/C][C]-0.0046[/C][C]0.005[/C][C]0.7269[/C][C]0.9501[/C][C]0.9748[/C][/ROW]
[ROW][C]214[/C][C]0.0329[/C][C]-5e-04[/C][C]0.0043[/C][C]0.0081[/C][C]0.8156[/C][C]0.9031[/C][/ROW]
[ROW][C]215[/C][C]0.037[/C][C]0.0112[/C][C]0.0052[/C][C]4.7196[/C][C]1.3036[/C][C]1.1417[/C][/ROW]
[ROW][C]216[/C][C]0.0412[/C][C]0.022[/C][C]0.0071[/C][C]18.7749[/C][C]3.2448[/C][C]1.8013[/C][/ROW]
[ROW][C]217[/C][C]0.0454[/C][C]0.0295[/C][C]0.0093[/C][C]35.1908[/C][C]6.4394[/C][C]2.5376[/C][/ROW]
[ROW][C]218[/C][C]0.0495[/C][C]0.0474[/C][C]0.0128[/C][C]95.082[/C][C]14.4978[/C][C]3.8076[/C][/ROW]
[ROW][C]219[/C][C]0.0537[/C][C]0.0231[/C][C]0.0136[/C][C]23.5218[/C][C]15.2498[/C][C]3.9051[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116531&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116531&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
2080.0052-0.007301.443100
2090.0108-0.00950.00842.5431.9931.4117
2100.0159-9e-040.00590.02281.33631.156
2110.02040.00320.00520.31461.08091.0396
2120.0247-0.00450.00510.65040.99480.9974
2130.0288-0.00460.0050.72690.95010.9748
2140.0329-5e-040.00430.00810.81560.9031
2150.0370.01120.00524.71961.30361.1417
2160.04120.0220.007118.77493.24481.8013
2170.04540.02950.009335.19086.43942.5376
2180.04950.04740.012895.08214.49783.8076
2190.05370.02310.013623.521815.24983.9051



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