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 computationSat, 17 Dec 2016 16:43:15 +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/17/t148198942460gfssj9v2am8al.htm/, Retrieved Thu, 02 May 2024 06:26:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=300859, Retrieved Thu, 02 May 2024 06:26:47 +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] [""N2582"" arima b...] [2016-12-17 15:43:15] [afe7f6443461a2cd6ee0b843643e84a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
4028.8
4076.6
4125.8
4177.2
4183
4222.6
4255.8
4260.8
4279.2
4328.8
4356.6
4393
4419.4
4426.2
4467.2
4517.4
4517
4560.4
4589
4596
4621.2
4654.6
4708.6
4774.4
4824.8
4839
4869.8
4895.8
4895.8
4968.8
5010
5032.4
5054
5083.8
5117.4
5170.8
5182.2
5163.6
5212.6
5288
5303.4
5367.6
5433.8
5465.8
5493.8
5549.4
5590.2
5661.2
5699
5654.2
5671.8
5730.8
5693
5720.4
5747.8
5764.2
5783
5822.4
5836.2
5864.6
5913.4
5906.8
5954
6031.2
6011.2
6059.8
6091.6
6088
6082.2
6108
6151.4
6187
6190
6152.2
6183.8
6222.8
6165.8
6223.4
6292.8
6320.6
6344
6391.2
6443.4
6504
6520.2
6518.8
6563.8
6614
6555.6
6601.8
6632.4
6657.8
6674.4
6687
6697.6
6732
6736.4
6745.8
6805.2
6850.4
6807.2
6844.6
6850.8
6848.2
6837.8
6857.6
6900.8
6940.8
6937.4
6950.4
6978.8
6997.8
6934.8
6946.8
6956.2
6968.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300859&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.8513-0.16850.3132-0.9013
(p-val)(0 )(0.1533 )(0.0014 )(0 )
Estimates ( 2 )0.767300.2287-0.9019
(p-val)(0 )(NA )(0.0036 )(0 )
Estimates ( 3 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
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.8513 & -0.1685 & 0.3132 & -0.9013 \tabularnewline
(p-val) & (0 ) & (0.1533 ) & (0.0014 ) & (0 ) \tabularnewline
Estimates ( 2 ) & 0.7673 & 0 & 0.2287 & -0.9019 \tabularnewline
(p-val) & (0 ) & (NA ) & (0.0036 ) & (0 ) \tabularnewline
Estimates ( 3 ) & NA & NA & NA & NA \tabularnewline
(p-val) & (NA ) & (NA ) & (NA ) & (NA ) \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=300859&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.8513[/C][C]-0.1685[/C][C]0.3132[/C][C]-0.9013[/C][/ROW]
[ROW][C](p-val)[/C][C](0 )[/C][C](0.1533 )[/C][C](0.0014 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 2 )[/C][C]0.7673[/C][C]0[/C][C]0.2287[/C][C]-0.9019[/C][/ROW]
[ROW][C](p-val)[/C][C](0 )[/C][C](NA )[/C][C](0.0036 )[/C][C](0 )[/C][/ROW]
[ROW][C]Estimates ( 3 )[/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 ( 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=300859&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300859&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.8513-0.16850.3132-0.9013
(p-val)(0 )(0.1533 )(0.0014 )(0 )
Estimates ( 2 )0.767300.2287-0.9019
(p-val)(0 )(NA )(0.0036 )(0 )
Estimates ( 3 )NANANANA
(p-val)(NA )(NA )(NA )(NA )
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.02879623399524
34.9569179282225
24.1704332950381
22.1513230200204
-25.1889398982849
7.25345349756174
-9.07087829637547
-25.0238357661962
-13.8213168671466
12.0160367934877
-2.28133738808661
13.109226716741
-3.75751566263323
-21.3922695360583
9.08869029035123
16.2037066393164
-23.7257960728888
18.0032435341303
-7.95032786571241
-17.0097218798008
-4.81759182222663
-0.164967190065432
27.433590598897
42.2090400361662
30.9932379955889
-6.62131768229758
0.62667207566381
-13.0444462684571
-33.1316893672055
37.8698471873744
5.03174827658997
4.15752827389364
-9.64716348964953
-6.4127809513131
-0.925411482448657
22.2146554344507
-17.7116510819548
-45.7937172706177
8.75501284728197
34.8715944177993
-3.27755824569525
45.4878535462966
31.5195644400281
10.0437475678283
0.852777334476671
17.1861881792238
3.65109843978657
40.1532886504268
3.00526986784903
-75.0894918314166
-27.8130033808405
-0.43835050297923
-71.4228198190149
-0.368897647996571
-21.1070570100155
-9.49282333935225
-7.68420086910692
10.6497407209339
-12.1123422567089
6.48357326536638
20.4499217276865
-29.2498474938614
25.7801272975928
43.8566830594915
-36.172593159258
31.2431754118228
-8.96473644395312
-24.2989825818049
-34.5028552522672
-10.9278222843334
11.7379727370187
15.3965747460949
-14.1994593843847
-60.749584428073
-1.62137128214
3.33031800084778
-70.0347261779064
39.6721943352844
34.3037023957446
27.1968223481483
17.8950467269729
26.3527399083447
31.0047436685489
44.7288011714597
-1.06537100453882
-22.2938280470199
9.84464526141976
15.4545424434576
-79.1862733074775
18.9049198885444
-17.253459869703
9.87616424637379
-5.43835660058442
-11.7394621425149
-15.8671078709521
7.99790886847034
-19.8370460165694
-9.75032166931397
32.5754354467875
24.1990356411633
-52.8055569234609
15.5894060630497
-33.0235775003308
-17.8098230091795
-34.9096645557101
-5.19102441420429
20.7281767972462
28.4999363666248
-10.6892076914055
-0.533634141591328
3.74969701180799
1.45797445971588
-77.1483607796426
-9.59845099288694
-26.03128604641
2.29160525588608

\begin{tabular}{lllllllll}
\hline
Estimated ARIMA Residuals \tabularnewline
Value \tabularnewline
4.02879623399524 \tabularnewline
34.9569179282225 \tabularnewline
24.1704332950381 \tabularnewline
22.1513230200204 \tabularnewline
-25.1889398982849 \tabularnewline
7.25345349756174 \tabularnewline
-9.07087829637547 \tabularnewline
-25.0238357661962 \tabularnewline
-13.8213168671466 \tabularnewline
12.0160367934877 \tabularnewline
-2.28133738808661 \tabularnewline
13.109226716741 \tabularnewline
-3.75751566263323 \tabularnewline
-21.3922695360583 \tabularnewline
9.08869029035123 \tabularnewline
16.2037066393164 \tabularnewline
-23.7257960728888 \tabularnewline
18.0032435341303 \tabularnewline
-7.95032786571241 \tabularnewline
-17.0097218798008 \tabularnewline
-4.81759182222663 \tabularnewline
-0.164967190065432 \tabularnewline
27.433590598897 \tabularnewline
42.2090400361662 \tabularnewline
30.9932379955889 \tabularnewline
-6.62131768229758 \tabularnewline
0.62667207566381 \tabularnewline
-13.0444462684571 \tabularnewline
-33.1316893672055 \tabularnewline
37.8698471873744 \tabularnewline
5.03174827658997 \tabularnewline
4.15752827389364 \tabularnewline
-9.64716348964953 \tabularnewline
-6.4127809513131 \tabularnewline
-0.925411482448657 \tabularnewline
22.2146554344507 \tabularnewline
-17.7116510819548 \tabularnewline
-45.7937172706177 \tabularnewline
8.75501284728197 \tabularnewline
34.8715944177993 \tabularnewline
-3.27755824569525 \tabularnewline
45.4878535462966 \tabularnewline
31.5195644400281 \tabularnewline
10.0437475678283 \tabularnewline
0.852777334476671 \tabularnewline
17.1861881792238 \tabularnewline
3.65109843978657 \tabularnewline
40.1532886504268 \tabularnewline
3.00526986784903 \tabularnewline
-75.0894918314166 \tabularnewline
-27.8130033808405 \tabularnewline
-0.43835050297923 \tabularnewline
-71.4228198190149 \tabularnewline
-0.368897647996571 \tabularnewline
-21.1070570100155 \tabularnewline
-9.49282333935225 \tabularnewline
-7.68420086910692 \tabularnewline
10.6497407209339 \tabularnewline
-12.1123422567089 \tabularnewline
6.48357326536638 \tabularnewline
20.4499217276865 \tabularnewline
-29.2498474938614 \tabularnewline
25.7801272975928 \tabularnewline
43.8566830594915 \tabularnewline
-36.172593159258 \tabularnewline
31.2431754118228 \tabularnewline
-8.96473644395312 \tabularnewline
-24.2989825818049 \tabularnewline
-34.5028552522672 \tabularnewline
-10.9278222843334 \tabularnewline
11.7379727370187 \tabularnewline
15.3965747460949 \tabularnewline
-14.1994593843847 \tabularnewline
-60.749584428073 \tabularnewline
-1.62137128214 \tabularnewline
3.33031800084778 \tabularnewline
-70.0347261779064 \tabularnewline
39.6721943352844 \tabularnewline
34.3037023957446 \tabularnewline
27.1968223481483 \tabularnewline
17.8950467269729 \tabularnewline
26.3527399083447 \tabularnewline
31.0047436685489 \tabularnewline
44.7288011714597 \tabularnewline
-1.06537100453882 \tabularnewline
-22.2938280470199 \tabularnewline
9.84464526141976 \tabularnewline
15.4545424434576 \tabularnewline
-79.1862733074775 \tabularnewline
18.9049198885444 \tabularnewline
-17.253459869703 \tabularnewline
9.87616424637379 \tabularnewline
-5.43835660058442 \tabularnewline
-11.7394621425149 \tabularnewline
-15.8671078709521 \tabularnewline
7.99790886847034 \tabularnewline
-19.8370460165694 \tabularnewline
-9.75032166931397 \tabularnewline
32.5754354467875 \tabularnewline
24.1990356411633 \tabularnewline
-52.8055569234609 \tabularnewline
15.5894060630497 \tabularnewline
-33.0235775003308 \tabularnewline
-17.8098230091795 \tabularnewline
-34.9096645557101 \tabularnewline
-5.19102441420429 \tabularnewline
20.7281767972462 \tabularnewline
28.4999363666248 \tabularnewline
-10.6892076914055 \tabularnewline
-0.533634141591328 \tabularnewline
3.74969701180799 \tabularnewline
1.45797445971588 \tabularnewline
-77.1483607796426 \tabularnewline
-9.59845099288694 \tabularnewline
-26.03128604641 \tabularnewline
2.29160525588608 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300859&T=2

[TABLE]
[ROW][C]Estimated ARIMA Residuals[/C][/ROW]
[ROW][C]Value[/C][/ROW]
[ROW][C]4.02879623399524[/C][/ROW]
[ROW][C]34.9569179282225[/C][/ROW]
[ROW][C]24.1704332950381[/C][/ROW]
[ROW][C]22.1513230200204[/C][/ROW]
[ROW][C]-25.1889398982849[/C][/ROW]
[ROW][C]7.25345349756174[/C][/ROW]
[ROW][C]-9.07087829637547[/C][/ROW]
[ROW][C]-25.0238357661962[/C][/ROW]
[ROW][C]-13.8213168671466[/C][/ROW]
[ROW][C]12.0160367934877[/C][/ROW]
[ROW][C]-2.28133738808661[/C][/ROW]
[ROW][C]13.109226716741[/C][/ROW]
[ROW][C]-3.75751566263323[/C][/ROW]
[ROW][C]-21.3922695360583[/C][/ROW]
[ROW][C]9.08869029035123[/C][/ROW]
[ROW][C]16.2037066393164[/C][/ROW]
[ROW][C]-23.7257960728888[/C][/ROW]
[ROW][C]18.0032435341303[/C][/ROW]
[ROW][C]-7.95032786571241[/C][/ROW]
[ROW][C]-17.0097218798008[/C][/ROW]
[ROW][C]-4.81759182222663[/C][/ROW]
[ROW][C]-0.164967190065432[/C][/ROW]
[ROW][C]27.433590598897[/C][/ROW]
[ROW][C]42.2090400361662[/C][/ROW]
[ROW][C]30.9932379955889[/C][/ROW]
[ROW][C]-6.62131768229758[/C][/ROW]
[ROW][C]0.62667207566381[/C][/ROW]
[ROW][C]-13.0444462684571[/C][/ROW]
[ROW][C]-33.1316893672055[/C][/ROW]
[ROW][C]37.8698471873744[/C][/ROW]
[ROW][C]5.03174827658997[/C][/ROW]
[ROW][C]4.15752827389364[/C][/ROW]
[ROW][C]-9.64716348964953[/C][/ROW]
[ROW][C]-6.4127809513131[/C][/ROW]
[ROW][C]-0.925411482448657[/C][/ROW]
[ROW][C]22.2146554344507[/C][/ROW]
[ROW][C]-17.7116510819548[/C][/ROW]
[ROW][C]-45.7937172706177[/C][/ROW]
[ROW][C]8.75501284728197[/C][/ROW]
[ROW][C]34.8715944177993[/C][/ROW]
[ROW][C]-3.27755824569525[/C][/ROW]
[ROW][C]45.4878535462966[/C][/ROW]
[ROW][C]31.5195644400281[/C][/ROW]
[ROW][C]10.0437475678283[/C][/ROW]
[ROW][C]0.852777334476671[/C][/ROW]
[ROW][C]17.1861881792238[/C][/ROW]
[ROW][C]3.65109843978657[/C][/ROW]
[ROW][C]40.1532886504268[/C][/ROW]
[ROW][C]3.00526986784903[/C][/ROW]
[ROW][C]-75.0894918314166[/C][/ROW]
[ROW][C]-27.8130033808405[/C][/ROW]
[ROW][C]-0.43835050297923[/C][/ROW]
[ROW][C]-71.4228198190149[/C][/ROW]
[ROW][C]-0.368897647996571[/C][/ROW]
[ROW][C]-21.1070570100155[/C][/ROW]
[ROW][C]-9.49282333935225[/C][/ROW]
[ROW][C]-7.68420086910692[/C][/ROW]
[ROW][C]10.6497407209339[/C][/ROW]
[ROW][C]-12.1123422567089[/C][/ROW]
[ROW][C]6.48357326536638[/C][/ROW]
[ROW][C]20.4499217276865[/C][/ROW]
[ROW][C]-29.2498474938614[/C][/ROW]
[ROW][C]25.7801272975928[/C][/ROW]
[ROW][C]43.8566830594915[/C][/ROW]
[ROW][C]-36.172593159258[/C][/ROW]
[ROW][C]31.2431754118228[/C][/ROW]
[ROW][C]-8.96473644395312[/C][/ROW]
[ROW][C]-24.2989825818049[/C][/ROW]
[ROW][C]-34.5028552522672[/C][/ROW]
[ROW][C]-10.9278222843334[/C][/ROW]
[ROW][C]11.7379727370187[/C][/ROW]
[ROW][C]15.3965747460949[/C][/ROW]
[ROW][C]-14.1994593843847[/C][/ROW]
[ROW][C]-60.749584428073[/C][/ROW]
[ROW][C]-1.62137128214[/C][/ROW]
[ROW][C]3.33031800084778[/C][/ROW]
[ROW][C]-70.0347261779064[/C][/ROW]
[ROW][C]39.6721943352844[/C][/ROW]
[ROW][C]34.3037023957446[/C][/ROW]
[ROW][C]27.1968223481483[/C][/ROW]
[ROW][C]17.8950467269729[/C][/ROW]
[ROW][C]26.3527399083447[/C][/ROW]
[ROW][C]31.0047436685489[/C][/ROW]
[ROW][C]44.7288011714597[/C][/ROW]
[ROW][C]-1.06537100453882[/C][/ROW]
[ROW][C]-22.2938280470199[/C][/ROW]
[ROW][C]9.84464526141976[/C][/ROW]
[ROW][C]15.4545424434576[/C][/ROW]
[ROW][C]-79.1862733074775[/C][/ROW]
[ROW][C]18.9049198885444[/C][/ROW]
[ROW][C]-17.253459869703[/C][/ROW]
[ROW][C]9.87616424637379[/C][/ROW]
[ROW][C]-5.43835660058442[/C][/ROW]
[ROW][C]-11.7394621425149[/C][/ROW]
[ROW][C]-15.8671078709521[/C][/ROW]
[ROW][C]7.99790886847034[/C][/ROW]
[ROW][C]-19.8370460165694[/C][/ROW]
[ROW][C]-9.75032166931397[/C][/ROW]
[ROW][C]32.5754354467875[/C][/ROW]
[ROW][C]24.1990356411633[/C][/ROW]
[ROW][C]-52.8055569234609[/C][/ROW]
[ROW][C]15.5894060630497[/C][/ROW]
[ROW][C]-33.0235775003308[/C][/ROW]
[ROW][C]-17.8098230091795[/C][/ROW]
[ROW][C]-34.9096645557101[/C][/ROW]
[ROW][C]-5.19102441420429[/C][/ROW]
[ROW][C]20.7281767972462[/C][/ROW]
[ROW][C]28.4999363666248[/C][/ROW]
[ROW][C]-10.6892076914055[/C][/ROW]
[ROW][C]-0.533634141591328[/C][/ROW]
[ROW][C]3.74969701180799[/C][/ROW]
[ROW][C]1.45797445971588[/C][/ROW]
[ROW][C]-77.1483607796426[/C][/ROW]
[ROW][C]-9.59845099288694[/C][/ROW]
[ROW][C]-26.03128604641[/C][/ROW]
[ROW][C]2.29160525588608[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=300859&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300859&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.02879623399524
34.9569179282225
24.1704332950381
22.1513230200204
-25.1889398982849
7.25345349756174
-9.07087829637547
-25.0238357661962
-13.8213168671466
12.0160367934877
-2.28133738808661
13.109226716741
-3.75751566263323
-21.3922695360583
9.08869029035123
16.2037066393164
-23.7257960728888
18.0032435341303
-7.95032786571241
-17.0097218798008
-4.81759182222663
-0.164967190065432
27.433590598897
42.2090400361662
30.9932379955889
-6.62131768229758
0.62667207566381
-13.0444462684571
-33.1316893672055
37.8698471873744
5.03174827658997
4.15752827389364
-9.64716348964953
-6.4127809513131
-0.925411482448657
22.2146554344507
-17.7116510819548
-45.7937172706177
8.75501284728197
34.8715944177993
-3.27755824569525
45.4878535462966
31.5195644400281
10.0437475678283
0.852777334476671
17.1861881792238
3.65109843978657
40.1532886504268
3.00526986784903
-75.0894918314166
-27.8130033808405
-0.43835050297923
-71.4228198190149
-0.368897647996571
-21.1070570100155
-9.49282333935225
-7.68420086910692
10.6497407209339
-12.1123422567089
6.48357326536638
20.4499217276865
-29.2498474938614
25.7801272975928
43.8566830594915
-36.172593159258
31.2431754118228
-8.96473644395312
-24.2989825818049
-34.5028552522672
-10.9278222843334
11.7379727370187
15.3965747460949
-14.1994593843847
-60.749584428073
-1.62137128214
3.33031800084778
-70.0347261779064
39.6721943352844
34.3037023957446
27.1968223481483
17.8950467269729
26.3527399083447
31.0047436685489
44.7288011714597
-1.06537100453882
-22.2938280470199
9.84464526141976
15.4545424434576
-79.1862733074775
18.9049198885444
-17.253459869703
9.87616424637379
-5.43835660058442
-11.7394621425149
-15.8671078709521
7.99790886847034
-19.8370460165694
-9.75032166931397
32.5754354467875
24.1990356411633
-52.8055569234609
15.5894060630497
-33.0235775003308
-17.8098230091795
-34.9096645557101
-5.19102441420429
20.7281767972462
28.4999363666248
-10.6892076914055
-0.533634141591328
3.74969701180799
1.45797445971588
-77.1483607796426
-9.59845099288694
-26.03128604641
2.29160525588608



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')