Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimabackwardselection.wasp
Title produced by softwareARIMA Backward Selection
Date of computationFri, 16 Dec 2016 13:58:19 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Dec/16/t1481893246tki2cce37t97xzo.htm/, Retrieved Thu, 02 May 2024 18:29:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=300234, Retrieved Thu, 02 May 2024 18:29:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact88
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Backward Selection] [Forcast: ARIMA ] [2016-12-16 12:58:19] [111362aa4cdbe055231fbc5cb9e916c4] [Current]
- R P     [ARIMA Backward Selection] [zonder] [2016-12-23 08:09:07] [5d300c3f2919dcb76af3d6c83a609189]
-   P       [ARIMA Backward Selection] [met] [2016-12-23 08:10:43] [5d300c3f2919dcb76af3d6c83a609189]
Feedback Forum

Post a new message
Dataseries X:
4030
4320
4840
4410
4180
4240
3680
4270
4140
4470
4180
4510
4490
3960
3750
3670
3590
2840
3530
4320
3740
3710
3830
3490
4200
4280
4650
2100
2410
1230
2420
2360
1870
2250
1960
2550
3180
3330
3760
3930
3710
3250
3450
3480
3090
3690
3250
3300
4040
3630
3820
3400
2500
2380
2520
2340
2420
2430
2080
2420
2430
2400
2790
2370
2700
2640
2910
2420
2800
2830
2310
2540
2780
2820
3610
3270
3030
3250
3040
3630
3320
3440
3110
3180
3330
3100
3440
3320
3380
3610
3320
3860
3430
3510
3290
3010
3860
3530
3610
3370
3700
3500
4110
4590
3680
4220
3740
3550
4150
4110
4160
3780
3150
3260
4750
4110
3610
3890
2800
2610
3600
3400
3400
3120
3150
3240




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time3 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300234&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]3 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=300234&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300234&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R ServerBig Analytics Cloud Computing Center







ARIMA Parameter Estimation and Backward Selection
Iterationar1ar2ar3ma1
Estimates ( 1 )0.53730.1814-0.0192-0.9294
(p-val)(0 )(0.0977 )(0.849 )(0 )
Estimates ( 2 )0.54350.17790-0.9383
(p-val)(0 )(0.1069 )(NA )(0 )
Estimates ( 3 )0.484200-0.8197
(p-val)(0.0376 )(NA )(NA )(0 )
Estimates ( 4 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 5 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 6 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 7 )NANANANA
(p-val)(NA )(NA )(NA )(NA )

\begin{tabular}{lllllllll}
\hline
ARIMA Parameter Estimation and Backward Selection \tabularnewline
Iteration & ar1 & ar2 & ar3 & ma1 \tabularnewline
Estimates ( 1 ) & 0.5373 & 0.1814 & -0.0192 & -0.9294 \tabularnewline
(p-val) & (0 ) & (0.0977 ) & (0.849 ) & (0 ) \tabularnewline
Estimates ( 2 ) & 0.5435 & 0.1779 & 0 & -0.9383 \tabularnewline
(p-val) & (0 ) & (0.1069 ) & (NA ) & (0 ) \tabularnewline
Estimates ( 3 ) & 0.4842 & 0 & 0 & -0.8197 \tabularnewline
(p-val) & (0.0376 ) & (NA ) & (NA ) & (0 ) \tabularnewline
Estimates ( 4 ) & NA & NA & NA & NA \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) \tabularnewline
Estimates ( 5 ) & NA & NA & NA & NA \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) \tabularnewline
Estimates ( 6 ) & NA & NA & NA & NA \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) \tabularnewline
Estimates ( 7 ) & NA & NA & NA & NA \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300234&T=1

