Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSat, 17 Dec 2016 20:01:36 +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/Dec/17/t14820049382svsofodth8210f.htm/, Retrieved Thu, 02 May 2024 09:07:38 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Thu, 02 May 2024 09:07:38 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
203089
198480
192684
187827
182414
182510
211524
211451
200140
191568
186424
191987
203583
201920
195978
191395
188222
189422
214419
224325
216222
210506
207221
210027
215191
215177
211701
210176
205491
206996
235980
241292
236675
229127
225436
229570
239973
236168
230703
224790
217811
219576
245472
248511
242084
235572
229827
229697
239567
237201
233164
227755
220189
221270
245413
247826
237736
230079
225939
228987




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.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 & 'Gwilym Jenkins' @ jenkins.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]'Gwilym Jenkins' @ jenkins.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'Gwilym Jenkins' @ jenkins.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1203089NANA5637.93NA
2198480NANA2944.01NA
3192684NANA-2556.52NA
4187827NANA-7706.8NA
5182414NANA-14120.3NA
6182510NANA-13529.6NA
721152420774619502912717.53777.75
821145121167319519316480.2-221.845
92001402035141954738040.67-3373.92
10191568195875195759116.085-4307.25
11186424190990196150-5159.57-4566.26
12191987193816196680-2863.56-1829.27
132035832027261970885637.93856.613
142019202006901977462944.011230.49
15195978196395198952-2556.52-417.481
16191395192704200411-7706.8-1309.37
17188222187946202067-14120.3275.53
18189422190155203685-13529.6-733.398
1921441921763820492012717.5-3218.84
2022432522243720595616480.21888.45
212162222152052071648040.671017.46
22210506208718208602116.0851788.37
23207221204944210104-5159.572276.95
24210027208692211555-2863.561335.14
252151912188242131865637.93-3632.97
262151772177352147912944.01-2558.39
27211701213794216351-2556.52-2093.02
28210176210272217979-7706.8-95.8247
29205491205393219513-14120.397.8628
30206996207557221087-13529.6-561.106
3123598023565122293412717.5328.915
3224129224132122484116480.2-28.9705
332366752345482265078040.672127.16
34229127228024227908116.0851103.08
35225436223871229030-5159.571565.49
36229570227204230068-2863.562365.98
372399732366252309875637.933347.82
382361682346282316842944.011540.45
39230703229653232210-2556.521049.81
40224790224997232704-7706.8-206.825
41217811219035233155-14120.3-1223.8
42219576219814233343-13529.6-237.773
4324547224604923333212717.5-577.252
4424851124983823335816480.2-1327.05
452420842415442335038040.67539.873
46235572233846233730116.0851726.37
47229827228793233952-5159.571034.4
48229697231258234122-2863.56-1561.27
492395672398282341905637.93-260.887
502372012371032341592944.0198.0295
51233164231393233949-2556.521771.27
52227755225832233539-7706.81922.59
53220189219028233148-14120.31160.99
54221270219427232957-13529.61842.85
55245413NANA12717.5NA
56247826NANA16480.2NA
57237736NANA8040.67NA
58230079NANA116.085NA
59225939NANA-5159.57NA
60228987NANA-2863.56NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 203089 & NA & NA & 5637.93 & NA \tabularnewline
2 & 198480 & NA & NA & 2944.01 & NA \tabularnewline
3 & 192684 & NA & NA & -2556.52 & NA \tabularnewline
4 & 187827 & NA & NA & -7706.8 & NA \tabularnewline
5 & 182414 & NA & NA & -14120.3 & NA \tabularnewline
6 & 182510 & NA & NA & -13529.6 & NA \tabularnewline
7 & 211524 & 207746 & 195029 & 12717.5 & 3777.75 \tabularnewline
8 & 211451 & 211673 & 195193 & 16480.2 & -221.845 \tabularnewline
9 & 200140 & 203514 & 195473 & 8040.67 & -3373.92 \tabularnewline
10 & 191568 & 195875 & 195759 & 116.085 & -4307.25 \tabularnewline
11 & 186424 & 190990 & 196150 & -5159.57 & -4566.26 \tabularnewline
12 & 191987 & 193816 & 196680 & -2863.56 & -1829.27 \tabularnewline
13 & 203583 & 202726 & 197088 & 5637.93 & 856.613 \tabularnewline
14 & 201920 & 200690 & 197746 & 2944.01 & 1230.49 \tabularnewline
15 & 195978 & 196395 & 198952 & -2556.52 & -417.481 \tabularnewline
16 & 191395 & 192704 & 200411 & -7706.8 & -1309.37 \tabularnewline
17 & 188222 & 187946 & 202067 & -14120.3 & 275.53 \tabularnewline
18 & 189422 & 190155 & 203685 & -13529.6 & -733.398 \tabularnewline
19 & 214419 & 217638 & 204920 & 12717.5 & -3218.84 \tabularnewline
20 & 224325 & 222437 & 205956 & 16480.2 & 1888.45 \tabularnewline
21 & 216222 & 215205 & 207164 & 8040.67 & 1017.46 \tabularnewline
22 & 210506 & 208718 & 208602 & 116.085 & 1788.37 \tabularnewline
23 & 207221 & 204944 & 210104 & -5159.57 & 2276.95 \tabularnewline
24 & 210027 & 208692 & 211555 & -2863.56 & 1335.14 \tabularnewline
25 & 215191 & 218824 & 213186 & 5637.93 & -3632.97 \tabularnewline
26 & 215177 & 217735 & 214791 & 2944.01 & -2558.39 \tabularnewline
27 & 211701 & 213794 & 216351 & -2556.52 & -2093.02 \tabularnewline
28 & 210176 & 210272 & 217979 & -7706.8 & -95.8247 \tabularnewline
29 & 205491 & 205393 & 219513 & -14120.3 & 97.8628 \tabularnewline
30 & 206996 & 207557 & 221087 & -13529.6 & -561.106 \tabularnewline
31 & 235980 & 235651 & 222934 & 12717.5 & 328.915 \tabularnewline
32 & 241292 & 241321 & 224841 & 16480.2 & -28.9705 \tabularnewline
33 & 236675 & 234548 & 226507 & 8040.67 & 2127.16 \tabularnewline
34 & 229127 & 228024 & 227908 & 116.085 & 1103.08 \tabularnewline
35 & 225436 & 223871 & 229030 & -5159.57 & 1565.49 \tabularnewline
36 & 229570 & 227204 & 230068 & -2863.56 & 2365.98 \tabularnewline
37 & 239973 & 236625 & 230987 & 5637.93 & 3347.82 \tabularnewline
38 & 236168 & 234628 & 231684 & 2944.01 & 1540.45 \tabularnewline
39 & 230703 & 229653 & 232210 & -2556.52 & 1049.81 \tabularnewline
40 & 224790 & 224997 & 232704 & -7706.8 & -206.825 \tabularnewline
41 & 217811 & 219035 & 233155 & -14120.3 & -1223.8 \tabularnewline
42 & 219576 & 219814 & 233343 & -13529.6 & -237.773 \tabularnewline
43 & 245472 & 246049 & 233332 & 12717.5 & -577.252 \tabularnewline
44 & 248511 & 249838 & 233358 & 16480.2 & -1327.05 \tabularnewline
45 & 242084 & 241544 & 233503 & 8040.67 & 539.873 \tabularnewline
46 & 235572 & 233846 & 233730 & 116.085 & 1726.37 \tabularnewline
47 & 229827 & 228793 & 233952 & -5159.57 & 1034.4 \tabularnewline
48 & 229697 & 231258 & 234122 & -2863.56 & -1561.27 \tabularnewline
49 & 239567 & 239828 & 234190 & 5637.93 & -260.887 \tabularnewline
50 & 237201 & 237103 & 234159 & 2944.01 & 98.0295 \tabularnewline
51 & 233164 & 231393 & 233949 & -2556.52 & 1771.27 \tabularnewline
52 & 227755 & 225832 & 233539 & -7706.8 & 1922.59 \tabularnewline
53 & 220189 & 219028 & 233148 & -14120.3 & 1160.99 \tabularnewline
54 & 221270 & 219427 & 232957 & -13529.6 & 1842.85 \tabularnewline
55 & 245413 & NA & NA & 12717.5 & NA \tabularnewline
56 & 247826 & NA & NA & 16480.2 & NA \tabularnewline
57 & 237736 & NA & NA & 8040.67 & NA \tabularnewline
58 & 230079 & NA & NA & 116.085 & NA \tabularnewline
59 & 225939 & NA & NA & -5159.57 & NA \tabularnewline
60 & 228987 & NA & NA & -2863.56 & 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]203089[/C][C]NA[/C][C]NA[/C][C]5637.93[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]198480[/C][C]NA[/C][C]NA[/C][C]2944.01[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]192684[/C][C]NA[/C][C]NA[/C][C]-2556.52[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]187827[/C][C]NA[/C][C]NA[/C][C]-7706.8[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]182414[/C][C]NA[/C][C]NA[/C][C]-14120.3[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]182510[/C][C]NA[/C][C]NA[/C][C]-13529.6[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]211524[/C][C]207746[/C][C]195029[/C][C]12717.5[/C][C]3777.75[/C][/ROW]
[ROW][C]8[/C][C]211451[/C][C]211673[/C][C]195193[/C][C]16480.2[/C][C]-221.845[/C][/ROW]
[ROW][C]9[/C][C]200140[/C][C]203514[/C][C]195473[/C][C]8040.67[/C][C]-3373.92[/C][/ROW]
[ROW][C]10[/C][C]191568[/C][C]195875[/C][C]195759[/C][C]116.085[/C][C]-4307.25[/C][/ROW]
[ROW][C]11[/C][C]186424[/C][C]190990[/C][C]196150[/C][C]-5159.57[/C][C]-4566.26[/C][/ROW]
[ROW][C]12[/C][C]191987[/C][C]193816[/C][C]196680[/C][C]-2863.56[/C][C]-1829.27[/C][/ROW]
[ROW][C]13[/C][C]203583[/C][C]202726[/C][C]197088[/C][C]5637.93[/C][C]856.613[/C][/ROW]
[ROW][C]14[/C][C]201920[/C][C]200690[/C][C]197746[/C][C]2944.01[/C][C]1230.49[/C][/ROW]
[ROW][C]15[/C][C]195978[/C][C]196395[/C][C]198952[/C][C]-2556.52[/C][C]-417.481[/C][/ROW]
[ROW][C]16[/C][C]191395[/C][C]192704[/C][C]200411[/C][C]-7706.8[/C][C]-1309.37[/C][/ROW]
[ROW][C]17[/C][C]188222[/C][C]187946[/C][C]202067[/C][C]-14120.3[/C][C]275.53[/C][/ROW]
[ROW][C]18[/C][C]189422[/C][C]190155[/C][C]203685[/C][C]-13529.6[/C][C]-733.398[/C][/ROW]
[ROW][C]19[/C][C]214419[/C][C]217638[/C][C]204920[/C][C]12717.5[/C][C]-3218.84[/C][/ROW]
[ROW][C]20[/C][C]224325[/C][C]222437[/C][C]205956[/C][C]16480.2[/C][C]1888.45[/C][/ROW]
[ROW][C]21[/C][C]216222[/C][C]215205[/C][C]207164[/C][C]8040.67[/C][C]1017.46[/C][/ROW]
[ROW][C]22[/C][C]210506[/C][C]208718[/C][C]208602[/C][C]116.085[/C][C]1788.37[/C][/ROW]
[ROW][C]23[/C][C]207221[/C][C]204944[/C][C]210104[/C][C]-5159.57[/C][C]2276.95[/C][/ROW]
[ROW][C]24[/C][C]210027[/C][C]208692[/C][C]211555[/C][C]-2863.56[/C][C]1335.14[/C][/ROW]
[ROW][C]25[/C][C]215191[/C][C]218824[/C][C]213186[/C][C]5637.93[/C][C]-3632.97[/C][/ROW]
[ROW][C]26[/C][C]215177[/C][C]217735[/C][C]214791[/C][C]2944.01[/C][C]-2558.39[/C][/ROW]
[ROW][C]27[/C][C]211701[/C][C]213794[/C][C]216351[/C][C]-2556.52[/C][C]-2093.02[/C][/ROW]
[ROW][C]28[/C][C]210176[/C][C]210272[/C][C]217979[/C][C]-7706.8[/C][C]-95.8247[/C][/ROW]
[ROW][C]29[/C][C]205491[/C][C]205393[/C][C]219513[/C][C]-14120.3[/C][C]97.8628[/C][/ROW]
[ROW][C]30[/C][C]206996[/C][C]207557[/C][C]221087[/C][C]-13529.6[/C][C]-561.106[/C][/ROW]
[ROW][C]31[/C][C]235980[/C][C]235651[/C][C]222934[/C][C]12717.5[/C][C]328.915[/C][/ROW]
[ROW][C]32[/C][C]241292[/C][C]241321[/C][C]224841[/C][C]16480.2[/C][C]-28.9705[/C][/ROW]
[ROW][C]33[/C][C]236675[/C][C]234548[/C][C]226507[/C][C]8040.67[/C][C]2127.16[/C][/ROW]
[ROW][C]34[/C][C]229127[/C][C]228024[/C][C]227908[/C][C]116.085[/C][C]1103.08[/C][/ROW]
[ROW][C]35[/C][C]225436[/C][C]223871[/C][C]229030[/C][C]-5159.57[/C][C]1565.49[/C][/ROW]
[ROW][C]36[/C][C]229570[/C][C]227204[/C][C]230068[/C][C]-2863.56[/C][C]2365.98[/C][/ROW]
[ROW][C]37[/C][C]239973[/C][C]236625[/C][C]230987[/C][C]5637.93[/C][C]3347.82[/C][/ROW]
[ROW][C]38[/C][C]236168[/C][C]234628[/C][C]231684[/C][C]2944.01[/C][C]1540.45[/C][/ROW]
[ROW][C]39[/C][C]230703[/C][C]229653[/C][C]232210[/C][C]-2556.52[/C][C]1049.81[/C][/ROW]
[ROW][C]40[/C][C]224790[/C][C]224997[/C][C]232704[/C][C]-7706.8[/C][C]-206.825[/C][/ROW]
[ROW][C]41[/C][C]217811[/C][C]219035[/C][C]233155[/C][C]-14120.3[/C][C]-1223.8[/C][/ROW]
[ROW][C]42[/C][C]219576[/C][C]219814[/C][C]233343[/C][C]-13529.6[/C][C]-237.773[/C][/ROW]
[ROW][C]43[/C][C]245472[/C][C]246049[/C][C]233332[/C][C]12717.5[/C][C]-577.252[/C][/ROW]
[ROW][C]44[/C][C]248511[/C][C]249838[/C][C]233358[/C][C]16480.2[/C][C]-1327.05[/C][/ROW]
[ROW][C]45[/C][C]242084[/C][C]241544[/C][C]233503[/C][C]8040.67[/C][C]539.873[/C][/ROW]
[ROW][C]46[/C][C]235572[/C][C]233846[/C][C]233730[/C][C]116.085[/C][C]1726.37[/C][/ROW]
[ROW][C]47[/C][C]229827[/C][C]228793[/C][C]233952[/C][C]-5159.57[/C][C]1034.4[/C][/ROW]
[ROW][C]48[/C][C]229697[/C][C]231258[/C][C]234122[/C][C]-2863.56[/C][C]-1561.27[/C][/ROW]
[ROW][C]49[/C][C]239567[/C][C]239828[/C][C]234190[/C][C]5637.93[/C][C]-260.887[/C][/ROW]
[ROW][C]50[/C][C]237201[/C][C]237103[/C][C]234159[/C][C]2944.01[/C][C]98.0295[/C][/ROW]
[ROW][C]51[/C][C]233164[/C][C]231393[/C][C]233949[/C][C]-2556.52[/C][C]1771.27[/C][/ROW]
[ROW][C]52[/C][C]227755[/C][C]225832[/C][C]233539[/C][C]-7706.8[/C][C]1922.59[/C][/ROW]
[ROW][C]53[/C][C]220189[/C][C]219028[/C][C]233148[/C][C]-14120.3[/C][C]1160.99[/C][/ROW]
[ROW][C]54[/C][C]221270[/C][C]219427[/C][C]232957[/C][C]-13529.6[/C][C]1842.85[/C][/ROW]
[ROW][C]55[/C][C]245413[/C][C]NA[/C][C]NA[/C][C]12717.5[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]247826[/C][C]NA[/C][C]NA[/C][C]16480.2[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]237736[/C][C]NA[/C][C]NA[/C][C]8040.67[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]230079[/C][C]NA[/C][C]NA[/C][C]116.085[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]225939[/C][C]NA[/C][C]NA[/C][C]-5159.57[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]228987[/C][C]NA[/C][C]NA[/C][C]-2863.56[/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
1203089NANA5637.93NA
2198480NANA2944.01NA
3192684NANA-2556.52NA
4187827NANA-7706.8NA
5182414NANA-14120.3NA
6182510NANA-13529.6NA
721152420774619502912717.53777.75
821145121167319519316480.2-221.845
92001402035141954738040.67-3373.92
10191568195875195759116.085-4307.25
11186424190990196150-5159.57-4566.26
12191987193816196680-2863.56-1829.27
132035832027261970885637.93856.613
142019202006901977462944.011230.49
15195978196395198952-2556.52-417.481
16191395192704200411-7706.8-1309.37
17188222187946202067-14120.3275.53
18189422190155203685-13529.6-733.398
1921441921763820492012717.5-3218.84
2022432522243720595616480.21888.45
212162222152052071648040.671017.46
22210506208718208602116.0851788.37
23207221204944210104-5159.572276.95
24210027208692211555-2863.561335.14
252151912188242131865637.93-3632.97
262151772177352147912944.01-2558.39
27211701213794216351-2556.52-2093.02
28210176210272217979-7706.8-95.8247
29205491205393219513-14120.397.8628
30206996207557221087-13529.6-561.106
3123598023565122293412717.5328.915
3224129224132122484116480.2-28.9705
332366752345482265078040.672127.16
34229127228024227908116.0851103.08
35225436223871229030-5159.571565.49
36229570227204230068-2863.562365.98
372399732366252309875637.933347.82
382361682346282316842944.011540.45
39230703229653232210-2556.521049.81
40224790224997232704-7706.8-206.825
41217811219035233155-14120.3-1223.8
42219576219814233343-13529.6-237.773
4324547224604923333212717.5-577.252
4424851124983823335816480.2-1327.05
452420842415442335038040.67539.873
46235572233846233730116.0851726.37
47229827228793233952-5159.571034.4
48229697231258234122-2863.56-1561.27
492395672398282341905637.93-260.887
502372012371032341592944.0198.0295
51233164231393233949-2556.521771.27
52227755225832233539-7706.81922.59
53220189219028233148-14120.31160.99
54221270219427232957-13529.61842.85
55245413NANA12717.5NA
56247826NANA16480.2NA
57237736NANA8040.67NA
58230079NANA116.085NA
59225939NANA-5159.57NA
60228987NANA-2863.56NA



Parameters (Session):
par1 = additive ; par2 = 12 ;
Parameters (R input):
par1 = additive ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '12'
par1 <- 'additive'
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')