Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 25 May 2008 08:55:09 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/May/25/t1211727432roi74m59v9h9tky.htm/, Retrieved Wed, 15 May 2024 01:04:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=13160, Retrieved Wed, 15 May 2024 01:04:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact160
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2008-05-25 14:55:09] [15ccabfe3b960eee2f000db554701399] [Current]
Feedback Forum

Post a new message
Dataseries X:
138463
138529
138421
138674
138848
139174
139565
139585
139500
139756
140245
140138
140224
140354
140563
141244
141597
141708
142055
142457
142429
142613
142564
142778
143086
143362
143619
143791
144088
144369
144295
144671
144846
145395
145583
145949
145915
145888
146145
145713
145913
146087
146045
145753
146260
146016
146647
146211
146248




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=13160&T=0

[TABLE]
[ROW][C]Summary of computational 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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=13160&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=13160&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1138463NANA-192.779513888897NA
2138529NANA-194.279513888897NA
3138421NANA-178.612847222210NA
4138674NANA19.032986111118NA
5138848NANA115.345486111133NA
6139174NANA79.074652777775NA
7139565139290.824652778139314.875-24.0503472222105274.175347222219
8139585139595.387152778139464.291666667131.095486111103-10.3871527777519
9139500139602.595486111139629.583333333-26.9878472222250-102.595486111095
10139756139956.032986111139825.916666667130.116319444432-200.032986111095
11140245140064.137152778140047.54166666716.5954861111034180.862847222248
12140138140393.116319444140267.666666667125.449652777775-255.116319444409
13140224140284.220486111140477-192.779513888897-60.2204861110949
14140354140506.137152778140700.416666667-194.279513888897-152.137152777752
15140563140763.512152778140942.125-178.612847222210-200.512152777781
16141244141202.241319444141183.20833333319.03298611111841.758680555562
17141597141514.220486111141398.875115.34548611113382.779513888905
18141708141684.574652778141605.579.07465277777523.425347222219
19142055141810.699652778141834.75-24.0503472222105244.300347222248
20142457142210.428819444142079.333333333131.095486111103246.571180555562
21142429142305.012152778142332-26.9878472222250123.987847222219
22142613142695.574652778142565.458333333130.116319444432-82.574652777781
23142564142791.970486111142775.37516.5954861111034-227.970486111095
24142778143115.491319444142990.041666667125.449652777775-337.491319444438
25143086143001.470486111143194.25-192.77951388889784.529513888905
26143362143185.553819444143379.833333333-194.279513888897176.446180555562
27143619143394.178819444143572.791666667-178.612847222210224.821180555591
28143791143808.449652778143789.41666666719.032986111118-17.449652777781
29144088144146.470486111144031.125115.345486111133-58.4704861110949
30144369144368.116319444144289.04166666779.0746527777750.883680555562023
31144295144514.991319444144539.041666667-24.0503472222105-219.991319444438
32144671144893.262152778144762.166666667131.095486111103-222.262152777752
33144846144945.678819444144972.666666667-26.9878472222250-99.678819444438
34145395145288.116319444145158130.116319444432106.883680555562
35145583145330.720486111145314.12516.5954861111034252.279513888905
36145949145587.199652778145461.75125.449652777775361.800347222219
37145915145413.470486111145606.25-192.779513888897501.529513888905
38145888145529.970486111145724.25-194.279513888897358.029513888905
39146145145649.637152778145828.25-178.612847222210495.362847222219
40145713145932.074652778145913.04166666719.032986111118-219.074652777781
41145913146098.595486111145983.25115.345486111133-185.595486111124
42146087146117.574652778146038.579.074652777775-30.5746527778101
43146045146039.241319444146063.291666667-24.05034722221055.75868055556202
44145753NANA131.095486111103NA
45146260NANA-26.9878472222250NA
46146016NANA130.116319444432NA
47146647NANA16.5954861111034NA
48146211NANA125.449652777775NA
49146248NANANANA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 138463 & NA & NA & -192.779513888897 & NA \tabularnewline
2 & 138529 & NA & NA & -194.279513888897 & NA \tabularnewline
3 & 138421 & NA & NA & -178.612847222210 & NA \tabularnewline
4 & 138674 & NA & NA & 19.032986111118 & NA \tabularnewline
5 & 138848 & NA & NA & 115.345486111133 & NA \tabularnewline
6 & 139174 & NA & NA & 79.074652777775 & NA \tabularnewline
7 & 139565 & 139290.824652778 & 139314.875 & -24.0503472222105 & 274.175347222219 \tabularnewline
8 & 139585 & 139595.387152778 & 139464.291666667 & 131.095486111103 & -10.3871527777519 \tabularnewline
9 & 139500 & 139602.595486111 & 139629.583333333 & -26.9878472222250 & -102.595486111095 \tabularnewline
10 & 139756 & 139956.032986111 & 139825.916666667 & 130.116319444432 & -200.032986111095 \tabularnewline
11 & 140245 & 140064.137152778 & 140047.541666667 & 16.5954861111034 & 180.862847222248 \tabularnewline
12 & 140138 & 140393.116319444 & 140267.666666667 & 125.449652777775 & -255.116319444409 \tabularnewline
13 & 140224 & 140284.220486111 & 140477 & -192.779513888897 & -60.2204861110949 \tabularnewline
14 & 140354 & 140506.137152778 & 140700.416666667 & -194.279513888897 & -152.137152777752 \tabularnewline
15 & 140563 & 140763.512152778 & 140942.125 & -178.612847222210 & -200.512152777781 \tabularnewline
16 & 141244 & 141202.241319444 & 141183.208333333 & 19.032986111118 & 41.758680555562 \tabularnewline
17 & 141597 & 141514.220486111 & 141398.875 & 115.345486111133 & 82.779513888905 \tabularnewline
18 & 141708 & 141684.574652778 & 141605.5 & 79.074652777775 & 23.425347222219 \tabularnewline
19 & 142055 & 141810.699652778 & 141834.75 & -24.0503472222105 & 244.300347222248 \tabularnewline
20 & 142457 & 142210.428819444 & 142079.333333333 & 131.095486111103 & 246.571180555562 \tabularnewline
21 & 142429 & 142305.012152778 & 142332 & -26.9878472222250 & 123.987847222219 \tabularnewline
22 & 142613 & 142695.574652778 & 142565.458333333 & 130.116319444432 & -82.574652777781 \tabularnewline
23 & 142564 & 142791.970486111 & 142775.375 & 16.5954861111034 & -227.970486111095 \tabularnewline
24 & 142778 & 143115.491319444 & 142990.041666667 & 125.449652777775 & -337.491319444438 \tabularnewline
25 & 143086 & 143001.470486111 & 143194.25 & -192.779513888897 & 84.529513888905 \tabularnewline
26 & 143362 & 143185.553819444 & 143379.833333333 & -194.279513888897 & 176.446180555562 \tabularnewline
27 & 143619 & 143394.178819444 & 143572.791666667 & -178.612847222210 & 224.821180555591 \tabularnewline
28 & 143791 & 143808.449652778 & 143789.416666667 & 19.032986111118 & -17.449652777781 \tabularnewline
29 & 144088 & 144146.470486111 & 144031.125 & 115.345486111133 & -58.4704861110949 \tabularnewline
30 & 144369 & 144368.116319444 & 144289.041666667 & 79.074652777775 & 0.883680555562023 \tabularnewline
31 & 144295 & 144514.991319444 & 144539.041666667 & -24.0503472222105 & -219.991319444438 \tabularnewline
32 & 144671 & 144893.262152778 & 144762.166666667 & 131.095486111103 & -222.262152777752 \tabularnewline
33 & 144846 & 144945.678819444 & 144972.666666667 & -26.9878472222250 & -99.678819444438 \tabularnewline
34 & 145395 & 145288.116319444 & 145158 & 130.116319444432 & 106.883680555562 \tabularnewline
35 & 145583 & 145330.720486111 & 145314.125 & 16.5954861111034 & 252.279513888905 \tabularnewline
36 & 145949 & 145587.199652778 & 145461.75 & 125.449652777775 & 361.800347222219 \tabularnewline
37 & 145915 & 145413.470486111 & 145606.25 & -192.779513888897 & 501.529513888905 \tabularnewline
38 & 145888 & 145529.970486111 & 145724.25 & -194.279513888897 & 358.029513888905 \tabularnewline
39 & 146145 & 145649.637152778 & 145828.25 & -178.612847222210 & 495.362847222219 \tabularnewline
40 & 145713 & 145932.074652778 & 145913.041666667 & 19.032986111118 & -219.074652777781 \tabularnewline
41 & 145913 & 146098.595486111 & 145983.25 & 115.345486111133 & -185.595486111124 \tabularnewline
42 & 146087 & 146117.574652778 & 146038.5 & 79.074652777775 & -30.5746527778101 \tabularnewline
43 & 146045 & 146039.241319444 & 146063.291666667 & -24.0503472222105 & 5.75868055556202 \tabularnewline
44 & 145753 & NA & NA & 131.095486111103 & NA \tabularnewline
45 & 146260 & NA & NA & -26.9878472222250 & NA \tabularnewline
46 & 146016 & NA & NA & 130.116319444432 & NA \tabularnewline
47 & 146647 & NA & NA & 16.5954861111034 & NA \tabularnewline
48 & 146211 & NA & NA & 125.449652777775 & NA \tabularnewline
49 & 146248 & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=13160&T=1