[TABLE]
[ROW][C]ARIMA Parameter Estimation and Backward Selection[/C][/ROW]
[ROW][C]Iteration[/C][C]ar1[/C][C]ar2[/C][C]ar3[/C][C]ma1[/C][/ROW]
[ROW][C]Estimates ( 1 )[/C][C]0.5373[/C][C]0.1814[/C][C]-0.0192[/C][C]-0.9294[/C][/ROW]
[ROW][C](p-val)[/C][C](0 )[/C][C](0.0977 )[/C][C](0.849 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 2 )[/C][C]0.5435[/C][C]0.1779[/C][C]0[/C][C]-0.9383[/C][/ROW]
[ROW][C](p-val)[/C][C](0 )[/C][C](0.1069 )[/C][C](NA )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 3 )[/C][C]0.4842[/C][C]0[/C][C]0[/C][C]-0.8197[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0376 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 4 )[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[ROW][C]Estimates ( 5 )[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[ROW][C]Estimates ( 6 )[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[ROW][C]Estimates ( 7 )[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=300234&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300234&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

ARIMA Parameter Estimation and Backward Selection
Iterationar1ar2ar3ma1
Estimates ( 1 )0.53730.1814-0.0192-0.9294
(p-val)(0 )(0.0977 )(0.849 )(0 )
Estimates ( 2 )0.54350.17790-0.9383
(p-val)(0 )(0.1069 )(NA )(0 )
Estimates ( 3 )0.484200-0.8197
(p-val)(0.0376 )(NA )(NA )(0 )
Estimates ( 4 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 5 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 6 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
Estimates ( 7 )NANANANA
(p-val)(NA )(NA )(NA )(NA )







Estimated ARIMA Residuals
Value
4.02999763504555
267.686316898318
592.822768889223
-218.516848455481
-283.106842887011
1.21589888564657
-542.490092111704
377.298592684866
-1.41991105074186
291.603905060022
-173.737468957906
265.3130194229
98.8472122488326
-483.080376091673
-367.562874084349
-213.992668282937
-198.435692893033
-875.111125069043
292.447976771464
820.160214110831
-363.6127150244
-195.466859754623
56.3361757733626
-346.615194434921
547.971822821912
267.875600443121
450.843148981804
-2340.72186170928
-564.066872413046
-1422.72691497227
441.771114129833
-82.4588596412169
-746.139171591758
-42.8209399951898
-449.352256589686
258.417900113628
603.191077875591
268.405011612635
488.074613142238
367.428579865634
-44.1867992205191
-412.078091978092
102.523999567205
99.3309367261395
-348.662051377652
479.45130426264
-246.832214907257
-49.21581428126
744.895411242362
-122.149233577033
166.542116555117
-294.032685314964
-981.398650598729
-476.964835636194
-82.1808557492042
-311.841829133585
-139.686786903359
-132.52061425316
-494.009491278818
64.8997920924946
-51.6133800802613
-144.3616301306
269.063531031066
-374.150411973536
137.793886774056
-35.3237729045738
210.744501370656
-428.315898884113
196.364090226207
94.9153909391773
-514.855254544596
24.169992239927
230.200989931282
84.6430266546784
804.97829947451
-21.1339587162701
-215.610228580769
208.620173606149
-91.1074455265018
579.49785979634
-49.5284245109797
137.027562233301
-211.480738635803
29.5599013238066
198.410909560028
-137.802115153036
309.007983073206
26.0920446352146
89.2050390622664
302.44729535982
-141.880514859558
523.556013249124
-180.611101753106
48.1432254281184
-141.792893899462
-307.716142871732
752.580735034111
-35.9701562182462
74.3568934506176
-154.988912528204
300.77129054884
-54.4223799181014
608.913821093007
755.425088244329
-570.569364066196
413.782228246001
-223.297214113373
-234.736258277972
568.409377945509
201.073647961148
153.655392209428
-255.875771815307
-672.467824035975
-110.988736017495
1438.1685595484
-119.884566424631
-529.778076453295
168.511861313703
-995.089448875307
-581.147548624724
741.896439043251
-8.09914560093209
-75.0557951154074
-314.841259697092
-113.250616012442
17.248739159849

\begin{tabular}{lllllllll}
\hline
Estimated ARIMA Residuals \tabularnewline
Value \tabularnewline
4.02999763504555 \tabularnewline
267.686316898318 \tabularnewline
592.822768889223 \tabularnewline
-218.516848455481 \tabularnewline
-283.106842887011 \tabularnewline
1.21589888564657 \tabularnewline
-542.490092111704 \tabularnewline
377.298592684866 \tabularnewline
-1.41991105074186 \tabularnewline
291.603905060022 \tabularnewline
-173.737468957906 \tabularnewline
265.3130194229 \tabularnewline
98.8472122488326 \tabularnewline
-483.080376091673 \tabularnewline
-367.562874084349 \tabularnewline
-213.992668282937 \tabularnewline
-198.435692893033 \tabularnewline
-875.111125069043 \tabularnewline
292.447976771464 \tabularnewline
820.160214110831 \tabularnewline
-363.6127150244 \tabularnewline
-195.466859754623 \tabularnewline
56.3361757733626 \tabularnewline
-346.615194434921 \tabularnewline
547.971822821912 \tabularnewline
267.875600443121 \tabularnewline
450.843148981804 \tabularnewline
-2340.72186170928 \tabularnewline
-564.066872413046 \tabularnewline
-1422.72691497227 \tabularnewline
441.771114129833 \tabularnewline
-82.4588596412169 \tabularnewline
-746.139171591758 \tabularnewline
-42.8209399951898 \tabularnewline
-449.352256589686 \tabularnewline
258.417900113628 \tabularnewline
603.191077875591 \tabularnewline
268.405011612635 \tabularnewline
488.074613142238 \tabularnewline
367.428579865634 \tabularnewline
-44.1867992205191 \tabularnewline
-412.078091978092 \tabularnewline
102.523999567205 \tabularnewline
99.3309367261395 \tabularnewline
-348.662051377652 \tabularnewline
479.45130426264 \tabularnewline
-246.832214907257 \tabularnewline
-49.21581428126 \tabularnewline
744.895411242362 \tabularnewline
-122.149233577033 \tabularnewline
166.542116555117 \tabularnewline
-294.032685314964 \tabularnewline
-981.398650598729 \tabularnewline
-476.964835636194 \tabularnewline
-82.1808557492042 \tabularnewline
-311.841829133585 \tabularnewline
-139.686786903359 \tabularnewline
-132.52061425316 \tabularnewline
-494.009491278818 \tabularnewline
64.8997920924946 \tabularnewline
-51.6133800802613 \tabularnewline
-144.3616301306 \tabularnewline
269.063531031066 \tabularnewline
-374.150411973536 \tabularnewline
137.793886774056 \tabularnewline
-35.3237729045738 \tabularnewline
210.744501370656 \tabularnewline
-428.315898884113 \tabularnewline
196.364090226207 \tabularnewline
94.9153909391773 \tabularnewline
-514.855254544596 \tabularnewline
24.169992239927 \tabularnewline
230.200989931282 \tabularnewline
84.6430266546784 \tabularnewline
804.97829947451 \tabularnewline
-21.1339587162701 \tabularnewline
-215.610228580769 \tabularnewline
208.620173606149 \tabularnewline
-91.1074455265018 \tabularnewline
579.49785979634 \tabularnewline
-49.5284245109797 \tabularnewline
137.027562233301 \tabularnewline
-211.480738635803 \tabularnewline
29.5599013238066 \tabularnewline
198.410909560028 \tabularnewline
-137.802115153036 \tabularnewline
309.007983073206 \tabularnewline
26.0920446352146 \tabularnewline
89.2050390622664 \tabularnewline
302.44729535982 \tabularnewline
-141.880514859558 \tabularnewline
523.556013249124 \tabularnewline
-180.611101753106 \tabularnewline
48.1432254281184 \tabularnewline
-141.792893899462 \tabularnewline
-307.716142871732 \tabularnewline
752.580735034111 \tabularnewline
-35.9701562182462 \tabularnewline
74.3568934506176 \tabularnewline
-154.988912528204 \tabularnewline
300.77129054884 \tabularnewline
-54.4223799181014 \tabularnewline
608.913821093007 \tabularnewline
755.425088244329 \tabularnewline
-570.569364066196 \tabularnewline
413.782228246001 \tabularnewline
-223.297214113373 \tabularnewline
-234.736258277972 \tabularnewline
568.409377945509 \tabularnewline
201.073647961148 \tabularnewline
153.655392209428 \tabularnewline
-255.875771815307 \tabularnewline
-672.467824035975 \tabularnewline
-110.988736017495 \tabularnewline
1438.1685595484 \tabularnewline
-119.884566424631 \tabularnewline
-529.778076453295 \tabularnewline
168.511861313703 \tabularnewline
-995.089448875307 \tabularnewline
-581.147548624724 \tabularnewline
741.896439043251 \tabularnewline
-8.09914560093209 \tabularnewline
-75.0557951154074 \tabularnewline
-314.841259697092 \tabularnewline
-113.250616012442 \tabularnewline
17.248739159849 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300234&T=2

[TABLE]
[ROW][C]Estimated ARIMA Residuals[/C][/ROW]
[ROW][C]Value[/C][/ROW]
[ROW][C]4.02999763504555[/C][/ROW]
[ROW][C]267.686316898318[/C][/ROW]
[ROW][C]592.822768889223[/C][/ROW]
[ROW][C]-218.516848455481[/C][/ROW]
[ROW][C]-283.106842887011[/C][/ROW]
[ROW][C]1.21589888564657[/C][/ROW]
[ROW][C]-542.490092111704[/C][/ROW]
[ROW][C]377.298592684866[/C][/ROW]
[ROW][C]-1.41991105074186[/C][/ROW]
[ROW][C]291.603905060022[/C][/ROW]
[ROW][C]-173.737468957906[/C][/ROW]
[ROW][C]265.3130194229[/C][/ROW]
[ROW][C]98.8472122488326[/C][/ROW]
[ROW][C]-483.080376091673[/C][/ROW]
[ROW][C]-367.562874084349[/C][/ROW]
[ROW][C]-213.992668282937[/C][/ROW]
[ROW][C]-198.435692893033[/C][/ROW]
[ROW][C]-875.111125069043[/C][/ROW]
[ROW][C]292.447976771464[/C][/ROW]
[ROW][C]820.160214110831[/C][/ROW]
[ROW][C]-363.6127150244[/C][/ROW]
[ROW][C]-195.466859754623[/C][/ROW]
[ROW][C]56.3361757733626[/C][/ROW]
[ROW][C]-346.615194434921[/C][/ROW]
[ROW][C]547.971822821912[/C][/ROW]
[ROW][C]267.875600443121[/C][/ROW]
[ROW][C]450.843148981804[/C][/ROW]
[ROW][C]-2340.72186170928[/C][/ROW]
[ROW][C]-564.066872413046[/C][/ROW]
[ROW][C]-1422.72691497227[/C][/ROW]
[ROW][C]441.771114129833[/C][/ROW]
[ROW][C]-82.4588596412169[/C][/ROW]
[ROW][C]-746.139171591758[/C][/ROW]
[ROW][C]-42.8209399951898[/C][/ROW]
[ROW][C]-449.352256589686[/C][/ROW]
[ROW][C]258.417900113628[/C][/ROW]
[ROW][C]603.191077875591[/C][/ROW]
[ROW][C]268.405011612635[/C][/ROW]
[ROW][C]488.074613142238[/C][/ROW]
[ROW][C]367.428579865634[/C][/ROW]
[ROW][C]-44.1867992205191[/C][/ROW]
[ROW][C]-412.078091978092[/C][/ROW]
[ROW][C]102.523999567205[/C][/ROW]
[ROW][C]99.3309367261395[/C][/ROW]
[ROW][C]-348.662051377652[/C][/ROW]
[ROW][C]479.45130426264[/C][/ROW]
[ROW][C]-246.832214907257[/C][/ROW]
[ROW][C]-49.21581428126[/C][/ROW]
[ROW][C]744.895411242362[/C][/ROW]
[ROW][C]-122.149233577033[/C][/ROW]
[ROW][C]166.542116555117[/C][/ROW]
[ROW][C]-294.032685314964[/C][/ROW]
[ROW][C]-981.398650598729[/C][/ROW]
[ROW][C]-476.964835636194[/C][/ROW]
[ROW][C]-82.1808557492042[/C][/ROW]
[ROW][C]-311.841829133585[/C][/ROW]
[ROW][C]-139.686786903359[/C][/ROW]
[ROW][C]-132.52061425316[/C][/ROW]
[ROW][C]-494.009491278818[/C][/ROW]
[ROW][C]64.8997920924946[/C][/ROW]
[ROW][C]-51.6133800802613[/C][/ROW]
[ROW][C]-144.3616301306[/C][/ROW]
[ROW][C]269.063531031066[/C][/ROW]
[ROW][C]-374.150411973536[/C][/ROW]
[ROW][C]137.793886774056[/C][/ROW]
[ROW][C]-35.3237729045738[/C][/ROW]
[ROW][C]210.744501370656[/C][/ROW]
[ROW][C]-428.315898884113[/C][/ROW]
[ROW][C]196.364090226207[/C][/ROW]
[ROW][C]94.9153909391773[/C][/ROW]
[ROW][C]-514.855254544596[/C][/ROW]
[ROW][C]24.169992239927[/C][/ROW]
[ROW][C]230.200989931282[/C][/ROW]
[ROW][C]84.6430266546784[/C][/ROW]
[ROW][C]804.97829947451[/C][/ROW]
[ROW][C]-21.1339587162701[/C][/ROW]
[ROW][C]-215.610228580769[/C][/ROW]
[ROW][C]208.620173606149[/C][/ROW]
[ROW][C]-91.1074455265018[/C][/ROW]
[ROW][C]579.49785979634[/C][/ROW]
[ROW][C]-49.5284245109797[/C][/ROW]
[ROW][C]137.027562233301[/C][/ROW]
[ROW][C]-211.480738635803[/C][/ROW]
[ROW][C]29.5599013238066[/C][/ROW]
[ROW][C]198.410909560028[/C][/ROW]
[ROW][C]-137.802115153036[/C][/ROW]
[ROW][C]309.007983073206[/C][/ROW]
[ROW][C]26.0920446352146[/C][/ROW]
[ROW][C]89.2050390622664[/C][/ROW]
[ROW][C]302.44729535982[/C][/ROW]
[ROW][C]-141.880514859558[/C][/ROW]
[ROW][C]523.556013249124[/C][/ROW]
[ROW][C]-180.611101753106[/C][/ROW]
[ROW][C]48.1432254281184[/C][/ROW]
[ROW][C]-141.792893899462[/C][/ROW]
[ROW][C]-307.716142871732[/C][/ROW]
[ROW][C]752.580735034111[/C][/ROW]
[ROW][C]-35.9701562182462[/C][/ROW]
[ROW][C]74.3568934506176[/C][/ROW]
[ROW][C]-154.988912528204[/C][/ROW]
[ROW][C]300.77129054884[/C][/ROW]
[ROW][C]-54.4223799181014[/C][/ROW]
[ROW][C]608.913821093007[/C][/ROW]
[ROW][C]755.425088244329[/C][/ROW]
[ROW][C]-570.569364066196[/C][/ROW]
[ROW][C]413.782228246001[/C][/ROW]
[ROW][C]-223.297214113373[/C][/ROW]
[ROW][C]-234.736258277972[/C][/ROW]
[ROW][C]568.409377945509[/C][/ROW]
[ROW][C]201.073647961148[/C][/ROW]
[ROW][C]153.655392209428[/C][/ROW]
[ROW][C]-255.875771815307[/C][/ROW]
[ROW][C]-672.467824035975[/C][/ROW]
[ROW][C]-110.988736017495[/C][/ROW]
[ROW][C]1438.1685595484[/C][/ROW]
[ROW][C]-119.884566424631[/C][/ROW]
[ROW][C]-529.778076453295[/C][/ROW]
[ROW][C]168.511861313703[/C][/ROW]
[ROW][C]-995.089448875307[/C][/ROW]
[ROW][C]-581.147548624724[/C][/ROW]
[ROW][C]741.896439043251[/C][/ROW]
[ROW][C]-8.09914560093209[/C][/ROW]
[ROW][C]-75.0557951154074[/C][/ROW]
[ROW][C]-314.841259697092[/C][/ROW]
[ROW][C]-113.250616012442[/C][/ROW]
[ROW][C]17.248739159849[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=300234&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300234&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Estimated ARIMA Residuals
Value
4.02999763504555
267.686316898318
592.822768889223
-218.516848455481
-283.106842887011
1.21589888564657
-542.490092111704
377.298592684866
-1.41991105074186
291.603905060022
-173.737468957906
265.3130194229
98.8472122488326
-483.080376091673
-367.562874084349
-213.992668282937
-198.435692893033
-875.111125069043
292.447976771464
820.160214110831
-363.6127150244
-195.466859754623
56.3361757733626
-346.615194434921
547.971822821912
267.875600443121
450.843148981804
-2340.72186170928
-564.066872413046
-1422.72691497227
441.771114129833
-82.4588596412169
-746.139171591758
-42.8209399951898
-449.352256589686
258.417900113628
603.191077875591
268.405011612635
488.074613142238
367.428579865634
-44.1867992205191
-412.078091978092
102.523999567205
99.3309367261395
-348.662051377652
479.45130426264
-246.832214907257
-49.21581428126
744.895411242362
-122.149233577033
166.542116555117
-294.032685314964
-981.398650598729
-476.964835636194
-82.1808557492042
-311.841829133585
-139.686786903359
-132.52061425316
-494.009491278818
64.8997920924946
-51.6133800802613
-144.3616301306
269.063531031066
-374.150411973536
137.793886774056
-35.3237729045738
210.744501370656
-428.315898884113
196.364090226207
94.9153909391773
-514.855254544596
24.169992239927
230.200989931282
84.6430266546784
804.97829947451
-21.1339587162701
-215.610228580769
208.620173606149
-91.1074455265018
579.49785979634
-49.5284245109797
137.027562233301
-211.480738635803
29.5599013238066
198.410909560028
-137.802115153036
309.007983073206
26.0920446352146
89.2050390622664
302.44729535982
-141.880514859558
523.556013249124
-180.611101753106
48.1432254281184
-141.792893899462
-307.716142871732
752.580735034111
-35.9701562182462
74.3568934506176
-154.988912528204
300.77129054884
-54.4223799181014
608.913821093007
755.425088244329
-570.569364066196
413.782228246001
-223.297214113373
-234.736258277972
568.409377945509
201.073647961148
153.655392209428
-255.875771815307
-672.467824035975
-110.988736017495
1438.1685595484
-119.884566424631
-529.778076453295
168.511861313703
-995.089448875307
-581.147548624724
741.896439043251
-8.09914560093209
-75.0557951154074
-314.841259697092
-113.250616012442
17.248739159849



Parameters (Session):
par1 = 12 ; par2 = 12 ; par3 = BFGS ;
Parameters (R input):
par1 = FALSE ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 0 ; par9 = 0 ;
R code (references can be found in the software module):
par9 <- '1'
par8 <- '2'
par7 <- '1'
par6 <- '3'
par5 <- '1'
par4 <- '0'
par3 <- '1'
par2 <- '1'
par1 <- 'FALSE'
library(lattice)
if (par1 == 'TRUE') par1 <- TRUE
if (par1 == 'FALSE') par1 <- FALSE
par2 <- as.numeric(par2) #Box-Cox lambda transformation parameter
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) #degree (p) of the non-seasonal AR(p) polynomial
par7 <- as.numeric(par7) #degree (q) of the non-seasonal MA(q) polynomial
par8 <- as.numeric(par8) #degree (P) of the seasonal AR(P) polynomial
par9 <- as.numeric(par9) #degree (Q) of the seasonal MA(Q) polynomial
armaGR <- function(arima.out, names, n){
try1 <- arima.out$coef
try2 <- sqrt(diag(arima.out$var.coef))
try.data.frame <- data.frame(matrix(NA,ncol=4,nrow=length(names)))
dimnames(try.data.frame) <- list(names,c('coef','std','tstat','pv'))
try.data.frame[,1] <- try1
for(i in 1:length(try2)) try.data.frame[which(rownames(try.data.frame)==names(try2)[i]),2] <- try2[i]
try.data.frame[,3] <- try.data.frame[,1] / try.data.frame[,2]
try.data.frame[,4] <- round((1-pt(abs(try.data.frame[,3]),df=n-(length(try2)+1)))*2,5)
vector <- rep(NA,length(names))
vector[is.na(try.data.frame[,4])] <- 0
maxi <- which.max(try.data.frame[,4])
continue <- max(try.data.frame[,4],na.rm=TRUE) > .05
vector[maxi] <- 0
list(summary=try.data.frame,next.vector=vector,continue=continue)
}
arimaSelect <- function(series, order=c(13,0,0), seasonal=list(order=c(2,0,0),period=12), include.mean=F){
nrc <- order[1]+order[3]+seasonal$order[1]+seasonal$order[3]
coeff <- matrix(NA, nrow=nrc*2, ncol=nrc)
pval <- matrix(NA, nrow=nrc*2, ncol=nrc)
mylist <- rep(list(NULL), nrc)
names <- NULL
if(order[1] > 0) names <- paste('ar',1:order[1],sep='')
if(order[3] > 0) names <- c( names , paste('ma',1:order[3],sep='') )
if(seasonal$order[1] > 0) names <- c(names, paste('sar',1:seasonal$order[1],sep=''))
if(seasonal$order[3] > 0) names <- c(names, paste('sma',1:seasonal$order[3],sep=''))
arima.out <- arima(series, order=order, seasonal=seasonal, include.mean=include.mean, method='ML')
mylist[[1]] <- arima.out
last.arma <- armaGR(arima.out, names, length(series))
mystop <- FALSE
i <- 1
coeff[i,] <- last.arma[[1]][,1]
pval [i,] <- last.arma[[1]][,4]
i <- 2
aic <- arima.out$aic
while(!mystop){
mylist[[i]] <- arima.out
arima.out <- arima(series, order=order, seasonal=seasonal, include.mean=include.mean, method='ML', fixed=last.arma$next.vector)
aic <- c(aic, arima.out$aic)
last.arma <- armaGR(arima.out, names, length(series))
mystop <- !last.arma$continue
coeff[i,] <- last.arma[[1]][,1]
pval [i,] <- last.arma[[1]][,4]
i <- i+1
}
list(coeff, pval, mylist, aic=aic)
}
arimaSelectplot <- function(arimaSelect.out,noms,choix){
noms <- names(arimaSelect.out[[3]][[1]]$coef)
coeff <- arimaSelect.out[[1]]
k <- min(which(is.na(coeff[,1])))-1
coeff <- coeff[1:k,]
pval <- arimaSelect.out[[2]][1:k,]
aic <- arimaSelect.out$aic[1:k]
coeff[coeff==0] <- NA
n <- ncol(coeff)
if(missing(choix)) choix <- k
layout(matrix(c(1,1,1,2,
3,3,3,2,
3,3,3,4,
5,6,7,7),nr=4),
widths=c(10,35,45,15),
heights=c(30,30,15,15))
couleurs <- rainbow(75)[1:50]#(50)
ticks <- pretty(coeff)
par(mar=c(1,1,3,1))
plot(aic,k:1-.5,type='o',pch=21,bg='blue',cex=2,axes=F,lty=2,xpd=NA)
points(aic[choix],k-choix+.5,pch=21,cex=4,bg=2,xpd=NA)
title('aic',line=2)
par(mar=c(3,0,0,0))
plot(0,axes=F,xlab='',ylab='',xlim=range(ticks),ylim=c(.1,1))
rect(xleft = min(ticks) + (0:49)/50*(max(ticks)-min(ticks)),
xright = min(ticks) + (1:50)/50*(max(ticks)-min(ticks)),
ytop = rep(1,50),
ybottom= rep(0,50),col=couleurs,border=NA)
axis(1,ticks)
rect(xleft=min(ticks),xright=max(ticks),ytop=1,ybottom=0)
text(mean(coeff,na.rm=T),.5,'coefficients',cex=2,font=2)
par(mar=c(1,1,3,1))
image(1:n,1:k,t(coeff[k:1,]),axes=F,col=couleurs,zlim=range(ticks))
for(i in 1:n) for(j in 1:k) if(!is.na(coeff[j,i])) {
if(pval[j,i]<.01) symb = 'green'
else if( (pval[j,i]<.05) & (pval[j,i]>=.01)) symb = 'orange'
else if( (pval[j,i]<.1) & (pval[j,i]>=.05)) symb = 'red'
else symb = 'black'
polygon(c(i+.5 ,i+.2 ,i+.5 ,i+.5),
c(k-j+0.5,k-j+0.5,k-j+0.8,k-j+0.5),
col=symb)
if(j==choix) {
rect(xleft=i-.5,
xright=i+.5,
ybottom=k-j+1.5,
ytop=k-j+.5,
lwd=4)
text(i,
k-j+1,
round(coeff[j,i],2),
cex=1.2,
font=2)
}
else{
rect(xleft=i-.5,xright=i+.5,ybottom=k-j+1.5,ytop=k-j+.5)
text(i,k-j+1,round(coeff[j,i],2),cex=1.2,font=1)
}
}
axis(3,1:n,noms)
par(mar=c(0.5,0,0,0.5))
plot(0,axes=F,xlab='',ylab='',type='n',xlim=c(0,8),ylim=c(-.2,.8))
cols <- c('green','orange','red','black')
niv <- c('0','0.01','0.05','0.1')
for(i in 0:3){
polygon(c(1+2*i ,1+2*i ,1+2*i-.5 ,1+2*i),
c(.4 ,.7 , .4 , .4),
col=cols[i+1])
text(2*i,0.5,niv[i+1],cex=1.5)
}
text(8,.5,1,cex=1.5)
text(4,0,'p-value',cex=2)
box()
residus <- arimaSelect.out[[3]][[choix]]$res
par(mar=c(1,2,4,1))
acf(residus,main='')
title('acf',line=.5)
par(mar=c(1,2,4,1))
pacf(residus,main='')
title('pacf',line=.5)
par(mar=c(2,2,4,1))
qqnorm(residus,main='')
title('qq-norm',line=.5)
qqline(residus)
residus
}
if (par2 == 0) x <- log(x)
if (par2 != 0) x <- x^par2
(selection <- arimaSelect(x, order=c(par6,par3,par7), seasonal=list(order=c(par8,par4,par9), period=par5)))
bitmap(file='test1.png')
resid <- arimaSelectplot(selection)
dev.off()
resid
bitmap(file='test2.png')
acf(resid,length(resid)/2, main='Residual Autocorrelation Function')
dev.off()
bitmap(file='test3.png')
pacf(resid,length(resid)/2, main='Residual Partial Autocorrelation Function')
dev.off()
bitmap(file='test4.png')
cpgram(resid, main='Residual Cumulative Periodogram')
dev.off()
bitmap(file='test5.png')
hist(resid, main='Residual Histogram', xlab='values of Residuals')
dev.off()
bitmap(file='test6.png')
densityplot(~resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test7.png')
qqnorm(resid, main='Residual Normal Q-Q Plot')
qqline(resid)
dev.off()
ncols <- length(selection[[1]][1,])
nrows <- length(selection[[2]][,1])-1
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ARIMA Parameter Estimation and Backward Selection', ncols+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Iteration', header=TRUE)
for (i in 1:ncols) {
a<-table.element(a,names(selection[[3]][[1]]$coef)[i],header=TRUE)
}
a<-table.row.end(a)
for (j in 1:nrows) {
a<-table.row.start(a)
mydum <- 'Estimates ('
mydum <- paste(mydum,j)
mydum <- paste(mydum,')')
a<-table.element(a,mydum, header=TRUE)
for (i in 1:ncols) {
a<-table.element(a,round(selection[[1]][j,i],4))
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(p-val)', header=TRUE)
for (i in 1:ncols) {
mydum <- '('
mydum <- paste(mydum,round(selection[[2]][j,i],4),sep='')
mydum <- paste(mydum,')')
a<-table.element(a,mydum)
}
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,'Estimated ARIMA Residuals', 1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Value', 1,TRUE)
a<-table.row.end(a)
for (i in (par4*par5+par3):length(resid)) {
a<-table.row.start(a)
a<-table.element(a,resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')