Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimabackwardselection.wasp
Title produced by softwareARIMA Backward Selection
Date of computationTue, 04 Dec 2007 10:14:19 -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/04/t1196787810j7ya96rqbj8ajyk.htm/, Retrieved Thu, 02 May 2024 04:00:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2421, Retrieved Thu, 02 May 2024 04:00:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact204
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Backward Selection] [] [2007-12-04 17:14:19] [a5d60d21ad00400c5f1209c78aa5829c] [Current]
Feedback Forum

Post a new message
Dataseries X:
112,1
104,2
102,4
100,3
102,6
101,5
103,4
99,4
97,9
98
90,2
87,1
91,8
94,8
91,8
89,3
91,7
86,2
82,8
82,3
79,8
79,4
85,3
87,5
88,3
88,6
94,9
94,7
92,6
91,8
96,4
96,4
107,1
111,9
107,8
109,2
115,3
119,2
107,8
106,8
104,2
94,8
97,5
98,3
100,6
94,9
93,6
98
104,3
103,9
105,3
102,6
103,3
107,9
107,8
109,8
110,6
110,8
119,3
128,1
127,6
137,9
151,4
143,6
143,4
141,9
135,2
133,1
129,6
134,1
136,8
143,5
162,5
163,1
157,2
158,8
155,4
148,5
154,2
153,3
149,4
147,9
156
163
159,1
159,5
157,3
156,4
156,6
162,4
166,8
162,6
168,1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time32 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 & 32 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=2421&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]32 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=2421&T=0

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







ARIMA Parameter Estimation and Backward Selection
Iterationar1ar2ar3ma1sar1sar2sma1
Estimates ( 1 )-0.4558-0.03590.10560.71440.76460.2084-0.9001
(p-val)(0.0777 )(0.7909 )(0.4219 )(0.0031 )(0.0129 )(0.1195 )(0.0818 )
Estimates ( 2 )-0.4600.11030.73180.75440.2191-0.9018
(p-val)(0.0354 )(NA )(0.3686 )(1e-04 )(0.0016 )(0.08 )(0.0187 )
Estimates ( 3 )-0.5256001.24260.7620.2233-0.9277
(p-val)(6e-04 )(NA )(NA )(0 )(0 )(0.0717 )(0 )
Estimates ( 4 )-0.4801000.7488-0.220200.1293
(p-val)(0.0096 )(NA )(NA )(0 )(0.6992 )(NA )(0.8211 )
Estimates ( 5 )-0.4768000.7458-0.0900
(p-val)(0.0113 )(NA )(NA )(0 )(0.4291 )(NA )(NA )
Estimates ( 6 )-0.5128000.7772000
(p-val)(0.0018 )(NA )(NA )(0 )(NA )(NA )(NA )

