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 computationSun, 26 Dec 2010 20:32:56 +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/26/t1293395460b26greygjltm1v0.htm/, Retrieved Mon, 06 May 2024 12:47:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115800, Retrieved Mon, 06 May 2024 12:47:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [] [2010-12-25 18:36:11] [84ec9e690346b814992f2f0baa963a63]
-   PD    [ARIMA Forecasting] [Werkloosheid vrou...] [2010-12-26 20:32:56] [75888b09f354cf7130ae5528df429303] [Current]
Feedback Forum

Post a new message
Dataseries X:
313.737
312.276
309.391
302.950
300.316
304.035
333.476
337.698
335.932
323.931
313.927
314.485
313.218
309.664
302.963
298.989
298.423
301.631
329.765
335.083
327.616
309.119
295.916
291.413
291.542
284.678
276.475
272.566
264.981
263.290
296.806
303.598
286.994
276.427
266.424
267.153
268.381
262.522
255.542
253.158
243.803
250.741
280.445
285.257
270.976
261.076
255.603
260.376
263.903
264.291
263.276
262.572
256.167
264.221
293.860
300.713
287.224
275.902
271.115
277.509
279.681
276.239
271.037
266.148
259.497
266.795
298.305
303.725
289.742
276.444
268.606




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115800&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115800&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115800&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'George Udny Yule' @ 72.249.76.132







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[59])
55293.86-------
56300.713-------
57287.224-------
58275.902-------
59271.115-------
60277.509271.5213251.837289.87190.26120.51739e-040.5173
61279.681270.2276234.2887301.91850.27940.32620.14660.4781
62276.239270.6803223.6086310.70050.39270.32970.39910.4915
63271.037277.9948227.2691320.79730.3750.5320.62360.6236
64266.148277.6529223.7311322.68660.30830.61330.50250.612
65259.497270.141211.2062318.34610.33260.56450.3490.4842
66266.795264.7388200.0105316.49490.4690.57870.33160.4046
67298.305271.2743203.6352325.1340.16260.56470.50340.5023
68303.725273.4423201.0557330.33010.14840.19580.59920.532
69289.742268.6843189.3447329.44050.24850.12920.61650.4687
70276.444264.2037178.3212328.34240.35420.21760.46840.4164
71268.606269.8616182.5921335.12790.4850.42160.19650.485

