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 16:16:29 +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/t14819014659e6h6eok74e3ggl.htm/, Retrieved Thu, 02 May 2024 18:15:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=300353, Retrieved Thu, 02 May 2024 18:15:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact54
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Backward Selection] [arima backward N2530] [2016-12-16 15:16:29] [31f526a885cd288e1bc58dc4a6a7fb1f] [Current]
Feedback Forum

Post a new message
Dataseries X:
2647.36
2711.22
2733.02
2831
2823.6
2833.46
2885.1
2929.78
3108.46
2921.92
2988.78
3038.84
3005.08
2816.94
3016.28
3242.68
3097.38
3057.18
3014.1
3063.66
3100.36
2964.4
3155.4
3217
3091.1
3192.64
3219.66
3478.26
3284.9
3382.2
3341.9
3402.18
3394.04
3374.1
3383.36
3626.54
3579.84
3530.72
3532.4
3636.68
3639.84
3676.98
3668.92
3718.74
3815.02
3799.9
3925.86
4226.32
4049.72
3883.56
3928.18
4377.66
4146.08
4246.12
4163.4
4144.76
4238.82
4352.28
4379.2
4451.02
4368.22
4337.82
4349.92
4079.42
4463.84
4552.72
4489
4455.9
4583.62
4512.76
4654.04
4768.44
4658.66
4589.98
4572.86
4643
4470.7
4635.34
4373.52
4348.18
4421.02
4363.52
4462.84
4567.34
4367.84
4382.64
4386.44
4489.36
4549.1
4627.66
4646.26
4728.68
4687.46
4755.26
4899.7
5042.06
4983.88
5028.08
4819.3
4889.86
4962.22
4968.92
5019.56
5099.18
5171.08
5353.5
5304.26
5636.62
5322.96
5308.46
5352.02
5358.9
5421.04
5537.66
5519.38
5643.06




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=300353&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=300353&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300353&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 )-1.2769-0.4431-0.1640.9858
(p-val)(0 )(0.0027 )(0.0788 )(0 )
Estimates ( 2 )-0.117-0.08560-0.1984
(p-val)(0.7594 )(0.5538 )(NA )(0.5981 )
Estimates ( 3 )0-0.04960-0.3081
(p-val)(NA )(0.6136 )(NA )(8e-04 )
Estimates ( 4 )000-0.3234
(p-val)(NA )(NA )(NA )(3e-04 )
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 ) & -1.2769 & -0.4431 & -0.164 & 0.9858 \tabularnewline
(p-val) & (0 ) & (0.0027 ) & (0.0788 ) & (0 ) \tabularnewline
Estimates ( 2 ) & -0.117 & -0.0856 & 0 & -0.1984 \tabularnewline
(p-val) & (0.7594 ) & (0.5538 ) & (NA ) & (0.5981 ) \tabularnewline
Estimates ( 3 ) & 0 & -0.0496 & 0 & -0.3081 \tabularnewline
(p-val) & (NA ) & (0.6136 ) & (NA ) & (8e-04 ) \tabularnewline
Estimates ( 4 ) & 0 & 0 & 0 & -0.3234 \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (3e-04 ) \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=300353&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]-1.2769[/C][C]-0.4431[/C][C]-0.164[/C][C]0.9858[/C][/ROW]
[ROW][C](p-val)[/C][C](0 )[/C][C](0.0027 )[/C][C](0.0788 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 2 )[/C][C]-0.117[/C][C]-0.0856[/C][C]0[/C][C]-0.1984[/C][/ROW]
[ROW][C](p-val)[/C][C](0.7594 )[/C][C](0.5538 )[/C][C](NA )[/C][C](0.5981 )[/C][/ROW]
[ROW][C]Estimates ( 3 )[/C][C]0[/C][C]-0.0496[/C][C]0[/C][C]-0.3081[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](0.6136 )[/C][C](NA )[/C][C](8e-04 )[/C][/ROW]
[ROW][C]Estimates ( 4 )[/C][C]0[/C][C]0[/C][C]0[/C][C]-0.3234[/C][/ROW]
[ROW][C](p-val)[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][C](3e-04 )[/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=300353&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300353&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 )-1.2769-0.4431-0.1640.9858
(p-val)(0 )(0.0027 )(0.0788 )(0 )
Estimates ( 2 )-0.117-0.08560-0.1984
(p-val)(0.7594 )(0.5538 )(NA )(0.5981 )
Estimates ( 3 )0-0.04960-0.3081
(p-val)(NA )(0.6136 )(NA )(8e-04 )
Estimates ( 4 )000-0.3234
(p-val)(NA )(NA )(NA )(3e-04 )
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
2.64735854712712
60.9553363184521
38.5114609835202
112.797329263552
28.3964640266104
23.4635769886799
58.5014767670693
63.1911097127476
200.706714654093
-122.494164132978
37.9799660457121
52.5143621735129
-14.2680483483135
-190.054251148902
139.117102551386
259.932128221264
-55.3428638659843
-46.0276088287328
-64.4615469735131
27.7089365995471
43.1009232685615
-120.225514619517
155.781488829299
102.852236777449
-84.7474639276647
78.4853179095908
44.9584269874686
277.48316046041
-106.537165721719
77.297110959204
-26.0713404748712
57.0710331568202
7.44422627679023
-14.6588394536266
4.34062010694242
243.528859099332
28.7823238777878
-28.1996501632584
-9.32212779349447
98.9734749789104
33.7337884422764
52.7010240945715
8.33210469475307
54.2277308526809
112.586303497242
22.0335645588716
137.520036935879
342.076025928544
-64.9741430563927
-171.283838823932
-16.9003434449528
436.037672950385
-95.039301983179
93.0403796791334
-65.5357608481127
-33.8708640896102
79.5253893704066
137.03528378605
73.7983003560485
100.178616285573
-50.6039018607271
-42.4295939181438
-5.07524298108001
-273.570322840406
300.741604312963
168.121143055121
7.12681657274061
-26.4990367276805
116.39816346723
-36.6421341427977
136.322310872589
152.884238948611
-55.6786461126985
-80.1624395973467
-47.2567984571333
52.177523169551
-157.074366563135
119.727038255582
-233.47619695656
-89.1059048418301
32.4120019098518
-48.7709147722071
87.9056472303928
128.730836359057
-154.91931362596
-27.7459735575612
-14.6360429269807
99.1446860238175
90.4716128405007
111.532697913146
55.9206771403187
103.541248509285
-8.40037269245386
69.2973437727333
163.745155361563
196.165143484831
9.41142526879139
54.1555644784403
-194.98017437119
12.6837473522619
65.9190707504613
30.5049016492585
63.6241634586886
99.5526331494102
105.078957530118
218.737860261336
21.7098327088843
348.089917161417
-208.86541382741
-62.3709185057141
8.79868490980243
8.87188308108307
67.0322325088055
137.611470562077
27.1936594768658
137.837866381787

