Free Statistics

of Irreproducible Research!

Author's title

ARIMA Forecast Totaal # niet-werkende werkzoekende mannen in het Vlaams gew...

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationMon, 15 Dec 2008 10:06:54 -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/2008/Dec/15/t1229360940z8c1c3j208h2zqw.htm/, Retrieved Wed, 15 May 2024 07:48:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33743, Retrieved Wed, 15 May 2024 07:48:33 +0000
QR Codes:

Original text written by user:Lambda: 1 d: 1 D: 1 SAR: 2 perioden: 12 overige parameters: 0
IsPrivate?No (this computation is public)
User-defined keywordsARIMA Forecast Totaal niet-werkende werkzoekende mannen Vlaams gewest
Estimated Impact112
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMPD  [ARIMA Backward Selection] [Test] [2008-12-09 12:10:53] [547636b63517c1c2916a747d66b36ebf]
-   PD    [ARIMA Backward Selection] [Uitkomst 1 ARIMA] [2008-12-14 13:12:27] [b635de6fc42b001d22cbe6e730fec936]
- RMP         [ARIMA Forecasting] [ARIMA Forecast To...] [2008-12-15 17:06:54] [f4b2017b314c03698059f43b95818e67] [Current]
Feedback Forum

Post a new message
Dataseries X:
106099
103235
98857
101107
102700
101477
99639
96622
94697
95093
112885
121162
113624
111632
106707
108827
108413
106249
104861
102382
100320
100228
117089
121523
114948
112831
107605
108928
101993
102850
99925
101536
99450
98305
110159
109483
106810
96279
91982
90276
90999
86622
83117
80367
77550
77443
92844
92175
84822
81632
78872
81485
80651
78192
76844
76335
71415
73899
86822
86371
83469
82662




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33743&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33743&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33743&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







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[50])
3896279-------
3991982-------
4090276-------
4190999-------
4286622-------
4383117-------
4480367-------
4577550-------
4677443-------
4792844-------
4892175-------
4984822-------
5081632-------
517887276980.008671347.14282612.87510.25520.052800.0528
528148577153.821469187.745285119.89770.14330.33626e-040.1353
538065176591.43166835.0286347.84210.20740.16280.00190.1556
547819273676.195862410.462784941.92890.2160.11250.01220.0832
557684471093.466258497.993783688.93870.18540.13470.03070.0505
567633568922.533455124.884682720.18220.14620.13020.0520.0355
577141566490.817151587.653181393.98120.25860.09770.07290.0232
587389966278.281350346.128882210.43380.17420.26370.08480.0295
598682281890.861564992.261898789.46110.28370.8230.1020.512
608637183293.876465481.1884101106.56450.36750.34890.16420.5725
618346976760.185958078.08195442.29070.24080.15670.19880.3046
628266273216.557653703.735592729.37970.17140.15150.1990.199

