Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationWed, 21 May 2008 08:21:19 -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/21/t1211379725t653smyw9d58ehf.htm/, Retrieved Wed, 15 May 2024 08:16:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=12982, Retrieved Wed, 15 May 2024 08:16:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact212
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Variability] [Clélia Comes- opg...] [2008-05-09 16:38:39] [712952ff6dd47326e4d4669a276f9efc]
- RMPD    [Classical Decomposition] [Clélia Comes - ve...] [2008-05-21 14:21:19] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.48
1.57
1.58
1.58
1.58
1.58
1.59
1.6
1.6
1.61
1.61
1.61
1.62
1.63
1.63
1.64
1.64
1.64
1.64
1.64
1.65
1.65
1.65
1.65
1.65
1.66
1.66
1.67
1.68
1.68
1.68
1.68
1.69
1.7
1.7
1.71
1.72
1.73
1.74
1.74
1.75
1.75
1.75
1.76
1.79
1.83




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=12982&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=12982&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=12982&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'Gwilym Jenkins' @ 72.249.127.135







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.48NANA-0.00173611111111094NA
21.57NANA0.00451388888888871NA
31.58NANA0.000763888888889008NA
41.58NANA0.00701388888888888NA
51.58NANA0.00368055555555546NA
61.58NANA0.000347222222222054NA
71.591.585763888888891.58833333333333-0.002569444444444400.00423611111111133
81.61.591597222222221.59666666666667-0.005069444444444350.0084027777777782
91.61.603680555555561.601250.00243055555555549-0.00368055555555524
101.611.605763888888891.60583333333333-6.94444444444553e-050.00423611111111133
111.611.607847222222221.61083333333333-0.002986111111111130.00215277777777789
121.611.609513888888891.61583333333333-0.006319444444444320.000486111111110965
131.621.618680555555561.62041666666667-0.001736111111110940.00131944444444443
141.631.628680555555561.624166666666670.004513888888888710.00131944444444443
151.631.628680555555561.627916666666670.0007638888888890080.00131944444444443
161.641.638680555555561.631666666666670.007013888888888880.00131944444444443
171.641.638680555555561.6350.003680555555555460.00131944444444443
181.641.638680555555561.638333333333330.0003472222222220540.00131944444444443
191.641.638680555555561.64125-0.002569444444444400.00131944444444443
201.641.638680555555561.64375-0.005069444444444350.00131944444444443
211.651.648680555555561.646250.002430555555555490.00131944444444443
221.651.648680555555561.64875-6.94444444444553e-050.00131944444444443
231.651.648680555555561.65166666666667-0.002986111111111130.00131944444444443
241.651.648680555555561.655-0.006319444444444320.00131944444444443
251.651.656597222222221.65833333333333-0.00173611111111094-0.00659722222222237
261.661.666180555555561.661666666666670.00451388888888871-0.00618055555555519
271.661.665763888888891.6650.000763888888889008-0.0057638888888889
281.671.675763888888891.668750.00701388888888888-0.0057638888888889
291.681.676597222222221.672916666666670.003680555555555460.00340277777777787
301.681.677847222222221.67750.0003472222222220540.00215277777777789
311.681.680347222222221.68291666666667-0.00256944444444440-0.000347222222222054
321.681.683680555555561.68875-0.00506944444444435-0.00368055555555524
331.691.697430555555551.6950.00243055555555549-0.00743055555555494
341.71.701180555555561.70125-6.94444444444553e-05-0.00118055555555507
351.71.704097222222221.70708333333333-0.00298611111111113-0.00409722222222197
361.711.706597222222221.71291666666667-0.006319444444444320.00340277777777787
371.72NA1.71875NANA
381.73NA1.725NANA
391.74NA1.7325NANA
401.74NA1.74208333333333NANA
411.75NANANANA
421.75NANANANA
431.75NANANANA
441.76NANANANA
451.79NANANANA
461.83NANANANA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 1.48 & NA & NA & -0.00173611111111094 & NA \tabularnewline
2 & 1.57 & NA & NA & 0.00451388888888871 & NA \tabularnewline
3 & 1.58 & NA & NA & 0.000763888888889008 & NA \tabularnewline
4 & 1.58 & NA & NA & 0.00701388888888888 & NA \tabularnewline
5 & 1.58 & NA & NA & 0.00368055555555546 & NA \tabularnewline
6 & 1.58 & NA & NA & 0.000347222222222054 & NA \tabularnewline
7 & 1.59 & 1.58576388888889 & 1.58833333333333 & -0.00256944444444440 & 0.00423611111111133 \tabularnewline
8 & 1.6 & 1.59159722222222 & 1.59666666666667 & -0.00506944444444435 & 0.0084027777777782 \tabularnewline
9 & 1.6 & 1.60368055555556 & 1.60125 & 0.00243055555555549 & -0.00368055555555524 \tabularnewline
10 & 1.61 & 1.60576388888889 & 1.60583333333333 & -6.94444444444553e-05 & 0.00423611111111133 \tabularnewline
11 & 1.61 & 1.60784722222222 & 1.61083333333333 & -0.00298611111111113 & 0.00215277777777789 \tabularnewline
12 & 1.61 & 1.60951388888889 & 1.61583333333333 & -0.00631944444444432 & 0.000486111111110965 \tabularnewline
13 & 1.62 & 1.61868055555556 & 1.62041666666667 & -0.00173611111111094 & 0.00131944444444443 \tabularnewline
14 & 1.63 & 1.62868055555556 & 1.62416666666667 & 0.00451388888888871 & 0.00131944444444443 \tabularnewline
15 & 1.63 & 1.62868055555556 & 1.62791666666667 & 0.000763888888889008 & 0.00131944444444443 \tabularnewline
16 & 1.64 & 1.63868055555556 & 1.63166666666667 & 0.00701388888888888 & 0.00131944444444443 \tabularnewline
17 & 1.64 & 1.63868055555556 & 1.635 & 0.00368055555555546 & 0.00131944444444443 \tabularnewline
18 & 1.64 & 1.63868055555556 & 1.63833333333333 & 0.000347222222222054 & 0.00131944444444443 \tabularnewline
19 & 1.64 & 1.63868055555556 & 1.64125 & -0.00256944444444440 & 0.00131944444444443 \tabularnewline
20 & 1.64 & 1.63868055555556 & 1.64375 & -0.00506944444444435 & 0.00131944444444443 \tabularnewline
21 & 1.65 & 1.64868055555556 & 1.64625 & 0.00243055555555549 & 0.00131944444444443 \tabularnewline
22 & 1.65 & 1.64868055555556 & 1.64875 & -6.94444444444553e-05 & 0.00131944444444443 \tabularnewline
23 & 1.65 & 1.64868055555556 & 1.65166666666667 & -0.00298611111111113 & 0.00131944444444443 \tabularnewline
24 & 1.65 & 1.64868055555556 & 1.655 & -0.00631944444444432 & 0.00131944444444443 \tabularnewline
25 & 1.65 & 1.65659722222222 & 1.65833333333333 & -0.00173611111111094 & -0.00659722222222237 \tabularnewline
26 & 1.66 & 1.66618055555556 & 1.66166666666667 & 0.00451388888888871 & -0.00618055555555519 \tabularnewline
27 & 1.66 & 1.66576388888889 & 1.665 & 0.000763888888889008 & -0.0057638888888889 \tabularnewline
28 & 1.67 & 1.67576388888889 & 1.66875 & 0.00701388888888888 & -0.0057638888888889 \tabularnewline
29 & 1.68 & 1.67659722222222 & 1.67291666666667 & 0.00368055555555546 & 0.00340277777777787 \tabularnewline
30 & 1.68 & 1.67784722222222 & 1.6775 & 0.000347222222222054 & 0.00215277777777789 \tabularnewline
31 & 1.68 & 1.68034722222222 & 1.68291666666667 & -0.00256944444444440 & -0.000347222222222054 \tabularnewline
32 & 1.68 & 1.68368055555556 & 1.68875 & -0.00506944444444435 & -0.00368055555555524 \tabularnewline
33 & 1.69 & 1.69743055555555 & 1.695 & 0.00243055555555549 & -0.00743055555555494 \tabularnewline
34 & 1.7 & 1.70118055555556 & 1.70125 & -6.94444444444553e-05 & -0.00118055555555507 \tabularnewline
35 & 1.7 & 1.70409722222222 & 1.70708333333333 & -0.00298611111111113 & -0.00409722222222197 \tabularnewline
36 & 1.71 & 1.70659722222222 & 1.71291666666667 & -0.00631944444444432 & 0.00340277777777787 \tabularnewline
37 & 1.72 & NA & 1.71875 & NA & NA \tabularnewline
38 & 1.73 & NA & 1.725 & NA & NA \tabularnewline
39 & 1.74 & NA & 1.7325 & NA & NA \tabularnewline
40 & 1.74 & NA & 1.74208333333333 & NA & NA \tabularnewline
41 & 1.75 & NA & NA & NA & NA \tabularnewline
42 & 1.75 & NA & NA & NA & NA \tabularnewline
43 & 1.75 & NA & NA & NA & NA \tabularnewline
44 & 1.76 & NA & NA & NA & NA \tabularnewline
45 & 1.79 & NA & NA & NA & NA \tabularnewline
46 & 1.83 & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=12982&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]1.48[/C][C]NA[/C][C]NA[/C][C]-0.00173611111111094[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]1.57[/C][C]NA[/C][C]NA[/C][C]0.00451388888888871[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]1.58[/C][C]NA[/C][C]NA[/C][C]0.000763888888889008[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]1.58[/C][C]NA[/C][C]NA[/C][C]0.00701388888888888[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]1.58[/C][C]NA[/C][C]NA[/C][C]0.00368055555555546[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]1.58[/C][C]NA[/C][C]NA[/C][C]0.000347222222222054[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]1.59[/C][C]1.58576388888889[/C][C]1.58833333333333[/C][C]-0.00256944444444440[/C][C]0.00423611111111133[/C][/ROW]
[ROW][C]8[/C][C]1.6[/C][C]1.59159722222222[/C][C]1.59666666666667[/C][C]-0.00506944444444435[/C][C]0.0084027777777782[/C][/ROW]
[ROW][C]9[/C][C]1.6[/C][C]1.60368055555556[/C][C]1.60125[/C][C]0.00243055555555549[/C][C]-0.00368055555555524[/C][/ROW]
[ROW][C]10[/C][C]1.61[/C][C]1.60576388888889[/C][C]1.60583333333333[/C][C]-6.94444444444553e-05[/C][C]0.00423611111111133[/C][/ROW]
[ROW][C]11[/C][C]1.61[/C][C]1.60784722222222[/C][C]1.61083333333333[/C][C]-0.00298611111111113[/C][C]0.00215277777777789[/C][/ROW]
[ROW][C]12[/C][C]1.61[/C][C]1.60951388888889[/C][C]1.61583333333333[/C][C]-0.00631944444444432[/C][C]0.000486111111110965[/C][/ROW]
[ROW][C]13[/C][C]1.62[/C][C]1.61868055555556[/C][C]1.62041666666667[/C][C]-0.00173611111111094[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]14[/C][C]1.63[/C][C]1.62868055555556[/C][C]1.62416666666667[/C][C]0.00451388888888871[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]15[/C][C]1.63[/C][C]1.62868055555556[/C][C]1.62791666666667[/C][C]0.000763888888889008[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]16[/C][C]1.64[/C][C]1.63868055555556[/C][C]1.63166666666667[/C][C]0.00701388888888888[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]17[/C][C]1.64[/C][C]1.63868055555556[/C][C]1.635[/C][C]0.00368055555555546[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]18[/C][C]1.64[/C][C]1.63868055555556[/C][C]1.63833333333333[/C][C]0.000347222222222054[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]19[/C][C]1.64[/C][C]1.63868055555556[/C][C]1.64125[/C][C]-0.00256944444444440[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]20[/C][C]1.64[/C][C]1.63868055555556[/C][C]1.64375[/C][C]-0.00506944444444435[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]21[/C][C]1.65[/C][C]1.64868055555556[/C][C]1.64625[/C][C]0.00243055555555549[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]22[/C][C]1.65[/C][C]1.64868055555556[/C][C]1.64875[/C][C]-6.94444444444553e-05[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]23[/C][C]1.65[/C][C]1.64868055555556[/C][C]1.65166666666667[/C][C]-0.00298611111111113[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]24[/C][C]1.65[/C][C]1.64868055555556[/C][C]1.655[/C][C]-0.00631944444444432[/C][C]0.00131944444444443[/C][/ROW]
[ROW][C]25[/C][C]1.65[/C][C]1.65659722222222[/C][C]1.65833333333333[/C][C]-0.00173611111111094[/C][C]-0.00659722222222237[/C][/ROW]
[ROW][C]26[/C][C]1.66[/C][C]1.66618055555556[/C][C]1.66166666666667[/C][C]0.00451388888888871[/C][C]-0.00618055555555519[/C][/ROW]
[ROW][C]27[/C][C]1.66[/C][C]1.66576388888889[/C][C]1.665[/C][C]0.000763888888889008[/C][C]-0.0057638888888889[/C][/ROW]
[ROW][C]28[/C][C]1.67[/C][C]1.67576388888889[/C][C]1.66875[/C][C]0.00701388888888888[/C][C]-0.0057638888888889[/C][/ROW]
[ROW][C]29[/C][C]1.68[/C][C]1.67659722222222[/C][C]1.67291666666667[/C][C]0.00368055555555546[/C][C]0.00340277777777787[/C][/ROW]
[ROW][C]30[/C][C]1.68[/C][C]1.67784722222222[/C][C]1.6775[/C][C]0.000347222222222054[/C][C]0.00215277777777789[/C][/ROW]
[ROW][C]31[/C][C]1.68[/C][C]1.68034722222222[/C][C]1.68291666666667[/C][C]-0.00256944444444440[/C][C]-0.000347222222222054[/C][/ROW]
[ROW][C]32[/C][C]1.68[/C][C]1.68368055555556[/C][C]1.68875[/C][C]-0.00506944444444435[/C][C]-0.00368055555555524[/C][/ROW]
[ROW][C]33[/C][C]1.69[/C][C]1.69743055555555[/C][C]1.695[/C][C]0.00243055555555549[/C][C]-0.00743055555555494[/C][/ROW]
[ROW][C]34[/C][C]1.7[/C][C]1.70118055555556[/C][C]1.70125[/C][C]-6.94444444444553e-05[/C][C]-0.00118055555555507[/C][/ROW]
[ROW][C]35[/C][C]1.7[/C][C]1.70409722222222[/C][C]1.70708333333333[/C][C]-0.00298611111111113[/C][C]-0.00409722222222197[/C][/ROW]
[ROW][C]36[/C][C]1.71[/C][C]1.70659722222222[/C][C]1.71291666666667[/C][C]-0.00631944444444432[/C][C]0.00340277777777787[/C][/ROW]
[ROW][C]37[/C][C]1.72[/C][C]NA[/C][C]1.71875[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]38[/C][C]1.73[/C][C]NA[/C][C]1.725[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]39[/C][C]1.74[/C][C]NA[/C][C]1.7325[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]40[/C][C]1.74[/C][C]NA[/C][C]1.74208333333333[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]41[/C][C]1.75[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]42[/C][C]1.75[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]43[/C][C]1.75[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]44[/C][C]1.76[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]45[/C][C]1.79[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]46[/C][C]1.83[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=12982&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=12982&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
11.48NANA-0.00173611111111094NA
21.57NANA0.00451388888888871NA
31.58NANA0.000763888888889008NA
41.58NANA0.00701388888888888NA
51.58NANA0.00368055555555546NA
61.58NANA0.000347222222222054NA
71.591.585763888888891.58833333333333-0.002569444444444400.00423611111111133
81.61.591597222222221.59666666666667-0.005069444444444350.0084027777777782
91.61.603680555555561.601250.00243055555555549-0.00368055555555524
101.611.605763888888891.60583333333333-6.94444444444553e-050.00423611111111133
111.611.607847222222221.61083333333333-0.002986111111111130.00215277777777789
121.611.609513888888891.61583333333333-0.006319444444444320.000486111111110965
131.621.618680555555561.62041666666667-0.001736111111110940.00131944444444443
141.631.628680555555561.624166666666670.004513888888888710.00131944444444443
151.631.628680555555561.627916666666670.0007638888888890080.00131944444444443
161.641.638680555555561.631666666666670.007013888888888880.00131944444444443
171.641.638680555555561.6350.003680555555555460.00131944444444443
181.641.638680555555561.638333333333330.0003472222222220540.00131944444444443
191.641.638680555555561.64125-0.002569444444444400.00131944444444443
201.641.638680555555561.64375-0.005069444444444350.00131944444444443
211.651.648680555555561.646250.002430555555555490.00131944444444443
221.651.648680555555561.64875-6.94444444444553e-050.00131944444444443
231.651.648680555555561.65166666666667-0.002986111111111130.00131944444444443
241.651.648680555555561.655-0.006319444444444320.00131944444444443
251.651.656597222222221.65833333333333-0.00173611111111094-0.00659722222222237
261.661.666180555555561.661666666666670.00451388888888871-0.00618055555555519
271.661.665763888888891.6650.000763888888889008-0.0057638888888889
281.671.675763888888891.668750.00701388888888888-0.0057638888888889
291.681.676597222222221.672916666666670.003680555555555460.00340277777777787
301.681.677847222222221.67750.0003472222222220540.00215277777777789
311.681.680347222222221.68291666666667-0.00256944444444440-0.000347222222222054
321.681.683680555555561.68875-0.00506944444444435-0.00368055555555524
331.691.697430555555551.6950.00243055555555549-0.00743055555555494
341.71.701180555555561.70125-6.94444444444553e-05-0.00118055555555507
351.71.704097222222221.70708333333333-0.00298611111111113-0.00409722222222197
361.711.706597222222221.71291666666667-0.006319444444444320.00340277777777787
371.72NA1.71875NANA
381.73NA1.725NANA
391.74NA1.7325NANA
401.74NA1.74208333333333NANA
411.75NANANANA
421.75NANANANA
431.75NANANANA
441.76NANANANA
451.79NANANANA
461.83NANANANA



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