Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 15 May 2016 23:45:13 +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/May/15/t1463352324j6p2j9d8njb9t6u.htm/, Retrieved Mon, 06 May 2024 13:14:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=295372, Retrieved Mon, 06 May 2024 13:14:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact138
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2016-05-15 22:45:13] [517bf63cbd197750110a40d4d2cd39d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
74787
49019
56601
47637
49806
50499
42092
39062
44382
43635
41082
17244
70170
43949
52333
41032
47758
76116
30917
32996
31951
26775
30268
18214
47957
31901
35559
30408
30083
35043
30475
28309
31394
36313
40357
38918
44368
33298
29366
28282
30943
32699
29764
25524
29807
35112
32192
36214
47639
33421
28642
26996
27757
36839
33821
30839
35032
38821
40347
68799




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.wessa.net

\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 & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295372&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295372&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295372&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 time2 seconds
R Server'George Udny Yule' @ yule.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
174787NANA1.46763NA
249019NANA1.00666NA
356601NANA1.02179NA
447637NANA0.897774NA
549806NANA0.96169NA
650499NANA1.23519NA
74209240433.146128.10.8765391.04103
83906238079.745724.50.8328071.0258
94438241773.845335.40.9214381.06244
104363543622.344882.40.9719251.00029
11410824448744521.80.9992180.92346
12172443673745503.90.8073380.469391
137017067665.946105.61.467631.03701
144394945689.745387.21.006660.961902
155233345588.844616.51.021791.14793
164103238959.943396.10.8977741.05319
174775840624.7422430.961691.17559
187611651671.441832.81.235191.47308
193091735892.240947.70.8765390.861384
203299632912.739520.20.8328071.00253
213195135308.838319.20.9214380.904901
222677536133.937177.70.9719250.740994
233026835970.435998.50.9992180.84147
241821427086.733550.70.8073380.672432
254795746701.331820.91.467631.02689
263190131817.831607.21.006661.00261
273555932072.731388.71.021791.1087
283040828515.931762.90.8977741.06635
293008331332.532580.70.961690.96012
303504341828.133863.81.235190.837786
31304753030834576.90.8765391.00551
322830928719.834485.50.8328070.985696
333139431592.234285.70.9214380.993728
343631332986.233939.10.9719251.10085
354035733859.833886.30.9992181.19188
363891827307.833824.50.8073381.42516
37443684945533697.21.467630.89714
383329833775.133551.51.006660.985874
392936634096.633369.41.021790.86126
402828229853.933253.20.8977740.947348
413094331604328630.961690.979086
423269940032.632410.11.235190.81681
432976428429.432433.70.8765391.04694
442552427128.832575.10.8328070.940845
452980729992.932550.10.9214380.993802
463511231554.832466.30.9719251.11273
473219232254.8322800.9992180.998054
483621426092.932319.70.8073381.38788
494763947934.632661.31.467630.993833
50334213327233051.81.006661.00448
512864234220.8334911.021790.836976
522699630401.533863.20.8977740.887982
532775733041.334357.50.961690.84007
543683944534.8360551.235190.827196
5533821NANA0.876539NA
5630839NANA0.832807NA
5735032NANA0.921438NA
5838821NANA0.971925NA
5940347NANA0.999218NA
6068799NANA0.807338NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 74787 & NA & NA & 1.46763 & NA \tabularnewline
2 & 49019 & NA & NA & 1.00666 & NA \tabularnewline
3 & 56601 & NA & NA & 1.02179 & NA \tabularnewline
4 & 47637 & NA & NA & 0.897774 & NA \tabularnewline
5 & 49806 & NA & NA & 0.96169 & NA \tabularnewline
6 & 50499 & NA & NA & 1.23519 & NA \tabularnewline
7 & 42092 & 40433.1 & 46128.1 & 0.876539 & 1.04103 \tabularnewline
8 & 39062 & 38079.7 & 45724.5 & 0.832807 & 1.0258 \tabularnewline
9 & 44382 & 41773.8 & 45335.4 & 0.921438 & 1.06244 \tabularnewline
10 & 43635 & 43622.3 & 44882.4 & 0.971925 & 1.00029 \tabularnewline
11 & 41082 & 44487 & 44521.8 & 0.999218 & 0.92346 \tabularnewline
12 & 17244 & 36737 & 45503.9 & 0.807338 & 0.469391 \tabularnewline
13 & 70170 & 67665.9 & 46105.6 & 1.46763 & 1.03701 \tabularnewline
14 & 43949 & 45689.7 & 45387.2 & 1.00666 & 0.961902 \tabularnewline
15 & 52333 & 45588.8 & 44616.5 & 1.02179 & 1.14793 \tabularnewline
16 & 41032 & 38959.9 & 43396.1 & 0.897774 & 1.05319 \tabularnewline
17 & 47758 & 40624.7 & 42243 & 0.96169 & 1.17559 \tabularnewline
18 & 76116 & 51671.4 & 41832.8 & 1.23519 & 1.47308 \tabularnewline
19 & 30917 & 35892.2 & 40947.7 & 0.876539 & 0.861384 \tabularnewline
20 & 32996 & 32912.7 & 39520.2 & 0.832807 & 1.00253 \tabularnewline
21 & 31951 & 35308.8 & 38319.2 & 0.921438 & 0.904901 \tabularnewline
22 & 26775 & 36133.9 & 37177.7 & 0.971925 & 0.740994 \tabularnewline
23 & 30268 & 35970.4 & 35998.5 & 0.999218 & 0.84147 \tabularnewline
24 & 18214 & 27086.7 & 33550.7 & 0.807338 & 0.672432 \tabularnewline
25 & 47957 & 46701.3 & 31820.9 & 1.46763 & 1.02689 \tabularnewline
26 & 31901 & 31817.8 & 31607.2 & 1.00666 & 1.00261 \tabularnewline
27 & 35559 & 32072.7 & 31388.7 & 1.02179 & 1.1087 \tabularnewline
28 & 30408 & 28515.9 & 31762.9 & 0.897774 & 1.06635 \tabularnewline
29 & 30083 & 31332.5 & 32580.7 & 0.96169 & 0.96012 \tabularnewline
30 & 35043 & 41828.1 & 33863.8 & 1.23519 & 0.837786 \tabularnewline
31 & 30475 & 30308 & 34576.9 & 0.876539 & 1.00551 \tabularnewline
32 & 28309 & 28719.8 & 34485.5 & 0.832807 & 0.985696 \tabularnewline
33 & 31394 & 31592.2 & 34285.7 & 0.921438 & 0.993728 \tabularnewline
34 & 36313 & 32986.2 & 33939.1 & 0.971925 & 1.10085 \tabularnewline
35 & 40357 & 33859.8 & 33886.3 & 0.999218 & 1.19188 \tabularnewline
36 & 38918 & 27307.8 & 33824.5 & 0.807338 & 1.42516 \tabularnewline
37 & 44368 & 49455 & 33697.2 & 1.46763 & 0.89714 \tabularnewline
38 & 33298 & 33775.1 & 33551.5 & 1.00666 & 0.985874 \tabularnewline
39 & 29366 & 34096.6 & 33369.4 & 1.02179 & 0.86126 \tabularnewline
40 & 28282 & 29853.9 & 33253.2 & 0.897774 & 0.947348 \tabularnewline
41 & 30943 & 31604 & 32863 & 0.96169 & 0.979086 \tabularnewline
42 & 32699 & 40032.6 & 32410.1 & 1.23519 & 0.81681 \tabularnewline
43 & 29764 & 28429.4 & 32433.7 & 0.876539 & 1.04694 \tabularnewline
44 & 25524 & 27128.8 & 32575.1 & 0.832807 & 0.940845 \tabularnewline
45 & 29807 & 29992.9 & 32550.1 & 0.921438 & 0.993802 \tabularnewline
46 & 35112 & 31554.8 & 32466.3 & 0.971925 & 1.11273 \tabularnewline
47 & 32192 & 32254.8 & 32280 & 0.999218 & 0.998054 \tabularnewline
48 & 36214 & 26092.9 & 32319.7 & 0.807338 & 1.38788 \tabularnewline
49 & 47639 & 47934.6 & 32661.3 & 1.46763 & 0.993833 \tabularnewline
50 & 33421 & 33272 & 33051.8 & 1.00666 & 1.00448 \tabularnewline
51 & 28642 & 34220.8 & 33491 & 1.02179 & 0.836976 \tabularnewline
52 & 26996 & 30401.5 & 33863.2 & 0.897774 & 0.887982 \tabularnewline
53 & 27757 & 33041.3 & 34357.5 & 0.96169 & 0.84007 \tabularnewline
54 & 36839 & 44534.8 & 36055 & 1.23519 & 0.827196 \tabularnewline
55 & 33821 & NA & NA & 0.876539 & NA \tabularnewline
56 & 30839 & NA & NA & 0.832807 & NA \tabularnewline
57 & 35032 & NA & NA & 0.921438 & NA \tabularnewline
58 & 38821 & NA & NA & 0.971925 & NA \tabularnewline
59 & 40347 & NA & NA & 0.999218 & NA \tabularnewline
60 & 68799 & NA & NA & 0.807338 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295372&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]74787[/C][C]NA[/C][C]NA[/C][C]1.46763[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]49019[/C][C]NA[/C][C]NA[/C][C]1.00666[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]56601[/C][C]NA[/C][C]NA[/C][C]1.02179[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]47637[/C][C]NA[/C][C]NA[/C][C]0.897774[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]49806[/C][C]NA[/C][C]NA[/C][C]0.96169[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]50499[/C][C]NA[/C][C]NA[/C][C]1.23519[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]42092[/C][C]40433.1[/C][C]46128.1[/C][C]0.876539[/C][C]1.04103[/C][/ROW]
[ROW][C]8[/C][C]39062[/C][C]38079.7[/C][C]45724.5[/C][C]0.832807[/C][C]1.0258[/C][/ROW]
[ROW][C]9[/C][C]44382[/C][C]41773.8[/C][C]45335.4[/C][C]0.921438[/C][C]1.06244[/C][/ROW]
[ROW][C]10[/C][C]43635[/C][C]43622.3[/C][C]44882.4[/C][C]0.971925[/C][C]1.00029[/C][/ROW]
[ROW][C]11[/C][C]41082[/C][C]44487[/C][C]44521.8[/C][C]0.999218[/C][C]0.92346[/C][/ROW]
[ROW][C]12[/C][C]17244[/C][C]36737[/C][C]45503.9[/C][C]0.807338[/C][C]0.469391[/C][/ROW]
[ROW][C]13[/C][C]70170[/C][C]67665.9[/C][C]46105.6[/C][C]1.46763[/C][C]1.03701[/C][/ROW]
[ROW][C]14[/C][C]43949[/C][C]45689.7[/C][C]45387.2[/C][C]1.00666[/C][C]0.961902[/C][/ROW]
[ROW][C]15[/C][C]52333[/C][C]45588.8[/C][C]44616.5[/C][C]1.02179[/C][C]1.14793[/C][/ROW]
[ROW][C]16[/C][C]41032[/C][C]38959.9[/C][C]43396.1[/C][C]0.897774[/C][C]1.05319[/C][/ROW]
[ROW][C]17[/C][C]47758[/C][C]40624.7[/C][C]42243[/C][C]0.96169[/C][C]1.17559[/C][/ROW]
[ROW][C]18[/C][C]76116[/C][C]51671.4[/C][C]41832.8[/C][C]1.23519[/C][C]1.47308[/C][/ROW]
[ROW][C]19[/C][C]30917[/C][C]35892.2[/C][C]40947.7[/C][C]0.876539[/C][C]0.861384[/C][/ROW]
[ROW][C]20[/C][C]32996[/C][C]32912.7[/C][C]39520.2[/C][C]0.832807[/C][C]1.00253[/C][/ROW]
[ROW][C]21[/C][C]31951[/C][C]35308.8[/C][C]38319.2[/C][C]0.921438[/C][C]0.904901[/C][/ROW]
[ROW][C]22[/C][C]26775[/C][C]36133.9[/C][C]37177.7[/C][C]0.971925[/C][C]0.740994[/C][/ROW]
[ROW][C]23[/C][C]30268[/C][C]35970.4[/C][C]35998.5[/C][C]0.999218[/C][C]0.84147[/C][/ROW]
[ROW][C]24[/C][C]18214[/C][C]27086.7[/C][C]33550.7[/C][C]0.807338[/C][C]0.672432[/C][/ROW]
[ROW][C]25[/C][C]47957[/C][C]46701.3[/C][C]31820.9[/C][C]1.46763[/C][C]1.02689[/C][/ROW]
[ROW][C]26[/C][C]31901[/C][C]31817.8[/C][C]31607.2[/C][C]1.00666[/C][C]1.00261[/C][/ROW]
[ROW][C]27[/C][C]35559[/C][C]32072.7[/C][C]31388.7[/C][C]1.02179[/C][C]1.1087[/C][/ROW]
[ROW][C]28[/C][C]30408[/C][C]28515.9[/C][C]31762.9[/C][C]0.897774[/C][C]1.06635[/C][/ROW]
[ROW][C]29[/C][C]30083[/C][C]31332.5[/C][C]32580.7[/C][C]0.96169[/C][C]0.96012[/C][/ROW]
[ROW][C]30[/C][C]35043[/C][C]41828.1[/C][C]33863.8[/C][C]1.23519[/C][C]0.837786[/C][/ROW]
[ROW][C]31[/C][C]30475[/C][C]30308[/C][C]34576.9[/C][C]0.876539[/C][C]1.00551[/C][/ROW]
[ROW][C]32[/C][C]28309[/C][C]28719.8[/C][C]34485.5[/C][C]0.832807[/C][C]0.985696[/C][/ROW]
[ROW][C]33[/C][C]31394[/C][C]31592.2[/C][C]34285.7[/C][C]0.921438[/C][C]0.993728[/C][/ROW]
[ROW][C]34[/C][C]36313[/C][C]32986.2[/C][C]33939.1[/C][C]0.971925[/C][C]1.10085[/C][/ROW]
[ROW][C]35[/C][C]40357[/C][C]33859.8[/C][C]33886.3[/C][C]0.999218[/C][C]1.19188[/C][/ROW]
[ROW][C]36[/C][C]38918[/C][C]27307.8[/C][C]33824.5[/C][C]0.807338[/C][C]1.42516[/C][/ROW]
[ROW][C]37[/C][C]44368[/C][C]49455[/C][C]33697.2[/C][C]1.46763[/C][C]0.89714[/C][/ROW]
[ROW][C]38[/C][C]33298[/C][C]33775.1[/C][C]33551.5[/C][C]1.00666[/C][C]0.985874[/C][/ROW]
[ROW][C]39[/C][C]29366[/C][C]34096.6[/C][C]33369.4[/C][C]1.02179[/C][C]0.86126[/C][/ROW]
[ROW][C]40[/C][C]28282[/C][C]29853.9[/C][C]33253.2[/C][C]0.897774[/C][C]0.947348[/C][/ROW]
[ROW][C]41[/C][C]30943[/C][C]31604[/C][C]32863[/C][C]0.96169[/C][C]0.979086[/C][/ROW]
[ROW][C]42[/C][C]32699[/C][C]40032.6[/C][C]32410.1[/C][C]1.23519[/C][C]0.81681[/C][/ROW]
[ROW][C]43[/C][C]29764[/C][C]28429.4[/C][C]32433.7[/C][C]0.876539[/C][C]1.04694[/C][/ROW]
[ROW][C]44[/C][C]25524[/C][C]27128.8[/C][C]32575.1[/C][C]0.832807[/C][C]0.940845[/C][/ROW]
[ROW][C]45[/C][C]29807[/C][C]29992.9[/C][C]32550.1[/C][C]0.921438[/C][C]0.993802[/C][/ROW]
[ROW][C]46[/C][C]35112[/C][C]31554.8[/C][C]32466.3[/C][C]0.971925[/C][C]1.11273[/C][/ROW]
[ROW][C]47[/C][C]32192[/C][C]32254.8[/C][C]32280[/C][C]0.999218[/C][C]0.998054[/C][/ROW]
[ROW][C]48[/C][C]36214[/C][C]26092.9[/C][C]32319.7[/C][C]0.807338[/C][C]1.38788[/C][/ROW]
[ROW][C]49[/C][C]47639[/C][C]47934.6[/C][C]32661.3[/C][C]1.46763[/C][C]0.993833[/C][/ROW]
[ROW][C]50[/C][C]33421[/C][C]33272[/C][C]33051.8[/C][C]1.00666[/C][C]1.00448[/C][/ROW]
[ROW][C]51[/C][C]28642[/C][C]34220.8[/C][C]33491[/C][C]1.02179[/C][C]0.836976[/C][/ROW]
[ROW][C]52[/C][C]26996[/C][C]30401.5[/C][C]33863.2[/C][C]0.897774[/C][C]0.887982[/C][/ROW]
[ROW][C]53[/C][C]27757[/C][C]33041.3[/C][C]34357.5[/C][C]0.96169[/C][C]0.84007[/C][/ROW]
[ROW][C]54[/C][C]36839[/C][C]44534.8[/C][C]36055[/C][C]1.23519[/C][C]0.827196[/C][/ROW]
[ROW][C]55[/C][C]33821[/C][C]NA[/C][C]NA[/C][C]0.876539[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]30839[/C][C]NA[/C][C]NA[/C][C]0.832807[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]35032[/C][C]NA[/C][C]NA[/C][C]0.921438[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]38821[/C][C]NA[/C][C]NA[/C][C]0.971925[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]40347[/C][C]NA[/C][C]NA[/C][C]0.999218[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]68799[/C][C]NA[/C][C]NA[/C][C]0.807338[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295372&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295372&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
174787NANA1.46763NA
249019NANA1.00666NA
356601NANA1.02179NA
447637NANA0.897774NA
549806NANA0.96169NA
650499NANA1.23519NA
74209240433.146128.10.8765391.04103
83906238079.745724.50.8328071.0258
94438241773.845335.40.9214381.06244
104363543622.344882.40.9719251.00029
11410824448744521.80.9992180.92346
12172443673745503.90.8073380.469391
137017067665.946105.61.467631.03701
144394945689.745387.21.006660.961902
155233345588.844616.51.021791.14793
164103238959.943396.10.8977741.05319
174775840624.7422430.961691.17559
187611651671.441832.81.235191.47308
193091735892.240947.70.8765390.861384
203299632912.739520.20.8328071.00253
213195135308.838319.20.9214380.904901
222677536133.937177.70.9719250.740994
233026835970.435998.50.9992180.84147
241821427086.733550.70.8073380.672432
254795746701.331820.91.467631.02689
263190131817.831607.21.006661.00261
273555932072.731388.71.021791.1087
283040828515.931762.90.8977741.06635
293008331332.532580.70.961690.96012
303504341828.133863.81.235190.837786
31304753030834576.90.8765391.00551
322830928719.834485.50.8328070.985696
333139431592.234285.70.9214380.993728
343631332986.233939.10.9719251.10085
354035733859.833886.30.9992181.19188
363891827307.833824.50.8073381.42516
37443684945533697.21.467630.89714
383329833775.133551.51.006660.985874
392936634096.633369.41.021790.86126
402828229853.933253.20.8977740.947348
413094331604328630.961690.979086
423269940032.632410.11.235190.81681
432976428429.432433.70.8765391.04694
442552427128.832575.10.8328070.940845
452980729992.932550.10.9214380.993802
463511231554.832466.30.9719251.11273
473219232254.8322800.9992180.998054
483621426092.932319.70.8073381.38788
494763947934.632661.31.467630.993833
50334213327233051.81.006661.00448
512864234220.8334911.021790.836976
522699630401.533863.20.8977740.887982
532775733041.334357.50.961690.84007
543683944534.8360551.235190.827196
5533821NANA0.876539NA
5630839NANA0.832807NA
5735032NANA0.921438NA
5838821NANA0.971925NA
5940347NANA0.999218NA
6068799NANA0.807338NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; 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,signif(m$trend[i]+m$seasonal[i],6)) else a<-table.element(a,signif(m$trend[i]*m$seasonal[i],6))
a<-table.element(a,signif(m$trend[i],6))
a<-table.element(a,signif(m$seasonal[i],6))
a<-table.element(a,signif(m$random[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')