\begin{tabular}{lllllllll}
\hline
Estimated ARIMA Residuals \tabularnewline
Value \tabularnewline
2.64735854712712 \tabularnewline
60.9553363184521 \tabularnewline
38.5114609835202 \tabularnewline
112.797329263552 \tabularnewline
28.3964640266104 \tabularnewline
23.4635769886799 \tabularnewline
58.5014767670693 \tabularnewline
63.1911097127476 \tabularnewline
200.706714654093 \tabularnewline
-122.494164132978 \tabularnewline
37.9799660457121 \tabularnewline
52.5143621735129 \tabularnewline
-14.2680483483135 \tabularnewline
-190.054251148902 \tabularnewline
139.117102551386 \tabularnewline
259.932128221264 \tabularnewline
-55.3428638659843 \tabularnewline
-46.0276088287328 \tabularnewline
-64.4615469735131 \tabularnewline
27.7089365995471 \tabularnewline
43.1009232685615 \tabularnewline
-120.225514619517 \tabularnewline
155.781488829299 \tabularnewline
102.852236777449 \tabularnewline
-84.7474639276647 \tabularnewline
78.4853179095908 \tabularnewline
44.9584269874686 \tabularnewline
277.48316046041 \tabularnewline
-106.537165721719 \tabularnewline
77.297110959204 \tabularnewline
-26.0713404748712 \tabularnewline
57.0710331568202 \tabularnewline
7.44422627679023 \tabularnewline
-14.6588394536266 \tabularnewline
4.34062010694242 \tabularnewline
243.528859099332 \tabularnewline
28.7823238777878 \tabularnewline
-28.1996501632584 \tabularnewline
-9.32212779349447 \tabularnewline
98.9734749789104 \tabularnewline
33.7337884422764 \tabularnewline
52.7010240945715 \tabularnewline
8.33210469475307 \tabularnewline
54.2277308526809 \tabularnewline
112.586303497242 \tabularnewline
22.0335645588716 \tabularnewline
137.520036935879 \tabularnewline
342.076025928544 \tabularnewline
-64.9741430563927 \tabularnewline
-171.283838823932 \tabularnewline
-16.9003434449528 \tabularnewline
436.037672950385 \tabularnewline
-95.039301983179 \tabularnewline
93.0403796791334 \tabularnewline
-65.5357608481127 \tabularnewline
-33.8708640896102 \tabularnewline
79.5253893704066 \tabularnewline
137.03528378605 \tabularnewline
73.7983003560485 \tabularnewline
100.178616285573 \tabularnewline
-50.6039018607271 \tabularnewline
-42.4295939181438 \tabularnewline
-5.07524298108001 \tabularnewline
-273.570322840406 \tabularnewline
300.741604312963 \tabularnewline
168.121143055121 \tabularnewline
7.12681657274061 \tabularnewline
-26.4990367276805 \tabularnewline
116.39816346723 \tabularnewline
-36.6421341427977 \tabularnewline
136.322310872589 \tabularnewline
152.884238948611 \tabularnewline
-55.6786461126985 \tabularnewline
-80.1624395973467 \tabularnewline
-47.2567984571333 \tabularnewline
52.177523169551 \tabularnewline
-157.074366563135 \tabularnewline
119.727038255582 \tabularnewline
-233.47619695656 \tabularnewline
-89.1059048418301 \tabularnewline
32.4120019098518 \tabularnewline
-48.7709147722071 \tabularnewline
87.9056472303928 \tabularnewline
128.730836359057 \tabularnewline
-154.91931362596 \tabularnewline
-27.7459735575612 \tabularnewline
-14.6360429269807 \tabularnewline
99.1446860238175 \tabularnewline
90.4716128405007 \tabularnewline
111.532697913146 \tabularnewline
55.9206771403187 \tabularnewline
103.541248509285 \tabularnewline
-8.40037269245386 \tabularnewline
69.2973437727333 \tabularnewline
163.745155361563 \tabularnewline
196.165143484831 \tabularnewline
9.41142526879139 \tabularnewline
54.1555644784403 \tabularnewline
-194.98017437119 \tabularnewline
12.6837473522619 \tabularnewline
65.9190707504613 \tabularnewline
30.5049016492585 \tabularnewline
63.6241634586886 \tabularnewline
99.5526331494102 \tabularnewline
105.078957530118 \tabularnewline
218.737860261336 \tabularnewline
21.7098327088843 \tabularnewline
348.089917161417 \tabularnewline
-208.86541382741 \tabularnewline
-62.3709185057141 \tabularnewline
8.79868490980243 \tabularnewline
8.87188308108307 \tabularnewline
67.0322325088055 \tabularnewline
137.611470562077 \tabularnewline
27.1936594768658 \tabularnewline
137.837866381787 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300353&T=2