[TABLE]
[ROW][C]Classical Decomposition by Moving Averages[/C][/ROW]
[ROW][C]t[/C][C]Observations[/C][C]Fit[/C][C]Trend[/C][C]Seasonal[/C][C]Random[/C][/ROW]
[ROW][C]1[/C][C]138463[/C][C]NA[/C][C]NA[/C][C]-192.779513888897[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]138529[/C][C]NA[/C][C]NA[/C][C]-194.279513888897[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]138421[/C][C]NA[/C][C]NA[/C][C]-178.612847222210[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]138674[/C][C]NA[/C][C]NA[/C][C]19.032986111118[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]138848[/C][C]NA[/C][C]NA[/C][C]115.345486111133[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]139174[/C][C]NA[/C][C]NA[/C][C]79.074652777775[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]139565[/C][C]139290.824652778[/C][C]139314.875[/C][C]-24.0503472222105[/C][C]274.175347222219[/C][/ROW]
[ROW][C]8[/C][C]139585[/C][C]139595.387152778[/C][C]139464.291666667[/C][C]131.095486111103[/C][C]-10.3871527777519[/C][/ROW]
[ROW][C]9[/C][C]139500[/C][C]139602.595486111[/C][C]139629.583333333[/C][C]-26.9878472222250[/C][C]-102.595486111095[/C][/ROW]
[ROW][C]10[/C][C]139756[/C][C]139956.032986111[/C][C]139825.916666667[/C][C]130.116319444432[/C][C]-200.032986111095[/C][/ROW]
[ROW][C]11[/C][C]140245[/C][C]140064.137152778[/C][C]140047.541666667[/C][C]16.5954861111034[/C][C]180.862847222248[/C][/ROW]
[ROW][C]12[/C][C]140138[/C][C]140393.116319444[/C][C]140267.666666667[/C][C]125.449652777775[/C][C]-255.116319444409[/C][/ROW]
[ROW][C]13[/C][C]140224[/C][C]140284.220486111[/C][C]140477[/C][C]-192.779513888897[/C][C]-60.2204861110949[/C][/ROW]
[ROW][C]14[/C][C]140354[/C][C]140506.137152778[/C][C]140700.416666667[/C][C]-194.279513888897[/C][C]-152.137152777752[/C][/ROW]
[ROW][C]15[/C][C]140563[/C][C]140763.512152778[/C][C]140942.125[/C][C]-178.612847222210[/C][C]-200.512152777781[/C][/ROW]
[ROW][C]16[/C][C]141244[/C][C]141202.241319444[/C][C]141183.208333333[/C][C]19.032986111118[/C][C]41.758680555562[/C][/ROW]
[ROW][C]17[/C][C]141597[/C][C]141514.220486111[/C][C]141398.875[/C][C]115.345486111133[/C][C]82.779513888905[/C][/ROW]
[ROW][C]18[/C][C]141708[/C][C]141684.574652778[/C][C]141605.5[/C][C]79.074652777775[/C][C]23.425347222219[/C][/ROW]
[ROW][C]19[/C][C]142055[/C][C]141810.699652778[/C][C]141834.75[/C][C]-24.0503472222105[/C][C]244.300347222248[/C][/ROW]
[ROW][C]20[/C][C]142457[/C][C]142210.428819444[/C][C]142079.333333333[/C][C]131.095486111103[/C][C]246.571180555562[/C][/ROW]
[ROW][C]21[/C][C]142429[/C][C]142305.012152778[/C][C]142332[/C][C]-26.9878472222250[/C][C]123.987847222219[/C][/ROW]
[ROW][C]22[/C][C]142613[/C][C]142695.574652778[/C][C]142565.458333333[/C][C]130.116319444432[/C][C]-82.574652777781[/C][/ROW]
[ROW][C]23[/C][C]142564[/C][C]142791.970486111[/C][C]142775.375[/C][C]16.5954861111034[/C][C]-227.970486111095[/C][/ROW]
[ROW][C]24[/C][C]142778[/C][C]143115.491319444[/C][C]142990.041666667[/C][C]125.449652777775[/C][C]-337.491319444438[/C][/ROW]
[ROW][C]25[/C][C]143086[/C][C]143001.470486111[/C][C]143194.25[/C][C]-192.779513888897[/C][C]84.529513888905[/C][/ROW]
[ROW][C]26[/C][C]143362[/C][C]143185.553819444[/C][C]143379.833333333[/C][C]-194.279513888897[/C][C]176.446180555562[/C][/ROW]
[ROW][C]27[/C][C]143619[/C][C]143394.178819444[/C][C]143572.791666667[/C][C]-178.612847222210[/C][C]224.821180555591[/C][/ROW]
[ROW][C]28[/C][C]143791[/C][C]143808.449652778[/C][C]143789.416666667[/C][C]19.032986111118[/C][C]-17.449652777781[/C][/ROW]
[ROW][C]29[/C][C]144088[/C][C]144146.470486111[/C][C]144031.125[/C][C]115.345486111133[/C][C]-58.4704861110949[/C][/ROW]
[ROW][C]30[/C][C]144369[/C][C]144368.116319444[/C][C]144289.041666667[/C][C]79.074652777775[/C][C]0.883680555562023[/C][/ROW]
[ROW][C]31[/C][C]144295[/C][C]144514.991319444[/C][C]144539.041666667[/C][C]-24.0503472222105[/C][C]-219.991319444438[/C][/ROW]
[ROW][C]32[/C][C]144671[/C][C]144893.262152778[/C][C]144762.166666667[/C][C]131.095486111103[/C][C]-222.262152777752[/C][/ROW]
[ROW][C]33[/C][C]144846[/C][C]144945.678819444[/C][C]144972.666666667[/C][C]-26.9878472222250[/C][C]-99.678819444438[/C][/ROW]
[ROW][C]34[/C][C]145395[/C][C]145288.116319444[/C][C]145158[/C][C]130.116319444432[/C][C]106.883680555562[/C][/ROW]
[ROW][C]35[/C][C]145583[/C][C]145330.720486111[/C][C]145314.125[/C][C]16.5954861111034[/C][C]252.279513888905[/C][/ROW]
[ROW][C]36[/C][C]145949[/C][C]145587.199652778[/C][C]145461.75[/C][C]125.449652777775[/C][C]361.800347222219[/C][/ROW]
[ROW][C]37[/C][C]145915[/C][C]145413.470486111[/C][C]145606.25[/C][C]-192.779513888897[/C][C]501.529513888905[/C][/ROW]
[ROW][C]38[/C][C]145888[/C][C]145529.970486111[/C][C]145724.25[/C][C]-194.279513888897[/C][C]358.029513888905[/C][/ROW]
[ROW][C]39[/C][C]146145[/C][C]145649.637152778[/C][C]145828.25[/C][C]-178.612847222210[/C][C]495.362847222219[/C][/ROW]
[ROW][C]40[/C][C]145713[/C][C]145932.074652778[/C][C]145913.041666667[/C][C]19.032986111118[/C][C]-219.074652777781[/C][/ROW]
[ROW][C]41[/C][C]145913[/C][C]146098.595486111[/C][C]145983.25[/C][C]115.345486111133[/C][C]-185.595486111124[/C][/ROW]
[ROW][C]42[/C][C]146087[/C][C]146117.574652778[/C][C]146038.5[/C][C]79.074652777775[/C][C]-30.5746527778101[/C][/ROW]
[ROW][C]43[/C][C]146045[/C][C]146039.241319444[/C][C]146063.291666667[/C][C]-24.0503472222105[/C][C]5.75868055556202[/C][/ROW]
[ROW][C]44[/C][C]145753[/C][C]NA[/C][C]NA[/C][C]131.095486111103[/C][C]NA[/C][/ROW]
[ROW][C]45[/C][C]146260[/C][C]NA[/C][C]NA[/C][C]-26.9878472222250[/C][C]NA[/C][/ROW]
[ROW][C]46[/C][C]146016[/C][C]NA[/C][C]NA[/C][C]130.116319444432[/C][C]NA[/C][/ROW]
[ROW][C]47[/C][C]146647[/C][C]NA[/C][C]NA[/C][C]16.5954861111034[/C][C]NA[/C][/ROW]
[ROW][C]48[/C][C]146211[/C][C]NA[/C][C]NA[/C][C]125.449652777775[/C][C]NA[/C][/ROW]
[ROW][C]49[/C][C]146248[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=13160&T=1

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

As an alternative you can also use a QR Code:  

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

Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1138463NANA-192.779513888897NA
2138529NANA-194.279513888897NA
3138421NANA-178.612847222210NA
4138674NANA19.032986111118NA
5138848NANA115.345486111133NA
6139174NANA79.074652777775NA
7139565139290.824652778139314.875-24.0503472222105274.175347222219
8139585139595.387152778139464.291666667131.095486111103-10.3871527777519
9139500139602.595486111139629.583333333-26.9878472222250-102.595486111095
10139756139956.032986111139825.916666667130.116319444432-200.032986111095
11140245140064.137152778140047.54166666716.5954861111034180.862847222248
12140138140393.116319444140267.666666667125.449652777775-255.116319444409
13140224140284.220486111140477-192.779513888897-60.2204861110949
14140354140506.137152778140700.416666667-194.279513888897-152.137152777752
15140563140763.512152778140942.125-178.612847222210-200.512152777781
16141244141202.241319444141183.20833333319.03298611111841.758680555562
17141597141514.220486111141398.875115.34548611113382.779513888905
18141708141684.574652778141605.579.07465277777523.425347222219
19142055141810.699652778141834.75-24.0503472222105244.300347222248
20142457142210.428819444142079.333333333131.095486111103246.571180555562
21142429142305.012152778142332-26.9878472222250123.987847222219
22142613142695.574652778142565.458333333130.116319444432-82.574652777781
23142564142791.970486111142775.37516.5954861111034-227.970486111095
24142778143115.491319444142990.041666667125.449652777775-337.491319444438
25143086143001.470486111143194.25-192.77951388889784.529513888905
26143362143185.553819444143379.833333333-194.279513888897176.446180555562
27143619143394.178819444143572.791666667-178.612847222210224.821180555591
28143791143808.449652778143789.41666666719.032986111118-17.449652777781
29144088144146.470486111144031.125115.345486111133-58.4704861110949
30144369144368.116319444144289.04166666779.0746527777750.883680555562023
31144295144514.991319444144539.041666667-24.0503472222105-219.991319444438
32144671144893.262152778144762.166666667131.095486111103-222.262152777752
33144846144945.678819444144972.666666667-26.9878472222250-99.678819444438
34145395145288.116319444145158130.116319444432106.883680555562
35145583145330.720486111145314.12516.5954861111034252.279513888905
36145949145587.199652778145461.75125.449652777775361.800347222219
37145915145413.470486111145606.25-192.779513888897501.529513888905
38145888145529.970486111145724.25-194.279513888897358.029513888905
39146145145649.637152778145828.25-178.612847222210495.362847222219
40145713145932.074652778145913.04166666719.032986111118-219.074652777781
41145913146098.595486111145983.25115.345486111133-185.595486111124
42146087146117.574652778146038.579.074652777775-30.5746527778101
43146045146039.241319444146063.291666667-24.05034722221055.75868055556202
44145753NANA131.095486111103NA
45146260NANA-26.9878472222250NA
46146016NANA130.116319444432NA
47146647NANA16.5954861111034NA
48146211NANA125.449652777775NA
49146248NANANANA



Parameters (Session):
par1 = additive ; par2 = 12 ;
Parameters (R input):
par1 = additive ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')