Free Statistics

of Irreproducible Research!

Author's title

ARIMA Forecast Totaal # niet-werkende werkzoekende vrouwen in het Vlaams ge...

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 12:03:28 -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/t1229367948qvzu2sax83jnm6n.htm/, Retrieved Thu, 16 May 2024 02:12:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33787, Retrieved Thu, 16 May 2024 02:12:12 +0000
QR Codes:

Original text written by user:Testing/seasonal period: 12 Lambda: 1 d: 1 D: 1 SAR: 2 SMA: 1
IsPrivate?No (this computation is public)
User-defined keywordsARIMA Forecast Totaal niet-werkende werkzoekende vrouwen Vlaams gewest
Estimated Impact162
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA Forecast To...] [2008-12-15 19:03:28] [f4b2017b314c03698059f43b95818e67] [Current]
Feedback Forum

Post a new message
Dataseries X:
121148
114624
109822
112081
113534
112110
109826
107423
105540
108573
128591
139145
129700
132828
126868
128390
126830
124105
122323
119296
116822
119224
139357
144322
133676
128283
121640
122877
117284
116463
112685
113235
111692
113152
129889
131153
123770
112516
105940
104320
103582
99064
94989
92241
89752
90610
109456
110213
97694
91844
87572
89812
89050
85990
85070
83277
79586
84215
99708
100698
90861
86700




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33787&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33787&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33787&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







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])
38112516-------
39105940-------
40104320-------
41103582-------
4299064-------
4394989-------
4492241-------
4589752-------
4690610-------
47109456-------
48110213-------
4997694-------
5091844-------
518757286076.631580975.686291177.57690.28280.013300.0133
528981286443.070179229.245293656.89510.180.379500.0711
538905086745.995177910.901695581.08870.30460.24821e-040.129
548599083437.134973235.249893639.02010.31190.14040.00130.0531
558507080650.74369244.691392056.79470.22380.17940.00690.0272
568327777572.053365077.35390066.75360.18540.11980.01070.0126
577958675192.582561696.767688688.39730.26170.12020.01720.0078
588421577208.45562780.826791636.08340.17060.37340.03430.0234
599970897087.065981784.2605112389.87140.36860.95040.05660.7491
60100698102459.749286329.182118590.31630.41520.63090.17310.9015
619086191008.782374090.9093107926.65520.49320.13080.21930.4615
628670088204.228770582.4607105825.99660.43360.38380.34280.3428

