Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimabackwardselection.wasp
Title produced by softwareARIMA Backward Selection
Date of computationMon, 03 Dec 2007 04:32:23 -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/2007/Dec/03/t1196680857t3qd2xx0l1fav66.htm/, Retrieved Sat, 04 May 2024 05:07:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2324, Retrieved Sat, 04 May 2024 05:07:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsex012008
Estimated Impact394
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Backward Selection] [omzet] [2007-12-03 11:32:23] [ef257666c09b3678397177defae7fd99] [Current]
Feedback Forum

Post a new message
Dataseries X:
122302.01
109264.65
103674.75
103890.3
75512.66
83121.3
125096.81
74206.73
88481.63
111598.17
146919.48
150790.85
113780.5
110870.76
118785.32
112820.5
102188.92
97092.73
114067.82
89690.15
89267.9
96198.64
129599.75
169424.7
152510.91
121850.2
144737.64
121381.88
106894.86
94305.06
116800.42
77584.28
100680.88
106634.05
168390.77
211971.89
136163.28
168950.25
89816.88
85406.93
66055.52
73311.68
85674.51
82822.59
94277.63
100991.65
149245.88
208517.17
40733.51
121352.23
104020.11
99566.82
101352.17
106628.41
109696.95
248696.37
105628.33
120449.17
136547.7
140896.42
131509.91
95450.31
133592.64
110332.9
88110.54
64931.25
98446.22
84212.38
77519.55
124806.02
102185.94
151348.79
124378.28
101433.13
126724.22
87461.88
95288.27
129055.33
107753.06
96364.03
71662.75
125666.24
456841.51
167642.32
167154.73
139685.18
119275.2
122746.05
107337.43
112584.89
133183.08
121152.57
119815.6
122858.44
152077.17
157221.96
140435.08
101455.09
104791.29
77226.59
84477.43
66227.74
89076.23
108924.43
83926.11
91764.8
120892.76
129952.42
135865.14
105512.77
96486.62
78064.88
92370.22
98454.46
96703.93
83170.95




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

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 13 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=2324&T=0

[TABLE]
[ROW][C]Summary of compuational 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]13 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=2324&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2324&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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time13 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







ARIMA Parameter Estimation and Backward Selection
Iterationar1ar2ar3ma1sar1sar2
Estimates ( 1 )-0.38560.19150.18790.4147-0.6947-0.5456
(p-val)(0.2831 )(0.0654 )(0.0973 )(0.2457 )(0 )(0 )
Estimates ( 2 )00.17440.10690.0324-0.6996-0.5431
(p-val)(NA )(0.0751 )(0.3115 )(0.7472 )(0 )(0 )
Estimates ( 3 )00.17560.10760-0.6997-0.549
(p-val)(NA )(0.0728 )(0.3083 )(NA )(0 )(0 )
Estimates ( 4 )00.174900-0.7235-0.533
(p-val)(NA )(0.0748 )(NA )(NA )(0 )(0 )
Estimates ( 5 )0000-0.7222-0.5104
(p-val)(NA )(NA )(NA )(NA )(0 )(0 )