[TABLE]
[ROW][C]Estimated ARIMA Residuals[/C][/ROW]
[ROW][C]Value[/C][/ROW]
[ROW][C]2.64735854712712[/C][/ROW]
[ROW][C]60.9553363184521[/C][/ROW]
[ROW][C]38.5114609835202[/C][/ROW]
[ROW][C]112.797329263552[/C][/ROW]
[ROW][C]28.3964640266104[/C][/ROW]
[ROW][C]23.4635769886799[/C][/ROW]
[ROW][C]58.5014767670693[/C][/ROW]
[ROW][C]63.1911097127476[/C][/ROW]
[ROW][C]200.706714654093[/C][/ROW]
[ROW][C]-122.494164132978[/C][/ROW]
[ROW][C]37.9799660457121[/C][/ROW]
[ROW][C]52.5143621735129[/C][/ROW]
[ROW][C]-14.2680483483135[/C][/ROW]
[ROW][C]-190.054251148902[/C][/ROW]
[ROW][C]139.117102551386[/C][/ROW]
[ROW][C]259.932128221264[/C][/ROW]
[ROW][C]-55.3428638659843[/C][/ROW]
[ROW][C]-46.0276088287328[/C][/ROW]
[ROW][C]-64.4615469735131[/C][/ROW]
[ROW][C]27.7089365995471[/C][/ROW]
[ROW][C]43.1009232685615[/C][/ROW]
[ROW][C]-120.225514619517[/C][/ROW]
[ROW][C]155.781488829299[/C][/ROW]
[ROW][C]102.852236777449[/C][/ROW]
[ROW][C]-84.7474639276647[/C][/ROW]
[ROW][C]78.4853179095908[/C][/ROW]
[ROW][C]44.9584269874686[/C][/ROW]
[ROW][C]277.48316046041[/C][/ROW]
[ROW][C]-106.537165721719[/C][/ROW]
[ROW][C]77.297110959204[/C][/ROW]
[ROW][C]-26.0713404748712[/C][/ROW]
[ROW][C]57.0710331568202[/C][/ROW]
[ROW][C]7.44422627679023[/C][/ROW]
[ROW][C]-14.6588394536266[/C][/ROW]
[ROW][C]4.34062010694242[/C][/ROW]
[ROW][C]243.528859099332[/C][/ROW]
[ROW][C]28.7823238777878[/C][/ROW]
[ROW][C]-28.1996501632584[/C][/ROW]
[ROW][C]-9.32212779349447[/C][/ROW]
[ROW][C]98.9734749789104[/C][/ROW]
[ROW][C]33.7337884422764[/C][/ROW]
[ROW][C]52.7010240945715[/C][/ROW]
[ROW][C]8.33210469475307[/C][/ROW]
[ROW][C]54.2277308526809[/C][/ROW]
[ROW][C]112.586303497242[/C][/ROW]
[ROW][C]22.0335645588716[/C][/ROW]
[ROW][C]137.520036935879[/C][/ROW]
[ROW][C]342.076025928544[/C][/ROW]
[ROW][C]-64.9741430563927[/C][/ROW]
[ROW][C]-171.283838823932[/C][/ROW]
[ROW][C]-16.9003434449528[/C][/ROW]
[ROW][C]436.037672950385[/C][/ROW]
[ROW][C]-95.039301983179[/C][/ROW]
[ROW][C]93.0403796791334[/C][/ROW]
[ROW][C]-65.5357608481127[/C][/ROW]
[ROW][C]-33.8708640896102[/C][/ROW]
[ROW][C]79.5253893704066[/C][/ROW]
[ROW][C]137.03528378605[/C][/ROW]
[ROW][C]73.7983003560485[/C][/ROW]
[ROW][C]100.178616285573[/C][/ROW]
[ROW][C]-50.6039018607271[/C][/ROW]
[ROW][C]-42.4295939181438[/C][/ROW]
[ROW][C]-5.07524298108001[/C][/ROW]
[ROW][C]-273.570322840406[/C][/ROW]
[ROW][C]300.741604312963[/C][/ROW]
[ROW][C]168.121143055121[/C][/ROW]
[ROW][C]7.12681657274061[/C][/ROW]
[ROW][C]-26.4990367276805[/C][/ROW]
[ROW][C]116.39816346723[/C][/ROW]
[ROW][C]-36.6421341427977[/C][/ROW]
[ROW][C]136.322310872589[/C][/ROW]
[ROW][C]152.884238948611[/C][/ROW]
[ROW][C]-55.6786461126985[/C][/ROW]
[ROW][C]-80.1624395973467[/C][/ROW]
[ROW][C]-47.2567984571333[/C][/ROW]
[ROW][C]52.177523169551[/C][/ROW]
[ROW][C]-157.074366563135[/C][/ROW]
[ROW][C]119.727038255582[/C][/ROW]
[ROW][C]-233.47619695656[/C][/ROW]
[ROW][C]-89.1059048418301[/C][/ROW]
[ROW][C]32.4120019098518[/C][/ROW]
[ROW][C]-48.7709147722071[/C][/ROW]
[ROW][C]87.9056472303928[/C][/ROW]
[ROW][C]128.730836359057[/C][/ROW]
[ROW][C]-154.91931362596[/C][/ROW]
[ROW][C]-27.7459735575612[/C][/ROW]
[ROW][C]-14.6360429269807[/C][/ROW]
[ROW][C]99.1446860238175[/C][/ROW]
[ROW][C]90.4716128405007[/C][/ROW]
[ROW][C]111.532697913146[/C][/ROW]
[ROW][C]55.9206771403187[/C][/ROW]
[ROW][C]103.541248509285[/C][/ROW]
[ROW][C]-8.40037269245386[/C][/ROW]
[ROW][C]69.2973437727333[/C][/ROW]
[ROW][C]163.745155361563[/C][/ROW]
[ROW][C]196.165143484831[/C][/ROW]
[ROW][C]9.41142526879139[/C][/ROW]
[ROW][C]54.1555644784403[/C][/ROW]
[ROW][C]-194.98017437119[/C][/ROW]
[ROW][C]12.6837473522619[/C][/ROW]
[ROW][C]65.9190707504613[/C][/ROW]
[ROW][C]30.5049016492585[/C][/ROW]
[ROW][C]63.6241634586886[/C][/ROW]
[ROW][C]99.5526331494102[/C][/ROW]
[ROW][C]105.078957530118[/C][/ROW]
[ROW][C]218.737860261336[/C][/ROW]
[ROW][C]21.7098327088843[/C][/ROW]
[ROW][C]348.089917161417[/C][/ROW]
[ROW][C]-208.86541382741[/C][/ROW]
[ROW][C]-62.3709185057141[/C][/ROW]
[ROW][C]8.79868490980243[/C][/ROW]
[ROW][C]8.87188308108307[/C][/ROW]
[ROW][C]67.0322325088055[/C][/ROW]
[ROW][C]137.611470562077[/C][/ROW]
[ROW][C]27.1936594768658[/C][/ROW]
[ROW][C]137.837866381787[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=300353&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300353&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
2.64735854712712
60.9553363184521
38.5114609835202
112.797329263552
28.3964640266104
23.4635769886799
58.5014767670693
63.1911097127476
200.706714654093
-122.494164132978
37.9799660457121
52.5143621735129
-14.2680483483135
-190.054251148902
139.117102551386
259.932128221264
-55.3428638659843
-46.0276088287328
-64.4615469735131
27.7089365995471
43.1009232685615
-120.225514619517
155.781488829299
102.852236777449
-84.7474639276647
78.4853179095908
44.9584269874686
277.48316046041
-106.537165721719
77.297110959204
-26.0713404748712
57.0710331568202
7.44422627679023
-14.6588394536266
4.34062010694242
243.528859099332
28.7823238777878
-28.1996501632584
-9.32212779349447
98.9734749789104
33.7337884422764
52.7010240945715
8.33210469475307
54.2277308526809
112.586303497242
22.0335645588716
137.520036935879
342.076025928544
-64.9741430563927
-171.283838823932
-16.9003434449528
436.037672950385
-95.039301983179
93.0403796791334
-65.5357608481127
-33.8708640896102
79.5253893704066
137.03528378605
73.7983003560485
100.178616285573
-50.6039018607271
-42.4295939181438
-5.07524298108001
-273.570322840406
300.741604312963
168.121143055121
7.12681657274061
-26.4990367276805
116.39816346723
-36.6421341427977
136.322310872589
152.884238948611
-55.6786461126985
-80.1624395973467
-47.2567984571333
52.177523169551
-157.074366563135
119.727038255582
-233.47619695656
-89.1059048418301
32.4120019098518
-48.7709147722071
87.9056472303928
128.730836359057
-154.91931362596
-27.7459735575612
-14.6360429269807
99.1446860238175
90.4716128405007
111.532697913146
55.9206771403187
103.541248509285
-8.40037269245386
69.2973437727333
163.745155361563
196.165143484831
9.41142526879139
54.1555644784403
-194.98017437119
12.6837473522619
65.9190707504613
30.5049016492585
63.6241634586886
99.5526331494102
105.078957530118
218.737860261336
21.7098327088843
348.089917161417
-208.86541382741
-62.3709185057141
8.79868490980243
8.87188308108307
67.0322325088055
137.611470562077
27.1936594768658
137.837866381787



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