Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationFri, 23 Dec 2011 07:59:08 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/23/t132464519489k25y8hsvki2yi.htm/, Retrieved Mon, 29 Apr 2024 19:47:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=160367, Retrieved Mon, 29 Apr 2024 19:47:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2011-12-05 15:21:45] [d623f9be707a26b8ffaece1fc4d5a7ee]
- R     [ARIMA Forecasting] [] [2011-12-05 17:41:11] [74be16979710d4c4e7c6647856088456]
-   PD      [ARIMA Forecasting] [] [2011-12-23 12:59:08] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
41
39
50
40
43
38
44
35
39
35
29
49
50
59
63
32
39
47
53
60
57
52
70
90
74
62
55
84
94
70
108
139
120
97
126
149
158
124
140
109
114
77
120
133
110
92
97
78
99
107
112
90
98
125
155
190
236
189
174
178
136
161
171
149
184
155
276
224
213
279
268
287
238
213
257
293
212
246
353
339
308
247
257
322
298
273
312
249
286
279
309
401
309
328
353
354
327
324
285
243
241
287
355
460
364
487
452
391
500
451
375
372
302
316
398
394
431
431




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 1 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160367&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160367&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160367&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 time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







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[106])
104460-------
105364-------
106487-------
107452436.3865298.795637.33740.43950.31080.75990.3108
108391429.2563268.5992686.00730.38510.43110.32970.3297
109500431.3133255.1583729.08160.32560.60460.44580.357
110451409.6295234.6732715.02120.39530.2810.54760.3097
111375430.1356239.9927770.92610.37560.45220.34390.3718
112372437.1604232.3818822.39320.37010.62410.47190.3999
113302417.8042214.3134814.50960.28360.58950.58370.3662
114316422.7935211.8592843.74130.30950.71310.59350.3825
115398435.5297210.7252900.1590.43710.69290.71340.4141
116394425.235198.5383910.78030.44980.54380.67040.4016
117431419.6706191.429920.04570.48230.540.53380.396
118431430.5353191.4101968.39520.49930.49930.5530.4185