\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[50]) \tabularnewline
38 & 96279 & - & - & - & - & - & - & - \tabularnewline
39 & 91982 & - & - & - & - & - & - & - \tabularnewline
40 & 90276 & - & - & - & - & - & - & - \tabularnewline
41 & 90999 & - & - & - & - & - & - & - \tabularnewline
42 & 86622 & - & - & - & - & - & - & - \tabularnewline
43 & 83117 & - & - & - & - & - & - & - \tabularnewline
44 & 80367 & - & - & - & - & - & - & - \tabularnewline
45 & 77550 & - & - & - & - & - & - & - \tabularnewline
46 & 77443 & - & - & - & - & - & - & - \tabularnewline
47 & 92844 & - & - & - & - & - & - & - \tabularnewline
48 & 92175 & - & - & - & - & - & - & - \tabularnewline
49 & 84822 & - & - & - & - & - & - & - \tabularnewline
50 & 81632 & - & - & - & - & - & - & - \tabularnewline
51 & 78872 & 76980.0086 & 71347.142 & 82612.8751 & 0.2552 & 0.0528 & 0 & 0.0528 \tabularnewline
52 & 81485 & 77153.8214 & 69187.7452 & 85119.8977 & 0.1433 & 0.3362 & 6e-04 & 0.1353 \tabularnewline
53 & 80651 & 76591.431 & 66835.02 & 86347.8421 & 0.2074 & 0.1628 & 0.0019 & 0.1556 \tabularnewline
54 & 78192 & 73676.1958 & 62410.4627 & 84941.9289 & 0.216 & 0.1125 & 0.0122 & 0.0832 \tabularnewline
55 & 76844 & 71093.4662 & 58497.9937 & 83688.9387 & 0.1854 & 0.1347 & 0.0307 & 0.0505 \tabularnewline
56 & 76335 & 68922.5334 & 55124.8846 & 82720.1822 & 0.1462 & 0.1302 & 0.052 & 0.0355 \tabularnewline
57 & 71415 & 66490.8171 & 51587.6531 & 81393.9812 & 0.2586 & 0.0977 & 0.0729 & 0.0232 \tabularnewline
58 & 73899 & 66278.2813 & 50346.1288 & 82210.4338 & 0.1742 & 0.2637 & 0.0848 & 0.0295 \tabularnewline
59 & 86822 & 81890.8615 & 64992.2618 & 98789.4611 & 0.2837 & 0.823 & 0.102 & 0.512 \tabularnewline
60 & 86371 & 83293.8764 & 65481.1884 & 101106.5645 & 0.3675 & 0.3489 & 0.1642 & 0.5725 \tabularnewline
61 & 83469 & 76760.1859 & 58078.081 & 95442.2907 & 0.2408 & 0.1567 & 0.1988 & 0.3046 \tabularnewline
62 & 82662 & 73216.5576 & 53703.7355 & 92729.3797 & 0.1714 & 0.1515 & 0.199 & 0.199 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33743&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[50])[/C][/ROW]
[ROW][C]38[/C][C]96279[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]39[/C][C]91982[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]40[/C][C]90276[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]90999[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]86622[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]83117[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]44[/C][C]80367[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]77550[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]77443[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]92844[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]92175[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]84822[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]81632[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]78872[/C][C]76980.0086[/C][C]71347.142[/C][C]82612.8751[/C][C]0.2552[/C][C]0.0528[/C][C]0[/C][C]0.0528[/C][/ROW]
[ROW][C]52[/C][C]81485[/C][C]77153.8214[/C][C]69187.7452[/C][C]85119.8977[/C][C]0.1433[/C][C]0.3362[/C][C]6e-04[/C][C]0.1353[/C][/ROW]
[ROW][C]53[/C][C]80651[/C][C]76591.431[/C][C]66835.02[/C][C]86347.8421[/C][C]0.2074[/C][C]0.1628[/C][C]0.0019[/C][C]0.1556[/C][/ROW]
[ROW][C]54[/C][C]78192[/C][C]73676.1958[/C][C]62410.4627[/C][C]84941.9289[/C][C]0.216[/C][C]0.1125[/C][C]0.0122[/C][C]0.0832[/C][/ROW]
[ROW][C]55[/C][C]76844[/C][C]71093.4662[/C][C]58497.9937[/C][C]83688.9387[/C][C]0.1854[/C][C]0.1347[/C][C]0.0307[/C][C]0.0505[/C][/ROW]
[ROW][C]56[/C][C]76335[/C][C]68922.5334[/C][C]55124.8846[/C][C]82720.1822[/C][C]0.1462[/C][C]0.1302[/C][C]0.052[/C][C]0.0355[/C][/ROW]
[ROW][C]57[/C][C]71415[/C][C]66490.8171[/C][C]51587.6531[/C][C]81393.9812[/C][C]0.2586[/C][C]0.0977[/C][C]0.0729[/C][C]0.0232[/C][/ROW]
[ROW][C]58[/C][C]73899[/C][C]66278.2813[/C][C]50346.1288[/C][C]82210.4338[/C][C]0.1742[/C][C]0.2637[/C][C]0.0848[/C][C]0.0295[/C][/ROW]
[ROW][C]59[/C][C]86822[/C][C]81890.8615[/C][C]64992.2618[/C][C]98789.4611[/C][C]0.2837[/C][C]0.823[/C][C]0.102[/C][C]0.512[/C][/ROW]
[ROW][C]60[/C][C]86371[/C][C]83293.8764[/C][C]65481.1884[/C][C]101106.5645[/C][C]0.3675[/C][C]0.3489[/C][C]0.1642[/C][C]0.5725[/C][/ROW]
[ROW][C]61[/C][C]83469[/C][C]76760.1859[/C][C]58078.081[/C][C]95442.2907[/C][C]0.2408[/C][C]0.1567[/C][C]0.1988[/C][C]0.3046[/C][/ROW]
[ROW][C]62[/C][C]82662[/C][C]73216.5576[/C][C]53703.7355[/C][C]92729.3797[/C][C]0.1714[/C][C]0.1515[/C][C]0.199[/C][C]0.199[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33743&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33743&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[50])
3896279-------
3991982-------
4090276-------
4190999-------
4286622-------
4383117-------
4480367-------
4577550-------
4677443-------
4792844-------
4892175-------
4984822-------
5081632-------
517887276980.008671347.14282612.87510.25520.052800.0528
528148577153.821469187.745285119.89770.14330.33626e-040.1353
538065176591.43166835.0286347.84210.20740.16280.00190.1556
547819273676.195862410.462784941.92890.2160.11250.01220.0832
557684471093.466258497.993783688.93870.18540.13470.03070.0505
567633568922.533455124.884682720.18220.14620.13020.0520.0355
577141566490.817151587.653181393.98120.25860.09770.07290.0232
587389966278.281350346.128882210.43380.17420.26370.08480.0295
598682281890.861564992.261898789.46110.28370.8230.1020.512
608637183293.876465481.1884101106.56450.36750.34890.16420.5725
618346976760.185958078.08195442.29070.24080.15670.19880.3046
628266273216.557653703.735592729.37970.17140.15150.1990.199







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
510.03730.02460.0023579631.5118298302.626546.1709
520.05270.05610.004718759107.81871563258.98491250.3036
530.0650.0530.004416480100.15251373341.67941171.8966
540.0780.06130.005120392487.2791699373.93991303.6004
550.09040.08090.006733068638.93412755719.91121660.0361
560.10210.10750.00954944661.32254578721.77692139.7948
570.11440.07410.006224247577.07832020631.42321421.4892
580.12260.1150.009658075353.62774839612.80232199.912
590.10530.06020.00524316127.13972026343.92831423.4971
600.10910.03690.00319468689.5488789057.4624888.2891
610.12420.08740.007345008187.16623750682.26391936.6678
620.1360.1290.010889216382.14067434698.51172726.6644

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
51 & 0.0373 & 0.0246 & 0.002 & 3579631.5118 & 298302.626 & 546.1709 \tabularnewline
52 & 0.0527 & 0.0561 & 0.0047 & 18759107.8187 & 1563258.9849 & 1250.3036 \tabularnewline
53 & 0.065 & 0.053 & 0.0044 & 16480100.1525 & 1373341.6794 & 1171.8966 \tabularnewline
54 & 0.078 & 0.0613 & 0.0051 & 20392487.279 & 1699373.9399 & 1303.6004 \tabularnewline
55 & 0.0904 & 0.0809 & 0.0067 & 33068638.9341 & 2755719.9112 & 1660.0361 \tabularnewline
56 & 0.1021 & 0.1075 & 0.009 & 54944661.3225 & 4578721.7769 & 2139.7948 \tabularnewline
57 & 0.1144 & 0.0741 & 0.0062 & 24247577.0783 & 2020631.4232 & 1421.4892 \tabularnewline
58 & 0.1226 & 0.115 & 0.0096 & 58075353.6277 & 4839612.8023 & 2199.912 \tabularnewline
59 & 0.1053 & 0.0602 & 0.005 & 24316127.1397 & 2026343.9283 & 1423.4971 \tabularnewline
60 & 0.1091 & 0.0369 & 0.0031 & 9468689.5488 & 789057.4624 & 888.2891 \tabularnewline
61 & 0.1242 & 0.0874 & 0.0073 & 45008187.1662 & 3750682.2639 & 1936.6678 \tabularnewline
62 & 0.136 & 0.129 & 0.0108 & 89216382.1406 & 7434698.5117 & 2726.6644 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33743&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]51[/C][C]0.0373[/C][C]0.0246[/C][C]0.002[/C][C]3579631.5118[/C][C]298302.626[/C][C]546.1709[/C][/ROW]
[ROW][C]52[/C][C]0.0527[/C][C]0.0561[/C][C]0.0047[/C][C]18759107.8187[/C][C]1563258.9849[/C][C]1250.3036[/C][/ROW]
[ROW][C]53[/C][C]0.065[/C][C]0.053[/C][C]0.0044[/C][C]16480100.1525[/C][C]1373341.6794[/C][C]1171.8966[/C][/ROW]
[ROW][C]54[/C][C]0.078[/C][C]0.0613[/C][C]0.0051[/C][C]20392487.279[/C][C]1699373.9399[/C][C]1303.6004[/C][/ROW]
[ROW][C]55[/C][C]0.0904[/C][C]0.0809[/C][C]0.0067[/C][C]33068638.9341[/C][C]2755719.9112[/C][C]1660.0361[/C][/ROW]
[ROW][C]56[/C][C]0.1021[/C][C]0.1075[/C][C]0.009[/C][C]54944661.3225[/C][C]4578721.7769[/C][C]2139.7948[/C][/ROW]
[ROW][C]57[/C][C]0.1144[/C][C]0.0741[/C][C]0.0062[/C][C]24247577.0783[/C][C]2020631.4232[/C][C]1421.4892[/C][/ROW]
[ROW][C]58[/C][C]0.1226[/C][C]0.115[/C][C]0.0096[/C][C]58075353.6277[/C][C]4839612.8023[/C][C]2199.912[/C][/ROW]
[ROW][C]59[/C][C]0.1053[/C][C]0.0602[/C][C]0.005[/C][C]24316127.1397[/C][C]2026343.9283[/C][C]1423.4971[/C][/ROW]
[ROW][C]60[/C][C]0.1091[/C][C]0.0369[/C][C]0.0031[/C][C]9468689.5488[/C][C]789057.4624[/C][C]888.2891[/C][/ROW]
[ROW][C]61[/C][C]0.1242[/C][C]0.0874[/C][C]0.0073[/C][C]45008187.1662[/C][C]3750682.2639[/C][C]1936.6678[/C][/ROW]
[ROW][C]62[/C][C]0.136[/C][C]0.129[/C][C]0.0108[/C][C]89216382.1406[/C][C]7434698.5117[/C][C]2726.6644[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33743&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33743&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
510.03730.02460.0023579631.5118298302.626546.1709
520.05270.05610.004718759107.81871563258.98491250.3036
530.0650.0530.004416480100.15251373341.67941171.8966
540.0780.06130.005120392487.2791699373.93991303.6004
550.09040.08090.006733068638.93412755719.91121660.0361
560.10210.10750.00954944661.32254578721.77692139.7948
570.11440.07410.006224247577.07832020631.42321421.4892
580.12260.1150.009658075353.62774839612.80232199.912
590.10530.06020.00524316127.13972026343.92831423.4971
600.10910.03690.00319468689.5488789057.4624888.2891
610.12420.08740.007345008187.16623750682.26391936.6678
620.1360.1290.010889216382.14067434698.51172726.6644



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