\begin{tabular}{lllllllll}
\hline
ARIMA Parameter Estimation and Backward Selection \tabularnewline
Iteration & ar1 & ar2 & ar3 & ma1 & sar1 & sar2 \tabularnewline
Estimates ( 1 ) & -0.3856 & 0.1915 & 0.1879 & 0.4147 & -0.6947 & -0.5456 \tabularnewline
(p-val) & (0.2831 ) & (0.0654 ) & (0.0973 ) & (0.2457 ) & (0 ) & (0 ) \tabularnewline
Estimates ( 2 ) & 0 & 0.1744 & 0.1069 & 0.0324 & -0.6996 & -0.5431 \tabularnewline
(p-val) & (NA ) & (0.0751 ) & (0.3115 ) & (0.7472 ) & (0 ) & (0 ) \tabularnewline
Estimates ( 3 ) & 0 & 0.1756 & 0.1076 & 0 & -0.6997 & -0.549 \tabularnewline
(p-val) & (NA ) & (0.0728 ) & (0.3083 ) & (NA ) & (0 ) & (0 ) \tabularnewline
Estimates ( 4 ) & 0 & 0.1749 & 0 & 0 & -0.7235 & -0.533 \tabularnewline
(p-val) & (NA ) & (0.0748 ) & (NA ) & (NA ) & (0 ) & (0 ) \tabularnewline
Estimates ( 5 ) & 0 & 0 & 0 & 0 & -0.7222 & -0.5104 \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) & (0 ) & (0 ) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2324&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][C]sar1[/C][C]sar2[/C][/ROW]
[ROW][C]Estimates ( 1 )[/C][C]-0.3856[/C][C]0.1915[/C][C]0.1879[/C][C]0.4147[/C][C]-0.6947[/C][C]-0.5456[/C][/ROW]
[ROW][C](p-val)[/C][C](0.2831 )[/C][C](0.0654 )[/C][C](0.0973 )[/C][C](0.2457 )[/C][C](0 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 2 )[/C][C]0[/C][C]0.1744[/C][C]0.1069[/C][C]0.0324[/C][C]-0.6996[/C][C]-0.5431[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](0.0751 )[/C][C](0.3115 )[/C][C](0.7472 )[/C][C](0 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 3 )[/C][C]0[/C][C]0.1756[/C][C]0.1076[/C][C]0[/C][C]-0.6997[/C][C]-0.549[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](0.0728 )[/C][C](0.3083 )[/C][C](NA )[/C][C](0 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 4 )[/C][C]0[/C][C]0.1749[/C][C]0[/C][C]0[/C][C]-0.7235[/C][C]-0.533[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](0.0748 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 5 )[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]-0.7222[/C][C]-0.5104[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](0 )[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2324&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2324&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
Iterationar1ar2ar3ma1sar1sar2
Estimates ( 1 )-0.38560.19150.18790.4147-0.6947-0.5456
(p-val)(0.2831 )(0.0654 )(0.0973 )(0.2457 )(0 )(0 )
Estimates ( 2 )00.17440.10690.0324-0.6996-0.5431
(p-val)(NA )(0.0751 )(0.3115 )(0.7472 )(0 )(0 )
Estimates ( 3 )00.17560.10760-0.6997-0.549
(p-val)(NA )(0.0728 )(0.3083 )(NA )(0 )(0 )
Estimates ( 4 )00.174900-0.7235-0.533
(p-val)(NA )(0.0748 )(NA )(NA )(0 )(0 )
Estimates ( 5 )0000-0.7222-0.5104
(p-val)(NA )(NA )(NA )(NA )(0 )(0 )







Estimated ARIMA Residuals
Value
150.790688775846
-6258.83534189665
1179.70002837875
12383.4735350986
6452.27270900916
17925.4944763725
9257.68433920925
-11723.3498644816
9730.29130029668
1936.54617702668
-13491.8770530529
-13575.4890229713
16045.3501201983
31348.045275449
7731.3341195073
22856.4486960203
9073.2631337878
9741.59405237557
1332.23572230402
-4628.33356110052
-4607.73974806942
10468.3136697059
3481.88214736408
25028.6738442344
43679.0460797915
3133.96300715266
49119.3221578365
-29338.6167794636
-34798.4849473318
-18302.9667882799
-11186.9532031470
-30966.7969435158
7455.0861209843
8399.08769635226
-7128.66714707987
-710.3526687469
38360.0693181986
-86558.4287678845
-14187.9571747546
3452.42288668084
-5961.29547826464
10305.4208935305
17920.5309412364
1516.14971428292
160300.016991544
12283.5231099274
-7608.94694452296
-8111.9760189687
-51104.480478478
14051.3976851153
-26934.501973342
8297.05855141608
7997.75560146061
-11323.2347058055
-29104.6052892639
-8804.79506817229
-36655.7461215054
-21480.2013942902
22717.8851070332
-49675.4810209872
-43007.5042557363
17078.2355867197
-31075.4428611256
20753.5566469650
-866.61457864198
12546.4353825002
53033.941150139
11101.0470118611
-27479.2194387895
-22585.9201086563
17607.2507747408
326551.315645887
-14702.2973393577
29501.4682467813
30906.0918468706
-11697.8693797096
19443.5659647436
9599.18339880255
3414.58835532525
24385.1665443376
-55436.4896111982
24357.0626776376
9597.46988149706
-71563.4063280716
6914.44503835373
12057.6240025949
-8581.25723332376
-23608.2928407493
-30894.6657060471
-6201.06970316944
-18465.4746948189
-18944.3321613762
16396.3058775606
-545.771753456022
-34797.1597979204
-61904.9006746859
-20410.1549297337
9854.80042974788
1357.59845540812
-22560.9540910830
-12724.6492980212
1756.58704714364
-7765.37726810927
-10338.4454327962
-19622.9718791054

\begin{tabular}{lllllllll}
\hline
Estimated ARIMA Residuals \tabularnewline
Value \tabularnewline
150.790688775846 \tabularnewline
-6258.83534189665 \tabularnewline
1179.70002837875 \tabularnewline
12383.4735350986 \tabularnewline
6452.27270900916 \tabularnewline
17925.4944763725 \tabularnewline
9257.68433920925 \tabularnewline
-11723.3498644816 \tabularnewline
9730.29130029668 \tabularnewline
1936.54617702668 \tabularnewline
-13491.8770530529 \tabularnewline
-13575.4890229713 \tabularnewline
16045.3501201983 \tabularnewline
31348.045275449 \tabularnewline
7731.3341195073 \tabularnewline
22856.4486960203 \tabularnewline
9073.2631337878 \tabularnewline
9741.59405237557 \tabularnewline
1332.23572230402 \tabularnewline
-4628.33356110052 \tabularnewline
-4607.73974806942 \tabularnewline
10468.3136697059 \tabularnewline
3481.88214736408 \tabularnewline
25028.6738442344 \tabularnewline
43679.0460797915 \tabularnewline
3133.96300715266 \tabularnewline
49119.3221578365 \tabularnewline
-29338.6167794636 \tabularnewline
-34798.4849473318 \tabularnewline
-18302.9667882799 \tabularnewline
-11186.9532031470 \tabularnewline
-30966.7969435158 \tabularnewline
7455.0861209843 \tabularnewline
8399.08769635226 \tabularnewline
-7128.66714707987 \tabularnewline
-710.3526687469 \tabularnewline
38360.0693181986 \tabularnewline
-86558.4287678845 \tabularnewline
-14187.9571747546 \tabularnewline
3452.42288668084 \tabularnewline
-5961.29547826464 \tabularnewline
10305.4208935305 \tabularnewline
17920.5309412364 \tabularnewline
1516.14971428292 \tabularnewline
160300.016991544 \tabularnewline
12283.5231099274 \tabularnewline
-7608.94694452296 \tabularnewline
-8111.9760189687 \tabularnewline
-51104.480478478 \tabularnewline
14051.3976851153 \tabularnewline
-26934.501973342 \tabularnewline
8297.05855141608 \tabularnewline
7997.75560146061 \tabularnewline
-11323.2347058055 \tabularnewline
-29104.6052892639 \tabularnewline
-8804.79506817229 \tabularnewline
-36655.7461215054 \tabularnewline
-21480.2013942902 \tabularnewline
22717.8851070332 \tabularnewline
-49675.4810209872 \tabularnewline
-43007.5042557363 \tabularnewline
17078.2355867197 \tabularnewline
-31075.4428611256 \tabularnewline
20753.5566469650 \tabularnewline
-866.61457864198 \tabularnewline
12546.4353825002 \tabularnewline
53033.941150139 \tabularnewline
11101.0470118611 \tabularnewline
-27479.2194387895 \tabularnewline
-22585.9201086563 \tabularnewline
17607.2507747408 \tabularnewline
326551.315645887 \tabularnewline
-14702.2973393577 \tabularnewline
29501.4682467813 \tabularnewline
30906.0918468706 \tabularnewline
-11697.8693797096 \tabularnewline
19443.5659647436 \tabularnewline
9599.18339880255 \tabularnewline
3414.58835532525 \tabularnewline
24385.1665443376 \tabularnewline
-55436.4896111982 \tabularnewline
24357.0626776376 \tabularnewline
9597.46988149706 \tabularnewline
-71563.4063280716 \tabularnewline
6914.44503835373 \tabularnewline
12057.6240025949 \tabularnewline
-8581.25723332376 \tabularnewline
-23608.2928407493 \tabularnewline
-30894.6657060471 \tabularnewline
-6201.06970316944 \tabularnewline
-18465.4746948189 \tabularnewline
-18944.3321613762 \tabularnewline
16396.3058775606 \tabularnewline
-545.771753456022 \tabularnewline
-34797.1597979204 \tabularnewline
-61904.9006746859 \tabularnewline
-20410.1549297337 \tabularnewline
9854.80042974788 \tabularnewline
1357.59845540812 \tabularnewline
-22560.9540910830 \tabularnewline
-12724.6492980212 \tabularnewline
1756.58704714364 \tabularnewline
-7765.37726810927 \tabularnewline
-10338.4454327962 \tabularnewline
-19622.9718791054 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2324&T=2

[TABLE]
[ROW][C]Estimated ARIMA Residuals[/C][/ROW]
[ROW][C]Value[/C][/ROW]
[ROW][C]150.790688775846[/C][/ROW]
[ROW][C]-6258.83534189665[/C][/ROW]
[ROW][C]1179.70002837875[/C][/ROW]
[ROW][C]12383.4735350986[/C][/ROW]
[ROW][C]6452.27270900916[/C][/ROW]
[ROW][C]17925.4944763725[/C][/ROW]
[ROW][C]9257.68433920925[/C][/ROW]
[ROW][C]-11723.3498644816[/C][/ROW]
[ROW][C]9730.29130029668[/C][/ROW]
[ROW][C]1936.54617702668[/C][/ROW]
[ROW][C]-13491.8770530529[/C][/ROW]
[ROW][C]-13575.4890229713[/C][/ROW]
[ROW][C]16045.3501201983[/C][/ROW]
[ROW][C]31348.045275449[/C][/ROW]
[ROW][C]7731.3341195073[/C][/ROW]
[ROW][C]22856.4486960203[/C][/ROW]
[ROW][C]9073.2631337878[/C][/ROW]
[ROW][C]9741.59405237557[/C][/ROW]
[ROW][C]1332.23572230402[/C][/ROW]
[ROW][C]-4628.33356110052[/C][/ROW]
[ROW][C]-4607.73974806942[/C][/ROW]
[ROW][C]10468.3136697059[/C][/ROW]
[ROW][C]3481.88214736408[/C][/ROW]
[ROW][C]25028.6738442344[/C][/ROW]
[ROW][C]43679.0460797915[/C][/ROW]
[ROW][C]3133.96300715266[/C][/ROW]
[ROW][C]49119.3221578365[/C][/ROW]
[ROW][C]-29338.6167794636[/C][/ROW]
[ROW][C]-34798.4849473318[/C][/ROW]
[ROW][C]-18302.9667882799[/C][/ROW]
[ROW][C]-11186.9532031470[/C][/ROW]
[ROW][C]-30966.7969435158[/C][/ROW]
[ROW][C]7455.0861209843[/C][/ROW]
[ROW][C]8399.08769635226[/C][/ROW]
[ROW][C]-7128.66714707987[/C][/ROW]
[ROW][C]-710.3526687469[/C][/ROW]
[ROW][C]38360.0693181986[/C][/ROW]
[ROW][C]-86558.4287678845[/C][/ROW]
[ROW][C]-14187.9571747546[/C][/ROW]
[ROW][C]3452.42288668084[/C][/ROW]
[ROW][C]-5961.29547826464[/C][/ROW]
[ROW][C]10305.4208935305[/C][/ROW]
[ROW][C]17920.5309412364[/C][/ROW]
[ROW][C]1516.14971428292[/C][/ROW]
[ROW][C]160300.016991544[/C][/ROW]
[ROW][C]12283.5231099274[/C][/ROW]
[ROW][C]-7608.94694452296[/C][/ROW]
[ROW][C]-8111.9760189687[/C][/ROW]
[ROW][C]-51104.480478478[/C][/ROW]
[ROW][C]14051.3976851153[/C][/ROW]
[ROW][C]-26934.501973342[/C][/ROW]
[ROW][C]8297.05855141608[/C][/ROW]
[ROW][C]7997.75560146061[/C][/ROW]
[ROW][C]-11323.2347058055[/C][/ROW]
[ROW][C]-29104.6052892639[/C][/ROW]
[ROW][C]-8804.79506817229[/C][/ROW]
[ROW][C]-36655.7461215054[/C][/ROW]
[ROW][C]-21480.2013942902[/C][/ROW]
[ROW][C]22717.8851070332[/C][/ROW]
[ROW][C]-49675.4810209872[/C][/ROW]
[ROW][C]-43007.5042557363[/C][/ROW]
[ROW][C]17078.2355867197[/C][/ROW]
[ROW][C]-31075.4428611256[/C][/ROW]
[ROW][C]20753.5566469650[/C][/ROW]
[ROW][C]-866.61457864198[/C][/ROW]
[ROW][C]12546.4353825002[/C][/ROW]
[ROW][C]53033.941150139[/C][/ROW]
[ROW][C]11101.0470118611[/C][/ROW]
[ROW][C]-27479.2194387895[/C][/ROW]
[ROW][C]-22585.9201086563[/C][/ROW]
[ROW][C]17607.2507747408[/C][/ROW]
[ROW][C]326551.315645887[/C][/ROW]
[ROW][C]-14702.2973393577[/C][/ROW]
[ROW][C]29501.4682467813[/C][/ROW]
[ROW][C]30906.0918468706[/C][/ROW]
[ROW][C]-11697.8693797096[/C][/ROW]
[ROW][C]19443.5659647436[/C][/ROW]
[ROW][C]9599.18339880255[/C][/ROW]
[ROW][C]3414.58835532525[/C][/ROW]
[ROW][C]24385.1665443376[/C][/ROW]
[ROW][C]-55436.4896111982[/C][/ROW]
[ROW][C]24357.0626776376[/C][/ROW]
[ROW][C]9597.46988149706[/C][/ROW]
[ROW][C]-71563.4063280716[/C][/ROW]
[ROW][C]6914.44503835373[/C][/ROW]
[ROW][C]12057.6240025949[/C][/ROW]
[ROW][C]-8581.25723332376[/C][/ROW]
[ROW][C]-23608.2928407493[/C][/ROW]
[ROW][C]-30894.6657060471[/C][/ROW]
[ROW][C]-6201.06970316944[/C][/ROW]
[ROW][C]-18465.4746948189[/C][/ROW]
[ROW][C]-18944.3321613762[/C][/ROW]
[ROW][C]16396.3058775606[/C][/ROW]
[ROW][C]-545.771753456022[/C][/ROW]
[ROW][C]-34797.1597979204[/C][/ROW]
[ROW][C]-61904.9006746859[/C][/ROW]
[ROW][C]-20410.1549297337[/C][/ROW]
[ROW][C]9854.80042974788[/C][/ROW]
[ROW][C]1357.59845540812[/C][/ROW]
[ROW][C]-22560.9540910830[/C][/ROW]
[ROW][C]-12724.6492980212[/C][/ROW]
[ROW][C]1756.58704714364[/C][/ROW]
[ROW][C]-7765.37726810927[/C][/ROW]
[ROW][C]-10338.4454327962[/C][/ROW]
[ROW][C]-19622.9718791054[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2324&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2324&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
150.790688775846
-6258.83534189665
1179.70002837875
12383.4735350986
6452.27270900916
17925.4944763725
9257.68433920925
-11723.3498644816
9730.29130029668
1936.54617702668
-13491.8770530529
-13575.4890229713
16045.3501201983
31348.045275449
7731.3341195073
22856.4486960203
9073.2631337878
9741.59405237557
1332.23572230402
-4628.33356110052
-4607.73974806942
10468.3136697059
3481.88214736408
25028.6738442344
43679.0460797915
3133.96300715266
49119.3221578365
-29338.6167794636
-34798.4849473318
-18302.9667882799
-11186.9532031470
-30966.7969435158
7455.0861209843
8399.08769635226
-7128.66714707987
-710.3526687469
38360.0693181986
-86558.4287678845
-14187.9571747546
3452.42288668084
-5961.29547826464
10305.4208935305
17920.5309412364
1516.14971428292
160300.016991544
12283.5231099274
-7608.94694452296
-8111.9760189687
-51104.480478478
14051.3976851153
-26934.501973342
8297.05855141608
7997.75560146061
-11323.2347058055
-29104.6052892639
-8804.79506817229
-36655.7461215054
-21480.2013942902
22717.8851070332
-49675.4810209872
-43007.5042557363
17078.2355867197
-31075.4428611256
20753.5566469650
-866.61457864198
12546.4353825002
53033.941150139
11101.0470118611
-27479.2194387895
-22585.9201086563
17607.2507747408
326551.315645887
-14702.2973393577
29501.4682467813
30906.0918468706
-11697.8693797096
19443.5659647436
9599.18339880255
3414.58835532525
24385.1665443376
-55436.4896111982
24357.0626776376
9597.46988149706
-71563.4063280716
6914.44503835373
12057.6240025949
-8581.25723332376
-23608.2928407493
-30894.6657060471
-6201.06970316944
-18465.4746948189
-18944.3321613762
16396.3058775606
-545.771753456022
-34797.1597979204
-61904.9006746859
-20410.1549297337
9854.80042974788
1357.59845540812
-22560.9540910830
-12724.6492980212
1756.58704714364
-7765.37726810927
-10338.4454327962
-19622.9718791054



Parameters (Session):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
Parameters (R input):
par1 = FALSE ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 0 ;
R code (references can be found in the software module):
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, ncol=nrc)
pval <- matrix(NA, nrow=nrc, 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)
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')
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')