\begin{tabular}{lllllllll}
\hline
ARIMA Parameter Estimation and Backward Selection \tabularnewline
Iteration & ar1 & ar2 & ar3 & ma1 & sar1 & sar2 & sma1 \tabularnewline
Estimates ( 1 ) & -0.4558 & -0.0359 & 0.1056 & 0.7144 & 0.7646 & 0.2084 & -0.9001 \tabularnewline
(p-val) & (0.0777 ) & (0.7909 ) & (0.4219 ) & (0.0031 ) & (0.0129 ) & (0.1195 ) & (0.0818 ) \tabularnewline
Estimates ( 2 ) & -0.46 & 0 & 0.1103 & 0.7318 & 0.7544 & 0.2191 & -0.9018 \tabularnewline
(p-val) & (0.0354 ) & (NA ) & (0.3686 ) & (1e-04 ) & (0.0016 ) & (0.08 ) & (0.0187 ) \tabularnewline
Estimates ( 3 ) & -0.5256 & 0 & 0 & 1.2426 & 0.762 & 0.2233 & -0.9277 \tabularnewline
(p-val) & (6e-04 ) & (NA ) & (NA ) & (0 ) & (0 ) & (0.0717 ) & (0 ) \tabularnewline
Estimates ( 4 ) & -0.4801 & 0 & 0 & 0.7488 & -0.2202 & 0 & 0.1293 \tabularnewline
(p-val) & (0.0096 ) & (NA ) & (NA ) & (0 ) & (0.6992 ) & (NA ) & (0.8211 ) \tabularnewline
Estimates ( 5 ) & -0.4768 & 0 & 0 & 0.7458 & -0.09 & 0 & 0 \tabularnewline
(p-val) & (0.0113 ) & (NA ) & (NA ) & (0 ) & (0.4291 ) & (NA ) & (NA ) \tabularnewline
Estimates ( 6 ) & -0.5128 & 0 & 0 & 0.7772 & 0 & 0 & 0 \tabularnewline
(p-val) & (0.0018 ) & (NA ) & (NA ) & (0 ) & (NA ) & (NA ) & (NA ) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2421&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][C]sma1[/C][/ROW]
[ROW][C]Estimates ( 1 )[/C][C]-0.4558[/C][C]-0.0359[/C][C]0.1056[/C][C]0.7144[/C][C]0.7646[/C][C]0.2084[/C][C]-0.9001[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0777 )[/C][C](0.7909 )[/C][C](0.4219 )[/C][C](0.0031 )[/C][C](0.0129 )[/C][C](0.1195 )[/C][C](0.0818 )[/C][/ROW]
[ROW][C]Estimates ( 2 )[/C][C]-0.46[/C][C]0[/C][C]0.1103[/C][C]0.7318[/C][C]0.7544[/C][C]0.2191[/C][C]-0.9018[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0354 )[/C][C](NA )[/C][C](0.3686 )[/C][C](1e-04 )[/C][C](0.0016 )[/C][C](0.08 )[/C][C](0.0187 )[/C][/ROW]
[ROW][C]Estimates ( 3 )[/C][C]-0.5256[/C][C]0[/C][C]0[/C][C]1.2426[/C][C]0.762[/C][C]0.2233[/C][C]-0.9277[/C][/ROW]
[ROW][C](p-val)[/C][C](6e-04 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](0 )[/C][C](0.0717 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 4 )[/C][C]-0.4801[/C][C]0[/C][C]0[/C][C]0.7488[/C][C]-0.2202[/C][C]0[/C][C]0.1293[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0096 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](0.6992 )[/C][C](NA )[/C][C](0.8211 )[/C][/ROW]
[ROW][C]Estimates ( 5 )[/C][C]-0.4768[/C][C]0[/C][C]0[/C][C]0.7458[/C][C]-0.09[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0113 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](0.4291 )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[ROW][C]Estimates ( 6 )[/C][C]-0.5128[/C][C]0[/C][C]0[/C][C]0.7772[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C](p-val)[/C][C](0.0018 )[/C][C](NA )[/C][C](NA )[/C][C](0 )[/C][C](NA )[/C][C](NA )[/C][C](NA )[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2421&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2421&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
Iterationar1ar2ar3ma1sar1sar2sma1
Estimates ( 1 )-0.4558-0.03590.10560.71440.76460.2084-0.9001
(p-val)(0.0777 )(0.7909 )(0.4219 )(0.0031 )(0.0129 )(0.1195 )(0.0818 )
Estimates ( 2 )-0.4600.11030.73180.75440.2191-0.9018
(p-val)(0.0354 )(NA )(0.3686 )(1e-04 )(0.0016 )(0.08 )(0.0187 )
Estimates ( 3 )-0.5256001.24260.7620.2233-0.9277
(p-val)(6e-04 )(NA )(NA )(0 )(0 )(0.0717 )(0 )
Estimates ( 4 )-0.4801000.7488-0.220200.1293
(p-val)(0.0096 )(NA )(NA )(0 )(0.6992 )(NA )(0.8211 )
Estimates ( 5 )-0.4768000.7458-0.0900
(p-val)(0.0113 )(NA )(NA )(0 )(0.4291 )(NA )(NA )
Estimates ( 6 )-0.5128000.7772000
(p-val)(0.0018 )(NA )(NA )(0 )(NA )(NA )(NA )







Estimated ARIMA Residuals
Value
0.112099938198320
-7.5234317022524
-0.174508990247777
-2.7838976248972
3.32086811233621
-2.45317788349593
3.18406012068406
-5.44042146983815
0.649481017642372
-1.07642801808016
-6.95667668647274
-1.51981598559022
4.16227230153779
1.31150417256041
-3.04705830224746
-1.92422722261651
2.75950343482618
-6.41361862382443
-1.11530752560768
-1.56757720439110
-1.87571926492828
-0.248344227067880
5.19714930126309
0.523454484546629
1.7483538545492
-0.151122707042641
6.41455842806672
-2.33399246036476
-0.345905183770059
-1.93508355264285
5.12010225384436
-1.81633381269994
11.8083712468710
0.951312732337543
-2.00735217132620
1.39325355869821
5.89468248583685
2.47323836463487
-10.8055792141131
1.87601361620464
-4.67348222231403
-7.31601418786265
4.05419945496961
-0.73915923860179
4.19522631703279
-6.8416643186816
0.922135364442534
3.04248996617448
6.7374333015147
-1.80882009330620
1.70018100638115
-3.87944179177855
2.02934054306604
2.46312058350850
0.0958696906479143
2.06857942650907
0.451957173332116
-0.169740018337748
8.36055226069874
6.95713440198822
-0.737722119028973
10.8460464500845
10.4303191959713
-9.3254800323235
2.98350849441621
-3.37677921920559
-4.70835338252925
-1.60721490048834
-3.14479871850406
5.22904587501341
1.71870765649422
7.8616002868662
16.6634543338289
-1.86414944852601
-2.56744340647083
0.579191901975491
-3.42163983030900
-6.11260379447978
6.30214100944247
-3.35893281479719
-2.22878328457179
-1.44249975349172
8.89655891765128
4.94508794854377
-2.25423698595273
1.09067021401188
-3.32773833069336
0.423899895235991
-0.782494091513541
5.71247870563437
3.12159570925235
-4.26681435448836
6.29041863604803

\begin{tabular}{lllllllll}
\hline
Estimated ARIMA Residuals \tabularnewline
Value \tabularnewline
0.112099938198320 \tabularnewline
-7.5234317022524 \tabularnewline
-0.174508990247777 \tabularnewline
-2.7838976248972 \tabularnewline
3.32086811233621 \tabularnewline
-2.45317788349593 \tabularnewline
3.18406012068406 \tabularnewline
-5.44042146983815 \tabularnewline
0.649481017642372 \tabularnewline
-1.07642801808016 \tabularnewline
-6.95667668647274 \tabularnewline
-1.51981598559022 \tabularnewline
4.16227230153779 \tabularnewline
1.31150417256041 \tabularnewline
-3.04705830224746 \tabularnewline
-1.92422722261651 \tabularnewline
2.75950343482618 \tabularnewline
-6.41361862382443 \tabularnewline
-1.11530752560768 \tabularnewline
-1.56757720439110 \tabularnewline
-1.87571926492828 \tabularnewline
-0.248344227067880 \tabularnewline
5.19714930126309 \tabularnewline
0.523454484546629 \tabularnewline
1.7483538545492 \tabularnewline
-0.151122707042641 \tabularnewline
6.41455842806672 \tabularnewline
-2.33399246036476 \tabularnewline
-0.345905183770059 \tabularnewline
-1.93508355264285 \tabularnewline
5.12010225384436 \tabularnewline
-1.81633381269994 \tabularnewline
11.8083712468710 \tabularnewline
0.951312732337543 \tabularnewline
-2.00735217132620 \tabularnewline
1.39325355869821 \tabularnewline
5.89468248583685 \tabularnewline
2.47323836463487 \tabularnewline
-10.8055792141131 \tabularnewline
1.87601361620464 \tabularnewline
-4.67348222231403 \tabularnewline
-7.31601418786265 \tabularnewline
4.05419945496961 \tabularnewline
-0.73915923860179 \tabularnewline
4.19522631703279 \tabularnewline
-6.8416643186816 \tabularnewline
0.922135364442534 \tabularnewline
3.04248996617448 \tabularnewline
6.7374333015147 \tabularnewline
-1.80882009330620 \tabularnewline
1.70018100638115 \tabularnewline
-3.87944179177855 \tabularnewline
2.02934054306604 \tabularnewline
2.46312058350850 \tabularnewline
0.0958696906479143 \tabularnewline
2.06857942650907 \tabularnewline
0.451957173332116 \tabularnewline
-0.169740018337748 \tabularnewline
8.36055226069874 \tabularnewline
6.95713440198822 \tabularnewline
-0.737722119028973 \tabularnewline
10.8460464500845 \tabularnewline
10.4303191959713 \tabularnewline
-9.3254800323235 \tabularnewline
2.98350849441621 \tabularnewline
-3.37677921920559 \tabularnewline
-4.70835338252925 \tabularnewline
-1.60721490048834 \tabularnewline
-3.14479871850406 \tabularnewline
5.22904587501341 \tabularnewline
1.71870765649422 \tabularnewline
7.8616002868662 \tabularnewline
16.6634543338289 \tabularnewline
-1.86414944852601 \tabularnewline
-2.56744340647083 \tabularnewline
0.579191901975491 \tabularnewline
-3.42163983030900 \tabularnewline
-6.11260379447978 \tabularnewline
6.30214100944247 \tabularnewline
-3.35893281479719 \tabularnewline
-2.22878328457179 \tabularnewline
-1.44249975349172 \tabularnewline
8.89655891765128 \tabularnewline
4.94508794854377 \tabularnewline
-2.25423698595273 \tabularnewline
1.09067021401188 \tabularnewline
-3.32773833069336 \tabularnewline
0.423899895235991 \tabularnewline
-0.782494091513541 \tabularnewline
5.71247870563437 \tabularnewline
3.12159570925235 \tabularnewline
-4.26681435448836 \tabularnewline
6.29041863604803 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2421&T=2

[TABLE]
[ROW][C]Estimated ARIMA Residuals[/C][/ROW]
[ROW][C]Value[/C][/ROW]
[ROW][C]0.112099938198320[/C][/ROW]
[ROW][C]-7.5234317022524[/C][/ROW]
[ROW][C]-0.174508990247777[/C][/ROW]
[ROW][C]-2.7838976248972[/C][/ROW]
[ROW][C]3.32086811233621[/C][/ROW]
[ROW][C]-2.45317788349593[/C][/ROW]
[ROW][C]3.18406012068406[/C][/ROW]
[ROW][C]-5.44042146983815[/C][/ROW]
[ROW][C]0.649481017642372[/C][/ROW]
[ROW][C]-1.07642801808016[/C][/ROW]
[ROW][C]-6.95667668647274[/C][/ROW]
[ROW][C]-1.51981598559022[/C][/ROW]
[ROW][C]4.16227230153779[/C][/ROW]
[ROW][C]1.31150417256041[/C][/ROW]
[ROW][C]-3.04705830224746[/C][/ROW]
[ROW][C]-1.92422722261651[/C][/ROW]
[ROW][C]2.75950343482618[/C][/ROW]
[ROW][C]-6.41361862382443[/C][/ROW]
[ROW][C]-1.11530752560768[/C][/ROW]
[ROW][C]-1.56757720439110[/C][/ROW]
[ROW][C]-1.87571926492828[/C][/ROW]
[ROW][C]-0.248344227067880[/C][/ROW]
[ROW][C]5.19714930126309[/C][/ROW]
[ROW][C]0.523454484546629[/C][/ROW]
[ROW][C]1.7483538545492[/C][/ROW]
[ROW][C]-0.151122707042641[/C][/ROW]
[ROW][C]6.41455842806672[/C][/ROW]
[ROW][C]-2.33399246036476[/C][/ROW]
[ROW][C]-0.345905183770059[/C][/ROW]
[ROW][C]-1.93508355264285[/C][/ROW]
[ROW][C]5.12010225384436[/C][/ROW]
[ROW][C]-1.81633381269994[/C][/ROW]
[ROW][C]11.8083712468710[/C][/ROW]
[ROW][C]0.951312732337543[/C][/ROW]
[ROW][C]-2.00735217132620[/C][/ROW]
[ROW][C]1.39325355869821[/C][/ROW]
[ROW][C]5.89468248583685[/C][/ROW]
[ROW][C]2.47323836463487[/C][/ROW]
[ROW][C]-10.8055792141131[/C][/ROW]
[ROW][C]1.87601361620464[/C][/ROW]
[ROW][C]-4.67348222231403[/C][/ROW]
[ROW][C]-7.31601418786265[/C][/ROW]
[ROW][C]4.05419945496961[/C][/ROW]
[ROW][C]-0.73915923860179[/C][/ROW]
[ROW][C]4.19522631703279[/C][/ROW]
[ROW][C]-6.8416643186816[/C][/ROW]
[ROW][C]0.922135364442534[/C][/ROW]
[ROW][C]3.04248996617448[/C][/ROW]
[ROW][C]6.7374333015147[/C][/ROW]
[ROW][C]-1.80882009330620[/C][/ROW]
[ROW][C]1.70018100638115[/C][/ROW]
[ROW][C]-3.87944179177855[/C][/ROW]
[ROW][C]2.02934054306604[/C][/ROW]
[ROW][C]2.46312058350850[/C][/ROW]
[ROW][C]0.0958696906479143[/C][/ROW]
[ROW][C]2.06857942650907[/C][/ROW]
[ROW][C]0.451957173332116[/C][/ROW]
[ROW][C]-0.169740018337748[/C][/ROW]
[ROW][C]8.36055226069874[/C][/ROW]
[ROW][C]6.95713440198822[/C][/ROW]
[ROW][C]-0.737722119028973[/C][/ROW]
[ROW][C]10.8460464500845[/C][/ROW]
[ROW][C]10.4303191959713[/C][/ROW]
[ROW][C]-9.3254800323235[/C][/ROW]
[ROW][C]2.98350849441621[/C][/ROW]
[ROW][C]-3.37677921920559[/C][/ROW]
[ROW][C]-4.70835338252925[/C][/ROW]
[ROW][C]-1.60721490048834[/C][/ROW]
[ROW][C]-3.14479871850406[/C][/ROW]
[ROW][C]5.22904587501341[/C][/ROW]
[ROW][C]1.71870765649422[/C][/ROW]
[ROW][C]7.8616002868662[/C][/ROW]
[ROW][C]16.6634543338289[/C][/ROW]
[ROW][C]-1.86414944852601[/C][/ROW]
[ROW][C]-2.56744340647083[/C][/ROW]
[ROW][C]0.579191901975491[/C][/ROW]
[ROW][C]-3.42163983030900[/C][/ROW]
[ROW][C]-6.11260379447978[/C][/ROW]
[ROW][C]6.30214100944247[/C][/ROW]
[ROW][C]-3.35893281479719[/C][/ROW]
[ROW][C]-2.22878328457179[/C][/ROW]
[ROW][C]-1.44249975349172[/C][/ROW]
[ROW][C]8.89655891765128[/C][/ROW]
[ROW][C]4.94508794854377[/C][/ROW]
[ROW][C]-2.25423698595273[/C][/ROW]
[ROW][C]1.09067021401188[/C][/ROW]
[ROW][C]-3.32773833069336[/C][/ROW]
[ROW][C]0.423899895235991[/C][/ROW]
[ROW][C]-0.782494091513541[/C][/ROW]
[ROW][C]5.71247870563437[/C][/ROW]
[ROW][C]3.12159570925235[/C][/ROW]
[ROW][C]-4.26681435448836[/C][/ROW]
[ROW][C]6.29041863604803[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2421&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2421&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
0.112099938198320
-7.5234317022524
-0.174508990247777
-2.7838976248972
3.32086811233621
-2.45317788349593
3.18406012068406
-5.44042146983815
0.649481017642372
-1.07642801808016
-6.95667668647274
-1.51981598559022
4.16227230153779
1.31150417256041
-3.04705830224746
-1.92422722261651
2.75950343482618
-6.41361862382443
-1.11530752560768
-1.56757720439110
-1.87571926492828
-0.248344227067880
5.19714930126309
0.523454484546629
1.7483538545492
-0.151122707042641
6.41455842806672
-2.33399246036476
-0.345905183770059
-1.93508355264285
5.12010225384436
-1.81633381269994
11.8083712468710
0.951312732337543
-2.00735217132620
1.39325355869821
5.89468248583685
2.47323836463487
-10.8055792141131
1.87601361620464
-4.67348222231403
-7.31601418786265
4.05419945496961
-0.73915923860179
4.19522631703279
-6.8416643186816
0.922135364442534
3.04248996617448
6.7374333015147
-1.80882009330620
1.70018100638115
-3.87944179177855
2.02934054306604
2.46312058350850
0.0958696906479143
2.06857942650907
0.451957173332116
-0.169740018337748
8.36055226069874
6.95713440198822
-0.737722119028973
10.8460464500845
10.4303191959713
-9.3254800323235
2.98350849441621
-3.37677921920559
-4.70835338252925
-1.60721490048834
-3.14479871850406
5.22904587501341
1.71870765649422
7.8616002868662
16.6634543338289
-1.86414944852601
-2.56744340647083
0.579191901975491
-3.42163983030900
-6.11260379447978
6.30214100944247
-3.35893281479719
-2.22878328457179
-1.44249975349172
8.89655891765128
4.94508794854377
-2.25423698595273
1.09067021401188
-3.32773833069336
0.423899895235991
-0.782494091513541
5.71247870563437
3.12159570925235
-4.26681435448836
6.29041863604803



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