Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationFri, 25 Nov 2016 10:35:55 +0000
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/Nov/25/t14800701745f136p5gtwbrgdg.htm/, Retrieved Sun, 19 May 2024 01:41:23 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sun, 19 May 2024 01:41:23 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
12347
12624
11918
10028
10228
11026
13878
22165
23533
13445
12164
9606
12177
13142
11210
9485
10082
10680
13579
21709
22205
14687
11222
8196
12794
12627
11080
10425
10865
10771
14771
20993
23882
14825
11648
10091
14976
14472
12254
12257
10767
12275
14845
21939
26740
16974
12956
12494
16024
15306
13989
12792
10697
14257
17251
25795
29016
18968
16009
14511




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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'Gertrude Mary Cox' @ cox.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
112347NANA0.978199NA
212624NANA0.968535NA
311918NANA0.839716NA
410028NANA0.770848NA
510228NANA0.729078NA
611026NANA0.812227NA
71387813890.213573.11.023360.999124
82216521086.113587.61.551861.05117
92353323229.513579.71.710611.01307
101344514337.613527.51.059880.937743
111216411450.813498.80.8482771.06229
1296069534.6313478.30.7074041.00749
131217713158.213451.50.9781990.92543
141314212997.7134200.9685351.0111
151121011206.613345.70.8397161.00031
16948510284.713342.10.7708480.922242
17100829736.5413354.60.7290781.03548
181068010767.413256.60.8122270.991887
191357913532.513223.51.023361.00344
202170920527.713227.81.551861.05755
212220522581.613200.91.710610.983324
221468714027.213234.71.059881.04704
231122211287.613306.50.8482770.994191
2481969438.813342.90.7074040.86833
251279413104.313396.30.9781990.976322
26126271299413416.20.9685350.971754
271108011299.413456.20.8397160.980584
28104251043113531.80.7708480.999426
29108659882.913555.30.7290781.09937
301077111088.6136520.8122270.971362
311477114144.813821.91.023361.04427
322099321710.113989.71.551860.966968
332388224146.114115.51.710610.989064
341482515093.514240.71.059880.982208
351164812141.4143130.8482770.959363
361009110166.514371.60.7074040.992572
371497614122.614437.30.9781991.06043
381447214024.214479.80.9685351.03193
39122541229214638.30.8397160.996905
401225711444.8148470.7708481.07097
411076710929.6149910.7290780.985122
421227512301.715145.60.8122270.997831
431484515646.615289.41.023360.948769
442193923848.815367.81.551860.919921
452674026471.415474.91.710611.01015
461697416501.815569.51.059881.02861
471295613223.715588.80.8482770.97976
48124941108415668.50.7074041.12721
491602415505.815851.30.9781991.03342
501530615605.316112.20.9685350.980822
511398913744.316367.70.8397161.01781
521279212754.216545.70.7708481.00296
531069712216.4167560.7290780.875626
541425713781.216967.20.8122271.03452
5517251NANA1.02336NA
5625795NANA1.55186NA
5729016NANA1.71061NA
5818968NANA1.05988NA
5916009NANA0.848277NA
6014511NANA0.707404NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 12347 & NA & NA & 0.978199 & NA \tabularnewline
2 & 12624 & NA & NA & 0.968535 & NA \tabularnewline
3 & 11918 & NA & NA & 0.839716 & NA \tabularnewline
4 & 10028 & NA & NA & 0.770848 & NA \tabularnewline
5 & 10228 & NA & NA & 0.729078 & NA \tabularnewline
6 & 11026 & NA & NA & 0.812227 & NA \tabularnewline
7 & 13878 & 13890.2 & 13573.1 & 1.02336 & 0.999124 \tabularnewline
8 & 22165 & 21086.1 & 13587.6 & 1.55186 & 1.05117 \tabularnewline
9 & 23533 & 23229.5 & 13579.7 & 1.71061 & 1.01307 \tabularnewline
10 & 13445 & 14337.6 & 13527.5 & 1.05988 & 0.937743 \tabularnewline
11 & 12164 & 11450.8 & 13498.8 & 0.848277 & 1.06229 \tabularnewline
12 & 9606 & 9534.63 & 13478.3 & 0.707404 & 1.00749 \tabularnewline
13 & 12177 & 13158.2 & 13451.5 & 0.978199 & 0.92543 \tabularnewline
14 & 13142 & 12997.7 & 13420 & 0.968535 & 1.0111 \tabularnewline
15 & 11210 & 11206.6 & 13345.7 & 0.839716 & 1.00031 \tabularnewline
16 & 9485 & 10284.7 & 13342.1 & 0.770848 & 0.922242 \tabularnewline
17 & 10082 & 9736.54 & 13354.6 & 0.729078 & 1.03548 \tabularnewline
18 & 10680 & 10767.4 & 13256.6 & 0.812227 & 0.991887 \tabularnewline
19 & 13579 & 13532.5 & 13223.5 & 1.02336 & 1.00344 \tabularnewline
20 & 21709 & 20527.7 & 13227.8 & 1.55186 & 1.05755 \tabularnewline
21 & 22205 & 22581.6 & 13200.9 & 1.71061 & 0.983324 \tabularnewline
22 & 14687 & 14027.2 & 13234.7 & 1.05988 & 1.04704 \tabularnewline
23 & 11222 & 11287.6 & 13306.5 & 0.848277 & 0.994191 \tabularnewline
24 & 8196 & 9438.8 & 13342.9 & 0.707404 & 0.86833 \tabularnewline
25 & 12794 & 13104.3 & 13396.3 & 0.978199 & 0.976322 \tabularnewline
26 & 12627 & 12994 & 13416.2 & 0.968535 & 0.971754 \tabularnewline
27 & 11080 & 11299.4 & 13456.2 & 0.839716 & 0.980584 \tabularnewline
28 & 10425 & 10431 & 13531.8 & 0.770848 & 0.999426 \tabularnewline
29 & 10865 & 9882.9 & 13555.3 & 0.729078 & 1.09937 \tabularnewline
30 & 10771 & 11088.6 & 13652 & 0.812227 & 0.971362 \tabularnewline
31 & 14771 & 14144.8 & 13821.9 & 1.02336 & 1.04427 \tabularnewline
32 & 20993 & 21710.1 & 13989.7 & 1.55186 & 0.966968 \tabularnewline
33 & 23882 & 24146.1 & 14115.5 & 1.71061 & 0.989064 \tabularnewline
34 & 14825 & 15093.5 & 14240.7 & 1.05988 & 0.982208 \tabularnewline
35 & 11648 & 12141.4 & 14313 & 0.848277 & 0.959363 \tabularnewline
36 & 10091 & 10166.5 & 14371.6 & 0.707404 & 0.992572 \tabularnewline
37 & 14976 & 14122.6 & 14437.3 & 0.978199 & 1.06043 \tabularnewline
38 & 14472 & 14024.2 & 14479.8 & 0.968535 & 1.03193 \tabularnewline
39 & 12254 & 12292 & 14638.3 & 0.839716 & 0.996905 \tabularnewline
40 & 12257 & 11444.8 & 14847 & 0.770848 & 1.07097 \tabularnewline
41 & 10767 & 10929.6 & 14991 & 0.729078 & 0.985122 \tabularnewline
42 & 12275 & 12301.7 & 15145.6 & 0.812227 & 0.997831 \tabularnewline
43 & 14845 & 15646.6 & 15289.4 & 1.02336 & 0.948769 \tabularnewline
44 & 21939 & 23848.8 & 15367.8 & 1.55186 & 0.919921 \tabularnewline
45 & 26740 & 26471.4 & 15474.9 & 1.71061 & 1.01015 \tabularnewline
46 & 16974 & 16501.8 & 15569.5 & 1.05988 & 1.02861 \tabularnewline
47 & 12956 & 13223.7 & 15588.8 & 0.848277 & 0.97976 \tabularnewline
48 & 12494 & 11084 & 15668.5 & 0.707404 & 1.12721 \tabularnewline
49 & 16024 & 15505.8 & 15851.3 & 0.978199 & 1.03342 \tabularnewline
50 & 15306 & 15605.3 & 16112.2 & 0.968535 & 0.980822 \tabularnewline
51 & 13989 & 13744.3 & 16367.7 & 0.839716 & 1.01781 \tabularnewline
52 & 12792 & 12754.2 & 16545.7 & 0.770848 & 1.00296 \tabularnewline
53 & 10697 & 12216.4 & 16756 & 0.729078 & 0.875626 \tabularnewline
54 & 14257 & 13781.2 & 16967.2 & 0.812227 & 1.03452 \tabularnewline
55 & 17251 & NA & NA & 1.02336 & NA \tabularnewline
56 & 25795 & NA & NA & 1.55186 & NA \tabularnewline
57 & 29016 & NA & NA & 1.71061 & NA \tabularnewline
58 & 18968 & NA & NA & 1.05988 & NA \tabularnewline
59 & 16009 & NA & NA & 0.848277 & NA \tabularnewline
60 & 14511 & NA & NA & 0.707404 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]12347[/C][C]NA[/C][C]NA[/C][C]0.978199[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]12624[/C][C]NA[/C][C]NA[/C][C]0.968535[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]11918[/C][C]NA[/C][C]NA[/C][C]0.839716[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]10028[/C][C]NA[/C][C]NA[/C][C]0.770848[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]10228[/C][C]NA[/C][C]NA[/C][C]0.729078[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]11026[/C][C]NA[/C][C]NA[/C][C]0.812227[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]13878[/C][C]13890.2[/C][C]13573.1[/C][C]1.02336[/C][C]0.999124[/C][/ROW]
[ROW][C]8[/C][C]22165[/C][C]21086.1[/C][C]13587.6[/C][C]1.55186[/C][C]1.05117[/C][/ROW]
[ROW][C]9[/C][C]23533[/C][C]23229.5[/C][C]13579.7[/C][C]1.71061[/C][C]1.01307[/C][/ROW]
[ROW][C]10[/C][C]13445[/C][C]14337.6[/C][C]13527.5[/C][C]1.05988[/C][C]0.937743[/C][/ROW]
[ROW][C]11[/C][C]12164[/C][C]11450.8[/C][C]13498.8[/C][C]0.848277[/C][C]1.06229[/C][/ROW]
[ROW][C]12[/C][C]9606[/C][C]9534.63[/C][C]13478.3[/C][C]0.707404[/C][C]1.00749[/C][/ROW]
[ROW][C]13[/C][C]12177[/C][C]13158.2[/C][C]13451.5[/C][C]0.978199[/C][C]0.92543[/C][/ROW]
[ROW][C]14[/C][C]13142[/C][C]12997.7[/C][C]13420[/C][C]0.968535[/C][C]1.0111[/C][/ROW]
[ROW][C]15[/C][C]11210[/C][C]11206.6[/C][C]13345.7[/C][C]0.839716[/C][C]1.00031[/C][/ROW]
[ROW][C]16[/C][C]9485[/C][C]10284.7[/C][C]13342.1[/C][C]0.770848[/C][C]0.922242[/C][/ROW]
[ROW][C]17[/C][C]10082[/C][C]9736.54[/C][C]13354.6[/C][C]0.729078[/C][C]1.03548[/C][/ROW]
[ROW][C]18[/C][C]10680[/C][C]10767.4[/C][C]13256.6[/C][C]0.812227[/C][C]0.991887[/C][/ROW]
[ROW][C]19[/C][C]13579[/C][C]13532.5[/C][C]13223.5[/C][C]1.02336[/C][C]1.00344[/C][/ROW]
[ROW][C]20[/C][C]21709[/C][C]20527.7[/C][C]13227.8[/C][C]1.55186[/C][C]1.05755[/C][/ROW]
[ROW][C]21[/C][C]22205[/C][C]22581.6[/C][C]13200.9[/C][C]1.71061[/C][C]0.983324[/C][/ROW]
[ROW][C]22[/C][C]14687[/C][C]14027.2[/C][C]13234.7[/C][C]1.05988[/C][C]1.04704[/C][/ROW]
[ROW][C]23[/C][C]11222[/C][C]11287.6[/C][C]13306.5[/C][C]0.848277[/C][C]0.994191[/C][/ROW]
[ROW][C]24[/C][C]8196[/C][C]9438.8[/C][C]13342.9[/C][C]0.707404[/C][C]0.86833[/C][/ROW]
[ROW][C]25[/C][C]12794[/C][C]13104.3[/C][C]13396.3[/C][C]0.978199[/C][C]0.976322[/C][/ROW]
[ROW][C]26[/C][C]12627[/C][C]12994[/C][C]13416.2[/C][C]0.968535[/C][C]0.971754[/C][/ROW]
[ROW][C]27[/C][C]11080[/C][C]11299.4[/C][C]13456.2[/C][C]0.839716[/C][C]0.980584[/C][/ROW]
[ROW][C]28[/C][C]10425[/C][C]10431[/C][C]13531.8[/C][C]0.770848[/C][C]0.999426[/C][/ROW]
[ROW][C]29[/C][C]10865[/C][C]9882.9[/C][C]13555.3[/C][C]0.729078[/C][C]1.09937[/C][/ROW]
[ROW][C]30[/C][C]10771[/C][C]11088.6[/C][C]13652[/C][C]0.812227[/C][C]0.971362[/C][/ROW]
[ROW][C]31[/C][C]14771[/C][C]14144.8[/C][C]13821.9[/C][C]1.02336[/C][C]1.04427[/C][/ROW]
[ROW][C]32[/C][C]20993[/C][C]21710.1[/C][C]13989.7[/C][C]1.55186[/C][C]0.966968[/C][/ROW]
[ROW][C]33[/C][C]23882[/C][C]24146.1[/C][C]14115.5[/C][C]1.71061[/C][C]0.989064[/C][/ROW]
[ROW][C]34[/C][C]14825[/C][C]15093.5[/C][C]14240.7[/C][C]1.05988[/C][C]0.982208[/C][/ROW]
[ROW][C]35[/C][C]11648[/C][C]12141.4[/C][C]14313[/C][C]0.848277[/C][C]0.959363[/C][/ROW]
[ROW][C]36[/C][C]10091[/C][C]10166.5[/C][C]14371.6[/C][C]0.707404[/C][C]0.992572[/C][/ROW]
[ROW][C]37[/C][C]14976[/C][C]14122.6[/C][C]14437.3[/C][C]0.978199[/C][C]1.06043[/C][/ROW]
[ROW][C]38[/C][C]14472[/C][C]14024.2[/C][C]14479.8[/C][C]0.968535[/C][C]1.03193[/C][/ROW]
[ROW][C]39[/C][C]12254[/C][C]12292[/C][C]14638.3[/C][C]0.839716[/C][C]0.996905[/C][/ROW]
[ROW][C]40[/C][C]12257[/C][C]11444.8[/C][C]14847[/C][C]0.770848[/C][C]1.07097[/C][/ROW]
[ROW][C]41[/C][C]10767[/C][C]10929.6[/C][C]14991[/C][C]0.729078[/C][C]0.985122[/C][/ROW]
[ROW][C]42[/C][C]12275[/C][C]12301.7[/C][C]15145.6[/C][C]0.812227[/C][C]0.997831[/C][/ROW]
[ROW][C]43[/C][C]14845[/C][C]15646.6[/C][C]15289.4[/C][C]1.02336[/C][C]0.948769[/C][/ROW]
[ROW][C]44[/C][C]21939[/C][C]23848.8[/C][C]15367.8[/C][C]1.55186[/C][C]0.919921[/C][/ROW]
[ROW][C]45[/C][C]26740[/C][C]26471.4[/C][C]15474.9[/C][C]1.71061[/C][C]1.01015[/C][/ROW]
[ROW][C]46[/C][C]16974[/C][C]16501.8[/C][C]15569.5[/C][C]1.05988[/C][C]1.02861[/C][/ROW]
[ROW][C]47[/C][C]12956[/C][C]13223.7[/C][C]15588.8[/C][C]0.848277[/C][C]0.97976[/C][/ROW]
[ROW][C]48[/C][C]12494[/C][C]11084[/C][C]15668.5[/C][C]0.707404[/C][C]1.12721[/C][/ROW]
[ROW][C]49[/C][C]16024[/C][C]15505.8[/C][C]15851.3[/C][C]0.978199[/C][C]1.03342[/C][/ROW]
[ROW][C]50[/C][C]15306[/C][C]15605.3[/C][C]16112.2[/C][C]0.968535[/C][C]0.980822[/C][/ROW]
[ROW][C]51[/C][C]13989[/C][C]13744.3[/C][C]16367.7[/C][C]0.839716[/C][C]1.01781[/C][/ROW]
[ROW][C]52[/C][C]12792[/C][C]12754.2[/C][C]16545.7[/C][C]0.770848[/C][C]1.00296[/C][/ROW]
[ROW][C]53[/C][C]10697[/C][C]12216.4[/C][C]16756[/C][C]0.729078[/C][C]0.875626[/C][/ROW]
[ROW][C]54[/C][C]14257[/C][C]13781.2[/C][C]16967.2[/C][C]0.812227[/C][C]1.03452[/C][/ROW]
[ROW][C]55[/C][C]17251[/C][C]NA[/C][C]NA[/C][C]1.02336[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]25795[/C][C]NA[/C][C]NA[/C][C]1.55186[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]29016[/C][C]NA[/C][C]NA[/C][C]1.71061[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]18968[/C][C]NA[/C][C]NA[/C][C]1.05988[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]16009[/C][C]NA[/C][C]NA[/C][C]0.848277[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]14511[/C][C]NA[/C][C]NA[/C][C]0.707404[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
112347NANA0.978199NA
212624NANA0.968535NA
311918NANA0.839716NA
410028NANA0.770848NA
510228NANA0.729078NA
611026NANA0.812227NA
71387813890.213573.11.023360.999124
82216521086.113587.61.551861.05117
92353323229.513579.71.710611.01307
101344514337.613527.51.059880.937743
111216411450.813498.80.8482771.06229
1296069534.6313478.30.7074041.00749
131217713158.213451.50.9781990.92543
141314212997.7134200.9685351.0111
151121011206.613345.70.8397161.00031
16948510284.713342.10.7708480.922242
17100829736.5413354.60.7290781.03548
181068010767.413256.60.8122270.991887
191357913532.513223.51.023361.00344
202170920527.713227.81.551861.05755
212220522581.613200.91.710610.983324
221468714027.213234.71.059881.04704
231122211287.613306.50.8482770.994191
2481969438.813342.90.7074040.86833
251279413104.313396.30.9781990.976322
26126271299413416.20.9685350.971754
271108011299.413456.20.8397160.980584
28104251043113531.80.7708480.999426
29108659882.913555.30.7290781.09937
301077111088.6136520.8122270.971362
311477114144.813821.91.023361.04427
322099321710.113989.71.551860.966968
332388224146.114115.51.710610.989064
341482515093.514240.71.059880.982208
351164812141.4143130.8482770.959363
361009110166.514371.60.7074040.992572
371497614122.614437.30.9781991.06043
381447214024.214479.80.9685351.03193
39122541229214638.30.8397160.996905
401225711444.8148470.7708481.07097
411076710929.6149910.7290780.985122
421227512301.715145.60.8122270.997831
431484515646.615289.41.023360.948769
442193923848.815367.81.551860.919921
452674026471.415474.91.710611.01015
461697416501.815569.51.059881.02861
471295613223.715588.80.8482770.97976
48124941108415668.50.7074041.12721
491602415505.815851.30.9781991.03342
501530615605.316112.20.9685350.980822
511398913744.316367.70.8397161.01781
521279212754.216545.70.7708481.00296
531069712216.4167560.7290780.875626
541425713781.216967.20.8122271.03452
5517251NANA1.02336NA
5625795NANA1.55186NA
5729016NANA1.71061NA
5818968NANA1.05988NA
5916009NANA0.848277NA
6014511NANA0.707404NA



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