\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 & 112516 & - & - & - & - & - & - & - \tabularnewline
39 & 105940 & - & - & - & - & - & - & - \tabularnewline
40 & 104320 & - & - & - & - & - & - & - \tabularnewline
41 & 103582 & - & - & - & - & - & - & - \tabularnewline
42 & 99064 & - & - & - & - & - & - & - \tabularnewline
43 & 94989 & - & - & - & - & - & - & - \tabularnewline
44 & 92241 & - & - & - & - & - & - & - \tabularnewline
45 & 89752 & - & - & - & - & - & - & - \tabularnewline
46 & 90610 & - & - & - & - & - & - & - \tabularnewline
47 & 109456 & - & - & - & - & - & - & - \tabularnewline
48 & 110213 & - & - & - & - & - & - & - \tabularnewline
49 & 97694 & - & - & - & - & - & - & - \tabularnewline
50 & 91844 & - & - & - & - & - & - & - \tabularnewline
51 & 87572 & 86076.6315 & 80975.6862 & 91177.5769 & 0.2828 & 0.0133 & 0 & 0.0133 \tabularnewline
52 & 89812 & 86443.0701 & 79229.2452 & 93656.8951 & 0.18 & 0.3795 & 0 & 0.0711 \tabularnewline
53 & 89050 & 86745.9951 & 77910.9016 & 95581.0887 & 0.3046 & 0.2482 & 1e-04 & 0.129 \tabularnewline
54 & 85990 & 83437.1349 & 73235.2498 & 93639.0201 & 0.3119 & 0.1404 & 0.0013 & 0.0531 \tabularnewline
55 & 85070 & 80650.743 & 69244.6913 & 92056.7947 & 0.2238 & 0.1794 & 0.0069 & 0.0272 \tabularnewline
56 & 83277 & 77572.0533 & 65077.353 & 90066.7536 & 0.1854 & 0.1198 & 0.0107 & 0.0126 \tabularnewline
57 & 79586 & 75192.5825 & 61696.7676 & 88688.3973 & 0.2617 & 0.1202 & 0.0172 & 0.0078 \tabularnewline
58 & 84215 & 77208.455 & 62780.8267 & 91636.0834 & 0.1706 & 0.3734 & 0.0343 & 0.0234 \tabularnewline
59 & 99708 & 97087.0659 & 81784.2605 & 112389.8714 & 0.3686 & 0.9504 & 0.0566 & 0.7491 \tabularnewline
60 & 100698 & 102459.7492 & 86329.182 & 118590.3163 & 0.4152 & 0.6309 & 0.1731 & 0.9015 \tabularnewline
61 & 90861 & 91008.7823 & 74090.9093 & 107926.6552 & 0.4932 & 0.1308 & 0.2193 & 0.4615 \tabularnewline
62 & 86700 & 88204.2287 & 70582.4607 & 105825.9966 & 0.4336 & 0.3838 & 0.3428 & 0.3428 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33787&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]112516[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]39[/C][C]105940[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]40[/C][C]104320[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]103582[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]99064[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]94989[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]44[/C][C]92241[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]45[/C][C]89752[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]46[/C][C]90610[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]47[/C][C]109456[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]48[/C][C]110213[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]97694[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]91844[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]87572[/C][C]86076.6315[/C][C]80975.6862[/C][C]91177.5769[/C][C]0.2828[/C][C]0.0133[/C][C]0[/C][C]0.0133[/C][/ROW]
[ROW][C]52[/C][C]89812[/C][C]86443.0701[/C][C]79229.2452[/C][C]93656.8951[/C][C]0.18[/C][C]0.3795[/C][C]0[/C][C]0.0711[/C][/ROW]
[ROW][C]53[/C][C]89050[/C][C]86745.9951[/C][C]77910.9016[/C][C]95581.0887[/C][C]0.3046[/C][C]0.2482[/C][C]1e-04[/C][C]0.129[/C][/ROW]
[ROW][C]54[/C][C]85990[/C][C]83437.1349[/C][C]73235.2498[/C][C]93639.0201[/C][C]0.3119[/C][C]0.1404[/C][C]0.0013[/C][C]0.0531[/C][/ROW]
[ROW][C]55[/C][C]85070[/C][C]80650.743[/C][C]69244.6913[/C][C]92056.7947[/C][C]0.2238[/C][C]0.1794[/C][C]0.0069[/C][C]0.0272[/C][/ROW]
[ROW][C]56[/C][C]83277[/C][C]77572.0533[/C][C]65077.353[/C][C]90066.7536[/C][C]0.1854[/C][C]0.1198[/C][C]0.0107[/C][C]0.0126[/C][/ROW]
[ROW][C]57[/C][C]79586[/C][C]75192.5825[/C][C]61696.7676[/C][C]88688.3973[/C][C]0.2617[/C][C]0.1202[/C][C]0.0172[/C][C]0.0078[/C][/ROW]
[ROW][C]58[/C][C]84215[/C][C]77208.455[/C][C]62780.8267[/C][C]91636.0834[/C][C]0.1706[/C][C]0.3734[/C][C]0.0343[/C][C]0.0234[/C][/ROW]
[ROW][C]59[/C][C]99708[/C][C]97087.0659[/C][C]81784.2605[/C][C]112389.8714[/C][C]0.3686[/C][C]0.9504[/C][C]0.0566[/C][C]0.7491[/C][/ROW]
[ROW][C]60[/C][C]100698[/C][C]102459.7492[/C][C]86329.182[/C][C]118590.3163[/C][C]0.4152[/C][C]0.6309[/C][C]0.1731[/C][C]0.9015[/C][/ROW]
[ROW][C]61[/C][C]90861[/C][C]91008.7823[/C][C]74090.9093[/C][C]107926.6552[/C][C]0.4932[/C][C]0.1308[/C][C]0.2193[/C][C]0.4615[/C][/ROW]
[ROW][C]62[/C][C]86700[/C][C]88204.2287[/C][C]70582.4607[/C][C]105825.9966[/C][C]0.4336[/C][C]0.3838[/C][C]0.3428[/C][C]0.3428[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33787&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33787&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])
38112516-------
39105940-------
40104320-------
41103582-------
4299064-------
4394989-------
4492241-------
4589752-------
4690610-------
47109456-------
48110213-------
4997694-------
5091844-------
518757286076.631580975.686291177.57690.28280.013300.0133
528981286443.070179229.245293656.89510.180.379500.0711
538905086745.995177910.901695581.08870.30460.24821e-040.129
548599083437.134973235.249893639.02010.31190.14040.00130.0531
558507080650.74369244.691392056.79470.22380.17940.00690.0272
568327777572.053365077.35390066.75360.18540.11980.01070.0126
577958675192.582561696.767688688.39730.26170.12020.01720.0078
588421577208.45562780.826791636.08340.17060.37340.03430.0234
599970897087.065981784.2605112389.87140.36860.95040.05660.7491
60100698102459.749286329.182118590.31630.41520.63090.17310.9015
619086191008.782374090.9093107926.65520.49320.13080.21930.4615
628670088204.228770582.4607105825.99660.43360.38380.34280.3428







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
510.03020.01740.00142236126.815186343.9013431.6757
520.04260.0390.003211349688.4782945807.3732972.5263
530.0520.02660.00225308438.3857442369.8655665.1089
540.06240.03060.00256517120.0104543093.3342736.9487
550.07220.05480.004619529832.26411627486.0221275.7296
560.08220.07350.006132546416.60262712201.38361646.8763
570.09160.05840.004919302117.54921608509.79581268.2704
580.09530.09070.007649091672.15794090972.67982022.6153
590.08040.0270.00226869295.3519572441.2793756.5985
600.0803-0.01720.00143103760.1056258646.6755508.5732
610.0948-0.00161e-0421839.59491819.966242.6611
620.1019-0.01710.00142262703.8479188558.654434.2334

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
51 & 0.0302 & 0.0174 & 0.0014 & 2236126.815 & 186343.9013 & 431.6757 \tabularnewline
52 & 0.0426 & 0.039 & 0.0032 & 11349688.4782 & 945807.3732 & 972.5263 \tabularnewline
53 & 0.052 & 0.0266 & 0.0022 & 5308438.3857 & 442369.8655 & 665.1089 \tabularnewline
54 & 0.0624 & 0.0306 & 0.0025 & 6517120.0104 & 543093.3342 & 736.9487 \tabularnewline
55 & 0.0722 & 0.0548 & 0.0046 & 19529832.2641 & 1627486.022 & 1275.7296 \tabularnewline
56 & 0.0822 & 0.0735 & 0.0061 & 32546416.6026 & 2712201.3836 & 1646.8763 \tabularnewline
57 & 0.0916 & 0.0584 & 0.0049 & 19302117.5492 & 1608509.7958 & 1268.2704 \tabularnewline
58 & 0.0953 & 0.0907 & 0.0076 & 49091672.1579 & 4090972.6798 & 2022.6153 \tabularnewline
59 & 0.0804 & 0.027 & 0.0022 & 6869295.3519 & 572441.2793 & 756.5985 \tabularnewline
60 & 0.0803 & -0.0172 & 0.0014 & 3103760.1056 & 258646.6755 & 508.5732 \tabularnewline
61 & 0.0948 & -0.0016 & 1e-04 & 21839.5949 & 1819.9662 & 42.6611 \tabularnewline
62 & 0.1019 & -0.0171 & 0.0014 & 2262703.8479 & 188558.654 & 434.2334 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33787&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.0302[/C][C]0.0174[/C][C]0.0014[/C][C]2236126.815[/C][C]186343.9013[/C][C]431.6757[/C][/ROW]
[ROW][C]52[/C][C]0.0426[/C][C]0.039[/C][C]0.0032[/C][C]11349688.4782[/C][C]945807.3732[/C][C]972.5263[/C][/ROW]
[ROW][C]53[/C][C]0.052[/C][C]0.0266[/C][C]0.0022[/C][C]5308438.3857[/C][C]442369.8655[/C][C]665.1089[/C][/ROW]
[ROW][C]54[/C][C]0.0624[/C][C]0.0306[/C][C]0.0025[/C][C]6517120.0104[/C][C]543093.3342[/C][C]736.9487[/C][/ROW]
[ROW][C]55[/C][C]0.0722[/C][C]0.0548[/C][C]0.0046[/C][C]19529832.2641[/C][C]1627486.022[/C][C]1275.7296[/C][/ROW]
[ROW][C]56[/C][C]0.0822[/C][C]0.0735[/C][C]0.0061[/C][C]32546416.6026[/C][C]2712201.3836[/C][C]1646.8763[/C][/ROW]
[ROW][C]57[/C][C]0.0916[/C][C]0.0584[/C][C]0.0049[/C][C]19302117.5492[/C][C]1608509.7958[/C][C]1268.2704[/C][/ROW]
[ROW][C]58[/C][C]0.0953[/C][C]0.0907[/C][C]0.0076[/C][C]49091672.1579[/C][C]4090972.6798[/C][C]2022.6153[/C][/ROW]
[ROW][C]59[/C][C]0.0804[/C][C]0.027[/C][C]0.0022[/C][C]6869295.3519[/C][C]572441.2793[/C][C]756.5985[/C][/ROW]
[ROW][C]60[/C][C]0.0803[/C][C]-0.0172[/C][C]0.0014[/C][C]3103760.1056[/C][C]258646.6755[/C][C]508.5732[/C][/ROW]
[ROW][C]61[/C][C]0.0948[/C][C]-0.0016[/C][C]1e-04[/C][C]21839.5949[/C][C]1819.9662[/C][C]42.6611[/C][/ROW]
[ROW][C]62[/C][C]0.1019[/C][C]-0.0171[/C][C]0.0014[/C][C]2262703.8479[/C][C]188558.654[/C][C]434.2334[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33787&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33787&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.03020.01740.00142236126.815186343.9013431.6757
520.04260.0390.003211349688.4782945807.3732972.5263
530.0520.02660.00225308438.3857442369.8655665.1089
540.06240.03060.00256517120.0104543093.3342736.9487
550.07220.05480.004619529832.26411627486.0221275.7296
560.08220.07350.006132546416.60262712201.38361646.8763
570.09160.05840.004919302117.54921608509.79581268.2704
580.09530.09070.007649091672.15794090972.67982022.6153
590.08040.0270.00226869295.3519572441.2793756.5985
600.0803-0.01720.00143103760.1056258646.6755508.5732
610.0948-0.00161e-0421839.59491819.966242.6611
620.1019-0.01710.00142262703.8479188558.654434.2334



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