\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[106]) \tabularnewline
104 & 460 & - & - & - & - & - & - & - \tabularnewline
105 & 364 & - & - & - & - & - & - & - \tabularnewline
106 & 487 & - & - & - & - & - & - & - \tabularnewline
107 & 452 & 436.3865 & 298.795 & 637.3374 & 0.4395 & 0.3108 & 0.7599 & 0.3108 \tabularnewline
108 & 391 & 429.2563 & 268.5992 & 686.0073 & 0.3851 & 0.4311 & 0.3297 & 0.3297 \tabularnewline
109 & 500 & 431.3133 & 255.1583 & 729.0816 & 0.3256 & 0.6046 & 0.4458 & 0.357 \tabularnewline
110 & 451 & 409.6295 & 234.6732 & 715.0212 & 0.3953 & 0.281 & 0.5476 & 0.3097 \tabularnewline
111 & 375 & 430.1356 & 239.9927 & 770.9261 & 0.3756 & 0.4522 & 0.3439 & 0.3718 \tabularnewline
112 & 372 & 437.1604 & 232.3818 & 822.3932 & 0.3701 & 0.6241 & 0.4719 & 0.3999 \tabularnewline
113 & 302 & 417.8042 & 214.3134 & 814.5096 & 0.2836 & 0.5895 & 0.5837 & 0.3662 \tabularnewline
114 & 316 & 422.7935 & 211.8592 & 843.7413 & 0.3095 & 0.7131 & 0.5935 & 0.3825 \tabularnewline
115 & 398 & 435.5297 & 210.7252 & 900.159 & 0.4371 & 0.6929 & 0.7134 & 0.4141 \tabularnewline
116 & 394 & 425.235 & 198.5383 & 910.7803 & 0.4498 & 0.5438 & 0.6704 & 0.4016 \tabularnewline
117 & 431 & 419.6706 & 191.429 & 920.0457 & 0.4823 & 0.54 & 0.5338 & 0.396 \tabularnewline
118 & 431 & 430.5353 & 191.4101 & 968.3952 & 0.4993 & 0.4993 & 0.553 & 0.4185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160367&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[106])[/C][/ROW]
[ROW][C]104[/C][C]460[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]105[/C][C]364[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]106[/C][C]487[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]107[/C][C]452[/C][C]436.3865[/C][C]298.795[/C][C]637.3374[/C][C]0.4395[/C][C]0.3108[/C][C]0.7599[/C][C]0.3108[/C][/ROW]
[ROW][C]108[/C][C]391[/C][C]429.2563[/C][C]268.5992[/C][C]686.0073[/C][C]0.3851[/C][C]0.4311[/C][C]0.3297[/C][C]0.3297[/C][/ROW]
[ROW][C]109[/C][C]500[/C][C]431.3133[/C][C]255.1583[/C][C]729.0816[/C][C]0.3256[/C][C]0.6046[/C][C]0.4458[/C][C]0.357[/C][/ROW]
[ROW][C]110[/C][C]451[/C][C]409.6295[/C][C]234.6732[/C][C]715.0212[/C][C]0.3953[/C][C]0.281[/C][C]0.5476[/C][C]0.3097[/C][/ROW]
[ROW][C]111[/C][C]375[/C][C]430.1356[/C][C]239.9927[/C][C]770.9261[/C][C]0.3756[/C][C]0.4522[/C][C]0.3439[/C][C]0.3718[/C][/ROW]
[ROW][C]112[/C][C]372[/C][C]437.1604[/C][C]232.3818[/C][C]822.3932[/C][C]0.3701[/C][C]0.6241[/C][C]0.4719[/C][C]0.3999[/C][/ROW]
[ROW][C]113[/C][C]302[/C][C]417.8042[/C][C]214.3134[/C][C]814.5096[/C][C]0.2836[/C][C]0.5895[/C][C]0.5837[/C][C]0.3662[/C][/ROW]
[ROW][C]114[/C][C]316[/C][C]422.7935[/C][C]211.8592[/C][C]843.7413[/C][C]0.3095[/C][C]0.7131[/C][C]0.5935[/C][C]0.3825[/C][/ROW]
[ROW][C]115[/C][C]398[/C][C]435.5297[/C][C]210.7252[/C][C]900.159[/C][C]0.4371[/C][C]0.6929[/C][C]0.7134[/C][C]0.4141[/C][/ROW]
[ROW][C]116[/C][C]394[/C][C]425.235[/C][C]198.5383[/C][C]910.7803[/C][C]0.4498[/C][C]0.5438[/C][C]0.6704[/C][C]0.4016[/C][/ROW]
[ROW][C]117[/C][C]431[/C][C]419.6706[/C][C]191.429[/C][C]920.0457[/C][C]0.4823[/C][C]0.54[/C][C]0.5338[/C][C]0.396[/C][/ROW]
[ROW][C]118[/C][C]431[/C][C]430.5353[/C][C]191.4101[/C][C]968.3952[/C][C]0.4993[/C][C]0.4993[/C][C]0.553[/C][C]0.4185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160367&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160367&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[106])
104460-------
105364-------
106487-------
107452436.3865298.795637.33740.43950.31080.75990.3108
108391429.2563268.5992686.00730.38510.43110.32970.3297
109500431.3133255.1583729.08160.32560.60460.44580.357
110451409.6295234.6732715.02120.39530.2810.54760.3097
111375430.1356239.9927770.92610.37560.45220.34390.3718
112372437.1604232.3818822.39320.37010.62410.47190.3999
113302417.8042214.3134814.50960.28360.58950.58370.3662
114316422.7935211.8592843.74130.30950.71310.59350.3825
115398435.5297210.7252900.1590.43710.69290.71340.4141
116394425.235198.5383910.78030.44980.54380.67040.4016
117431419.6706191.429920.04570.48230.540.53380.396
118431430.5353191.4101968.39520.49930.49930.5530.4185







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
1070.23490.03580243.780100
1080.3052-0.08910.06251463.5464853.663329.2175
1090.35220.15930.09474717.85972141.728846.2788
1100.38040.1010.09631711.52142034.176945.1019
1110.4042-0.12820.10273039.93332235.328247.2793
1120.4496-0.14910.11044245.87472570.419350.6993
1130.4844-0.27720.134213410.61344119.018564.1796
1140.508-0.25260.14911404.84465029.746770.9207
1150.5443-0.08620.1421408.48184627.38468.0249
1160.5826-0.07350.1352975.62464262.20865.2856
1170.60830.0270.1253128.3563886.403362.341
1180.63740.00110.1150.21593562.554359.6871

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
107 & 0.2349 & 0.0358 & 0 & 243.7801 & 0 & 0 \tabularnewline
108 & 0.3052 & -0.0891 & 0.0625 & 1463.5464 & 853.6633 & 29.2175 \tabularnewline
109 & 0.3522 & 0.1593 & 0.0947 & 4717.8597 & 2141.7288 & 46.2788 \tabularnewline
110 & 0.3804 & 0.101 & 0.0963 & 1711.5214 & 2034.1769 & 45.1019 \tabularnewline
111 & 0.4042 & -0.1282 & 0.1027 & 3039.9333 & 2235.3282 & 47.2793 \tabularnewline
112 & 0.4496 & -0.1491 & 0.1104 & 4245.8747 & 2570.4193 & 50.6993 \tabularnewline
113 & 0.4844 & -0.2772 & 0.1342 & 13410.6134 & 4119.0185 & 64.1796 \tabularnewline
114 & 0.508 & -0.2526 & 0.149 & 11404.8446 & 5029.7467 & 70.9207 \tabularnewline
115 & 0.5443 & -0.0862 & 0.142 & 1408.4818 & 4627.384 & 68.0249 \tabularnewline
116 & 0.5826 & -0.0735 & 0.1352 & 975.6246 & 4262.208 & 65.2856 \tabularnewline
117 & 0.6083 & 0.027 & 0.1253 & 128.356 & 3886.4033 & 62.341 \tabularnewline
118 & 0.6374 & 0.0011 & 0.115 & 0.2159 & 3562.5543 & 59.6871 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160367&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]107[/C][C]0.2349[/C][C]0.0358[/C][C]0[/C][C]243.7801[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]108[/C][C]0.3052[/C][C]-0.0891[/C][C]0.0625[/C][C]1463.5464[/C][C]853.6633[/C][C]29.2175[/C][/ROW]
[ROW][C]109[/C][C]0.3522[/C][C]0.1593[/C][C]0.0947[/C][C]4717.8597[/C][C]2141.7288[/C][C]46.2788[/C][/ROW]
[ROW][C]110[/C][C]0.3804[/C][C]0.101[/C][C]0.0963[/C][C]1711.5214[/C][C]2034.1769[/C][C]45.1019[/C][/ROW]
[ROW][C]111[/C][C]0.4042[/C][C]-0.1282[/C][C]0.1027[/C][C]3039.9333[/C][C]2235.3282[/C][C]47.2793[/C][/ROW]
[ROW][C]112[/C][C]0.4496[/C][C]-0.1491[/C][C]0.1104[/C][C]4245.8747[/C][C]2570.4193[/C][C]50.6993[/C][/ROW]
[ROW][C]113[/C][C]0.4844[/C][C]-0.2772[/C][C]0.1342[/C][C]13410.6134[/C][C]4119.0185[/C][C]64.1796[/C][/ROW]
[ROW][C]114[/C][C]0.508[/C][C]-0.2526[/C][C]0.149[/C][C]11404.8446[/C][C]5029.7467[/C][C]70.9207[/C][/ROW]
[ROW][C]115[/C][C]0.5443[/C][C]-0.0862[/C][C]0.142[/C][C]1408.4818[/C][C]4627.384[/C][C]68.0249[/C][/ROW]
[ROW][C]116[/C][C]0.5826[/C][C]-0.0735[/C][C]0.1352[/C][C]975.6246[/C][C]4262.208[/C][C]65.2856[/C][/ROW]
[ROW][C]117[/C][C]0.6083[/C][C]0.027[/C][C]0.1253[/C][C]128.356[/C][C]3886.4033[/C][C]62.341[/C][/ROW]
[ROW][C]118[/C][C]0.6374[/C][C]0.0011[/C][C]0.115[/C][C]0.2159[/C][C]3562.5543[/C][C]59.6871[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160367&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160367&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
1070.23490.03580243.780100
1080.3052-0.08910.06251463.5464853.663329.2175
1090.35220.15930.09474717.85972141.728846.2788
1100.38040.1010.09631711.52142034.176945.1019
1110.4042-0.12820.10273039.93332235.328247.2793
1120.4496-0.14910.11044245.87472570.419350.6993
1130.4844-0.27720.134213410.61344119.018564.1796
1140.508-0.25260.14911404.84465029.746770.9207
1150.5443-0.08620.1421408.48184627.38468.0249
1160.5826-0.07350.1352975.62464262.20865.2856
1170.60830.0270.1253128.3563886.403362.341
1180.63740.00110.1150.21593562.554359.6871



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