\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[59]) \tabularnewline
55 & 293.86 & - & - & - & - & - & - & - \tabularnewline
56 & 300.713 & - & - & - & - & - & - & - \tabularnewline
57 & 287.224 & - & - & - & - & - & - & - \tabularnewline
58 & 275.902 & - & - & - & - & - & - & - \tabularnewline
59 & 271.115 & - & - & - & - & - & - & - \tabularnewline
60 & 277.509 & 271.5213 & 251.837 & 289.8719 & 0.2612 & 0.5173 & 9e-04 & 0.5173 \tabularnewline
61 & 279.681 & 270.2276 & 234.2887 & 301.9185 & 0.2794 & 0.3262 & 0.1466 & 0.4781 \tabularnewline
62 & 276.239 & 270.6803 & 223.6086 & 310.7005 & 0.3927 & 0.3297 & 0.3991 & 0.4915 \tabularnewline
63 & 271.037 & 277.9948 & 227.2691 & 320.7973 & 0.375 & 0.532 & 0.6236 & 0.6236 \tabularnewline
64 & 266.148 & 277.6529 & 223.7311 & 322.6866 & 0.3083 & 0.6133 & 0.5025 & 0.612 \tabularnewline
65 & 259.497 & 270.141 & 211.2062 & 318.3461 & 0.3326 & 0.5645 & 0.349 & 0.4842 \tabularnewline
66 & 266.795 & 264.7388 & 200.0105 & 316.4949 & 0.469 & 0.5787 & 0.3316 & 0.4046 \tabularnewline
67 & 298.305 & 271.2743 & 203.6352 & 325.134 & 0.1626 & 0.5647 & 0.5034 & 0.5023 \tabularnewline
68 & 303.725 & 273.4423 & 201.0557 & 330.3301 & 0.1484 & 0.1958 & 0.5992 & 0.532 \tabularnewline
69 & 289.742 & 268.6843 & 189.3447 & 329.4405 & 0.2485 & 0.1292 & 0.6165 & 0.4687 \tabularnewline
70 & 276.444 & 264.2037 & 178.3212 & 328.3424 & 0.3542 & 0.2176 & 0.4684 & 0.4164 \tabularnewline
71 & 268.606 & 269.8616 & 182.5921 & 335.1279 & 0.485 & 0.4216 & 0.1965 & 0.485 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115800&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[59])[/C][/ROW]
[ROW][C]55[/C][C]293.86[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]300.713[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]287.224[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]275.902[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]271.115[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]277.509[/C][C]271.5213[/C][C]251.837[/C][C]289.8719[/C][C]0.2612[/C][C]0.5173[/C][C]9e-04[/C][C]0.5173[/C][/ROW]
[ROW][C]61[/C][C]279.681[/C][C]270.2276[/C][C]234.2887[/C][C]301.9185[/C][C]0.2794[/C][C]0.3262[/C][C]0.1466[/C][C]0.4781[/C][/ROW]
[ROW][C]62[/C][C]276.239[/C][C]270.6803[/C][C]223.6086[/C][C]310.7005[/C][C]0.3927[/C][C]0.3297[/C][C]0.3991[/C][C]0.4915[/C][/ROW]
[ROW][C]63[/C][C]271.037[/C][C]277.9948[/C][C]227.2691[/C][C]320.7973[/C][C]0.375[/C][C]0.532[/C][C]0.6236[/C][C]0.6236[/C][/ROW]
[ROW][C]64[/C][C]266.148[/C][C]277.6529[/C][C]223.7311[/C][C]322.6866[/C][C]0.3083[/C][C]0.6133[/C][C]0.5025[/C][C]0.612[/C][/ROW]
[ROW][C]65[/C][C]259.497[/C][C]270.141[/C][C]211.2062[/C][C]318.3461[/C][C]0.3326[/C][C]0.5645[/C][C]0.349[/C][C]0.4842[/C][/ROW]
[ROW][C]66[/C][C]266.795[/C][C]264.7388[/C][C]200.0105[/C][C]316.4949[/C][C]0.469[/C][C]0.5787[/C][C]0.3316[/C][C]0.4046[/C][/ROW]
[ROW][C]67[/C][C]298.305[/C][C]271.2743[/C][C]203.6352[/C][C]325.134[/C][C]0.1626[/C][C]0.5647[/C][C]0.5034[/C][C]0.5023[/C][/ROW]
[ROW][C]68[/C][C]303.725[/C][C]273.4423[/C][C]201.0557[/C][C]330.3301[/C][C]0.1484[/C][C]0.1958[/C][C]0.5992[/C][C]0.532[/C][/ROW]
[ROW][C]69[/C][C]289.742[/C][C]268.6843[/C][C]189.3447[/C][C]329.4405[/C][C]0.2485[/C][C]0.1292[/C][C]0.6165[/C][C]0.4687[/C][/ROW]
[ROW][C]70[/C][C]276.444[/C][C]264.2037[/C][C]178.3212[/C][C]328.3424[/C][C]0.3542[/C][C]0.2176[/C][C]0.4684[/C][C]0.4164[/C][/ROW]
[ROW][C]71[/C][C]268.606[/C][C]269.8616[/C][C]182.5921[/C][C]335.1279[/C][C]0.485[/C][C]0.4216[/C][C]0.1965[/C][C]0.485[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115800&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115800&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[59])
55293.86-------
56300.713-------
57287.224-------
58275.902-------
59271.115-------
60277.509271.5213251.837289.87190.26120.51739e-040.5173
61279.681270.2276234.2887301.91850.27940.32620.14660.4781
62276.239270.6803223.6086310.70050.39270.32970.39910.4915
63271.037277.9948227.2691320.79730.3750.5320.62360.6236
64266.148277.6529223.7311322.68660.30830.61330.50250.612
65259.497270.141211.2062318.34610.33260.56450.3490.4842
66266.795264.7388200.0105316.49490.4690.57870.33160.4046
67298.305271.2743203.6352325.1340.16260.56470.50340.5023
68303.725273.4423201.0557330.33010.14840.19580.59920.532
69289.742268.6843189.3447329.44050.24850.12920.61650.4687
70276.444264.2037178.3212328.34240.35420.21760.46840.4164
71268.606269.8616182.5921335.12790.4850.42160.19650.485







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
600.03450.0221035.852900
610.05980.0350.028589.365962.60947.9126
620.07540.02050.025930.899452.03947.2138
630.0786-0.0250.025748.410751.13227.1507
640.0828-0.04140.0288132.361767.37818.2084
650.091-0.03940.0306113.294575.03088.662
660.09970.00780.02734.228164.91628.0571
670.10130.09960.0364730.6614148.134312.171
680.10610.11070.0446917.0432233.568615.283
690.11540.07840.048443.4286254.554615.9548
700.12390.04630.0478149.8256245.033815.6536
710.1234-0.00470.04421.5765224.745714.9915

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
60 & 0.0345 & 0.0221 & 0 & 35.8529 & 0 & 0 \tabularnewline
61 & 0.0598 & 0.035 & 0.0285 & 89.3659 & 62.6094 & 7.9126 \tabularnewline
62 & 0.0754 & 0.0205 & 0.0259 & 30.8994 & 52.0394 & 7.2138 \tabularnewline
63 & 0.0786 & -0.025 & 0.0257 & 48.4107 & 51.1322 & 7.1507 \tabularnewline
64 & 0.0828 & -0.0414 & 0.0288 & 132.3617 & 67.3781 & 8.2084 \tabularnewline
65 & 0.091 & -0.0394 & 0.0306 & 113.2945 & 75.0308 & 8.662 \tabularnewline
66 & 0.0997 & 0.0078 & 0.0273 & 4.2281 & 64.9162 & 8.0571 \tabularnewline
67 & 0.1013 & 0.0996 & 0.0364 & 730.6614 & 148.1343 & 12.171 \tabularnewline
68 & 0.1061 & 0.1107 & 0.0446 & 917.0432 & 233.5686 & 15.283 \tabularnewline
69 & 0.1154 & 0.0784 & 0.048 & 443.4286 & 254.5546 & 15.9548 \tabularnewline
70 & 0.1239 & 0.0463 & 0.0478 & 149.8256 & 245.0338 & 15.6536 \tabularnewline
71 & 0.1234 & -0.0047 & 0.0442 & 1.5765 & 224.7457 & 14.9915 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115800&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]60[/C][C]0.0345[/C][C]0.0221[/C][C]0[/C][C]35.8529[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]61[/C][C]0.0598[/C][C]0.035[/C][C]0.0285[/C][C]89.3659[/C][C]62.6094[/C][C]7.9126[/C][/ROW]
[ROW][C]62[/C][C]0.0754[/C][C]0.0205[/C][C]0.0259[/C][C]30.8994[/C][C]52.0394[/C][C]7.2138[/C][/ROW]
[ROW][C]63[/C][C]0.0786[/C][C]-0.025[/C][C]0.0257[/C][C]48.4107[/C][C]51.1322[/C][C]7.1507[/C][/ROW]
[ROW][C]64[/C][C]0.0828[/C][C]-0.0414[/C][C]0.0288[/C][C]132.3617[/C][C]67.3781[/C][C]8.2084[/C][/ROW]
[ROW][C]65[/C][C]0.091[/C][C]-0.0394[/C][C]0.0306[/C][C]113.2945[/C][C]75.0308[/C][C]8.662[/C][/ROW]
[ROW][C]66[/C][C]0.0997[/C][C]0.0078[/C][C]0.0273[/C][C]4.2281[/C][C]64.9162[/C][C]8.0571[/C][/ROW]
[ROW][C]67[/C][C]0.1013[/C][C]0.0996[/C][C]0.0364[/C][C]730.6614[/C][C]148.1343[/C][C]12.171[/C][/ROW]
[ROW][C]68[/C][C]0.1061[/C][C]0.1107[/C][C]0.0446[/C][C]917.0432[/C][C]233.5686[/C][C]15.283[/C][/ROW]
[ROW][C]69[/C][C]0.1154[/C][C]0.0784[/C][C]0.048[/C][C]443.4286[/C][C]254.5546[/C][C]15.9548[/C][/ROW]
[ROW][C]70[/C][C]0.1239[/C][C]0.0463[/C][C]0.0478[/C][C]149.8256[/C][C]245.0338[/C][C]15.6536[/C][/ROW]
[ROW][C]71[/C][C]0.1234[/C][C]-0.0047[/C][C]0.0442[/C][C]1.5765[/C][C]224.7457[/C][C]14.9915[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115800&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115800&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
600.03450.0221035.852900
610.05980.0350.028589.365962.60947.9126
620.07540.02050.025930.899452.03947.2138
630.0786-0.0250.025748.410751.13227.1507
640.0828-0.04140.0288132.361767.37818.2084
650.091-0.03940.0306113.294575.03088.662
660.09970.00780.02734.228164.91628.0571
670.10130.09960.0364730.6614148.134312.171
680.10610.11070.0446917.0432233.568615.283
690.11540.07840.048443.4286254.554615.9548
700.12390.04630.0478149.8256245.033815.6536
710.1234-0.00470.04421.5765224.745714.9915



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