Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 27 Nov 2016 16:23:46 +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/27/t1480263871036nnrg1o438h2b.htm/, Retrieved Mon, 29 Apr 2024 20:51:54 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Mon, 29 Apr 2024 20:51:54 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
203 089
198 480
192 684
187 827
182 414
182 510
211 524
211 451
200 140
191 568
186 424
191 987
203 583
201 920
195 978
191 395
188 222
189 422
214 419
224 325
216 222
210 506
207 221
210 027
215 191
215 177
211 701
210 176
205 491
206 996
235 980
241 292
236 675
229 127
225 436
229 570
239 973
236 168
230 703
224 790
217 811
219 576
245 472
248 511
242 084
235 572
229 827
229 697
239 567
237 201
233 164
227 755
220 189
221 270
245 413
247 826
237 736
230 079
225 939
228 987




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
1203089NANA1.02541NA
2198480NANA1.01317NA
3192684NANA0.987804NA
4187827NANA0.9645NA
5182414NANA0.93596NA
6182510NANA0.938674NA
72115242066721950291.05971.02348
82114512102161951931.076961.00588
92001402026381954731.036650.987673
101915681956821957590.9996050.978977
111864241912901961500.9752250.974561
121919871939931966800.9863390.98966
132035832020961970881.025411.00736
142019202003501977461.013171.00784
151959781965251989520.9878040.997214
161913951932972004110.96450.990163
171882221891262020670.935960.995218
181894221911942036850.9386740.990733
192144192171542049201.05970.987405
202243252218082059561.076961.01135
212162222147572071641.036651.00682
222105062085192086020.9996051.00953
232072212048982101040.9752251.01134
242100272086652115550.9863391.00653
252151912186022131861.025410.984396
262151772176212147911.013170.988771
272117012137122163510.9878040.990591
282101762102402179790.96450.999694
292054912054562195130.935961.00017
302069962075282210870.9386740.997435
312359802362432229341.05970.998888
322412922421452248411.076960.996475
332366752348092265071.036651.00795
342291272278182279080.9996051.00575
352254362233562290300.9752251.00931
362295702269252300680.9863391.01166
372399732368562309871.025411.01316
382361682347352316841.013171.0061
392307032293782322100.9878041.00578
402247902244432327040.96451.00155
412178112182242331550.935960.998108
422195762190332333430.9386741.00248
432454722472622333321.05970.992762
442485112513182333581.076960.988831
452420842420622335031.036651.00009
462355722336372337300.9996051.00828
472298272281562339520.9752251.00732
482296972309232341220.9863390.994689
492395672401402341901.025410.997615
502372012372432341591.013170.999822
512331642310962339490.9878041.00895
522277552252482335390.96451.01113
532201892182172331480.935961.00903
542212702186702329570.9386741.01189
55245413NANA1.0597NA
56247826NANA1.07696NA
57237736NANA1.03665NA
58230079NANA0.999605NA
59225939NANA0.975225NA
60228987NANA0.986339NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 203089 & NA & NA & 1.02541 & NA \tabularnewline
2 & 198480 & NA & NA & 1.01317 & NA \tabularnewline
3 & 192684 & NA & NA & 0.987804 & NA \tabularnewline
4 & 187827 & NA & NA & 0.9645 & NA \tabularnewline
5 & 182414 & NA & NA & 0.93596 & NA \tabularnewline
6 & 182510 & NA & NA & 0.938674 & NA \tabularnewline
7 & 211524 & 206672 & 195029 & 1.0597 & 1.02348 \tabularnewline
8 & 211451 & 210216 & 195193 & 1.07696 & 1.00588 \tabularnewline
9 & 200140 & 202638 & 195473 & 1.03665 & 0.987673 \tabularnewline
10 & 191568 & 195682 & 195759 & 0.999605 & 0.978977 \tabularnewline
11 & 186424 & 191290 & 196150 & 0.975225 & 0.974561 \tabularnewline
12 & 191987 & 193993 & 196680 & 0.986339 & 0.98966 \tabularnewline
13 & 203583 & 202096 & 197088 & 1.02541 & 1.00736 \tabularnewline
14 & 201920 & 200350 & 197746 & 1.01317 & 1.00784 \tabularnewline
15 & 195978 & 196525 & 198952 & 0.987804 & 0.997214 \tabularnewline
16 & 191395 & 193297 & 200411 & 0.9645 & 0.990163 \tabularnewline
17 & 188222 & 189126 & 202067 & 0.93596 & 0.995218 \tabularnewline
18 & 189422 & 191194 & 203685 & 0.938674 & 0.990733 \tabularnewline
19 & 214419 & 217154 & 204920 & 1.0597 & 0.987405 \tabularnewline
20 & 224325 & 221808 & 205956 & 1.07696 & 1.01135 \tabularnewline
21 & 216222 & 214757 & 207164 & 1.03665 & 1.00682 \tabularnewline
22 & 210506 & 208519 & 208602 & 0.999605 & 1.00953 \tabularnewline
23 & 207221 & 204898 & 210104 & 0.975225 & 1.01134 \tabularnewline
24 & 210027 & 208665 & 211555 & 0.986339 & 1.00653 \tabularnewline
25 & 215191 & 218602 & 213186 & 1.02541 & 0.984396 \tabularnewline
26 & 215177 & 217621 & 214791 & 1.01317 & 0.988771 \tabularnewline
27 & 211701 & 213712 & 216351 & 0.987804 & 0.990591 \tabularnewline
28 & 210176 & 210240 & 217979 & 0.9645 & 0.999694 \tabularnewline
29 & 205491 & 205456 & 219513 & 0.93596 & 1.00017 \tabularnewline
30 & 206996 & 207528 & 221087 & 0.938674 & 0.997435 \tabularnewline
31 & 235980 & 236243 & 222934 & 1.0597 & 0.998888 \tabularnewline
32 & 241292 & 242145 & 224841 & 1.07696 & 0.996475 \tabularnewline
33 & 236675 & 234809 & 226507 & 1.03665 & 1.00795 \tabularnewline
34 & 229127 & 227818 & 227908 & 0.999605 & 1.00575 \tabularnewline
35 & 225436 & 223356 & 229030 & 0.975225 & 1.00931 \tabularnewline
36 & 229570 & 226925 & 230068 & 0.986339 & 1.01166 \tabularnewline
37 & 239973 & 236856 & 230987 & 1.02541 & 1.01316 \tabularnewline
38 & 236168 & 234735 & 231684 & 1.01317 & 1.0061 \tabularnewline
39 & 230703 & 229378 & 232210 & 0.987804 & 1.00578 \tabularnewline
40 & 224790 & 224443 & 232704 & 0.9645 & 1.00155 \tabularnewline
41 & 217811 & 218224 & 233155 & 0.93596 & 0.998108 \tabularnewline
42 & 219576 & 219033 & 233343 & 0.938674 & 1.00248 \tabularnewline
43 & 245472 & 247262 & 233332 & 1.0597 & 0.992762 \tabularnewline
44 & 248511 & 251318 & 233358 & 1.07696 & 0.988831 \tabularnewline
45 & 242084 & 242062 & 233503 & 1.03665 & 1.00009 \tabularnewline
46 & 235572 & 233637 & 233730 & 0.999605 & 1.00828 \tabularnewline
47 & 229827 & 228156 & 233952 & 0.975225 & 1.00732 \tabularnewline
48 & 229697 & 230923 & 234122 & 0.986339 & 0.994689 \tabularnewline
49 & 239567 & 240140 & 234190 & 1.02541 & 0.997615 \tabularnewline
50 & 237201 & 237243 & 234159 & 1.01317 & 0.999822 \tabularnewline
51 & 233164 & 231096 & 233949 & 0.987804 & 1.00895 \tabularnewline
52 & 227755 & 225248 & 233539 & 0.9645 & 1.01113 \tabularnewline
53 & 220189 & 218217 & 233148 & 0.93596 & 1.00903 \tabularnewline
54 & 221270 & 218670 & 232957 & 0.938674 & 1.01189 \tabularnewline
55 & 245413 & NA & NA & 1.0597 & NA \tabularnewline
56 & 247826 & NA & NA & 1.07696 & NA \tabularnewline
57 & 237736 & NA & NA & 1.03665 & NA \tabularnewline
58 & 230079 & NA & NA & 0.999605 & NA \tabularnewline
59 & 225939 & NA & NA & 0.975225 & NA \tabularnewline
60 & 228987 & NA & NA & 0.986339 & 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]1.02541[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]198480[/C][C]NA[/C][C]NA[/C][C]1.01317[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]192684[/C][C]NA[/C][C]NA[/C][C]0.987804[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]187827[/C][C]NA[/C][C]NA[/C][C]0.9645[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]182414[/C][C]NA[/C][C]NA[/C][C]0.93596[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]182510[/C][C]NA[/C][C]NA[/C][C]0.938674[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]211524[/C][C]206672[/C][C]195029[/C][C]1.0597[/C][C]1.02348[/C][/ROW]
[ROW][C]8[/C][C]211451[/C][C]210216[/C][C]195193[/C][C]1.07696[/C][C]1.00588[/C][/ROW]
[ROW][C]9[/C][C]200140[/C][C]202638[/C][C]195473[/C][C]1.03665[/C][C]0.987673[/C][/ROW]
[ROW][C]10[/C][C]191568[/C][C]195682[/C][C]195759[/C][C]0.999605[/C][C]0.978977[/C][/ROW]
[ROW][C]11[/C][C]186424[/C][C]191290[/C][C]196150[/C][C]0.975225[/C][C]0.974561[/C][/ROW]
[ROW][C]12[/C][C]191987[/C][C]193993[/C][C]196680[/C][C]0.986339[/C][C]0.98966[/C][/ROW]
[ROW][C]13[/C][C]203583[/C][C]202096[/C][C]197088[/C][C]1.02541[/C][C]1.00736[/C][/ROW]
[ROW][C]14[/C][C]201920[/C][C]200350[/C][C]197746[/C][C]1.01317[/C][C]1.00784[/C][/ROW]
[ROW][C]15[/C][C]195978[/C][C]196525[/C][C]198952[/C][C]0.987804[/C][C]0.997214[/C][/ROW]
[ROW][C]16[/C][C]191395[/C][C]193297[/C][C]200411[/C][C]0.9645[/C][C]0.990163[/C][/ROW]
[ROW][C]17[/C][C]188222[/C][C]189126[/C][C]202067[/C][C]0.93596[/C][C]0.995218[/C][/ROW]
[ROW][C]18[/C][C]189422[/C][C]191194[/C][C]203685[/C][C]0.938674[/C][C]0.990733[/C][/ROW]
[ROW][C]19[/C][C]214419[/C][C]217154[/C][C]204920[/C][C]1.0597[/C][C]0.987405[/C][/ROW]
[ROW][C]20[/C][C]224325[/C][C]221808[/C][C]205956[/C][C]1.07696[/C][C]1.01135[/C][/ROW]
[ROW][C]21[/C][C]216222[/C][C]214757[/C][C]207164[/C][C]1.03665[/C][C]1.00682[/C][/ROW]
[ROW][C]22[/C][C]210506[/C][C]208519[/C][C]208602[/C][C]0.999605[/C][C]1.00953[/C][/ROW]
[ROW][C]23[/C][C]207221[/C][C]204898[/C][C]210104[/C][C]0.975225[/C][C]1.01134[/C][/ROW]
[ROW][C]24[/C][C]210027[/C][C]208665[/C][C]211555[/C][C]0.986339[/C][C]1.00653[/C][/ROW]
[ROW][C]25[/C][C]215191[/C][C]218602[/C][C]213186[/C][C]1.02541[/C][C]0.984396[/C][/ROW]
[ROW][C]26[/C][C]215177[/C][C]217621[/C][C]214791[/C][C]1.01317[/C][C]0.988771[/C][/ROW]
[ROW][C]27[/C][C]211701[/C][C]213712[/C][C]216351[/C][C]0.987804[/C][C]0.990591[/C][/ROW]
[ROW][C]28[/C][C]210176[/C][C]210240[/C][C]217979[/C][C]0.9645[/C][C]0.999694[/C][/ROW]
[ROW][C]29[/C][C]205491[/C][C]205456[/C][C]219513[/C][C]0.93596[/C][C]1.00017[/C][/ROW]
[ROW][C]30[/C][C]206996[/C][C]207528[/C][C]221087[/C][C]0.938674[/C][C]0.997435[/C][/ROW]
[ROW][C]31[/C][C]235980[/C][C]236243[/C][C]222934[/C][C]1.0597[/C][C]0.998888[/C][/ROW]
[ROW][C]32[/C][C]241292[/C][C]242145[/C][C]224841[/C][C]1.07696[/C][C]0.996475[/C][/ROW]
[ROW][C]33[/C][C]236675[/C][C]234809[/C][C]226507[/C][C]1.03665[/C][C]1.00795[/C][/ROW]
[ROW][C]34[/C][C]229127[/C][C]227818[/C][C]227908[/C][C]0.999605[/C][C]1.00575[/C][/ROW]
[ROW][C]35[/C][C]225436[/C][C]223356[/C][C]229030[/C][C]0.975225[/C][C]1.00931[/C][/ROW]
[ROW][C]36[/C][C]229570[/C][C]226925[/C][C]230068[/C][C]0.986339[/C][C]1.01166[/C][/ROW]
[ROW][C]37[/C][C]239973[/C][C]236856[/C][C]230987[/C][C]1.02541[/C][C]1.01316[/C][/ROW]
[ROW][C]38[/C][C]236168[/C][C]234735[/C][C]231684[/C][C]1.01317[/C][C]1.0061[/C][/ROW]
[ROW][C]39[/C][C]230703[/C][C]229378[/C][C]232210[/C][C]0.987804[/C][C]1.00578[/C][/ROW]
[ROW][C]40[/C][C]224790[/C][C]224443[/C][C]232704[/C][C]0.9645[/C][C]1.00155[/C][/ROW]
[ROW][C]41[/C][C]217811[/C][C]218224[/C][C]233155[/C][C]0.93596[/C][C]0.998108[/C][/ROW]
[ROW][C]42[/C][C]219576[/C][C]219033[/C][C]233343[/C][C]0.938674[/C][C]1.00248[/C][/ROW]
[ROW][C]43[/C][C]245472[/C][C]247262[/C][C]233332[/C][C]1.0597[/C][C]0.992762[/C][/ROW]
[ROW][C]44[/C][C]248511[/C][C]251318[/C][C]233358[/C][C]1.07696[/C][C]0.988831[/C][/ROW]
[ROW][C]45[/C][C]242084[/C][C]242062[/C][C]233503[/C][C]1.03665[/C][C]1.00009[/C][/ROW]
[ROW][C]46[/C][C]235572[/C][C]233637[/C][C]233730[/C][C]0.999605[/C][C]1.00828[/C][/ROW]
[ROW][C]47[/C][C]229827[/C][C]228156[/C][C]233952[/C][C]0.975225[/C][C]1.00732[/C][/ROW]
[ROW][C]48[/C][C]229697[/C][C]230923[/C][C]234122[/C][C]0.986339[/C][C]0.994689[/C][/ROW]
[ROW][C]49[/C][C]239567[/C][C]240140[/C][C]234190[/C][C]1.02541[/C][C]0.997615[/C][/ROW]
[ROW][C]50[/C][C]237201[/C][C]237243[/C][C]234159[/C][C]1.01317[/C][C]0.999822[/C][/ROW]
[ROW][C]51[/C][C]233164[/C][C]231096[/C][C]233949[/C][C]0.987804[/C][C]1.00895[/C][/ROW]
[ROW][C]52[/C][C]227755[/C][C]225248[/C][C]233539[/C][C]0.9645[/C][C]1.01113[/C][/ROW]
[ROW][C]53[/C][C]220189[/C][C]218217[/C][C]233148[/C][C]0.93596[/C][C]1.00903[/C][/ROW]
[ROW][C]54[/C][C]221270[/C][C]218670[/C][C]232957[/C][C]0.938674[/C][C]1.01189[/C][/ROW]
[ROW][C]55[/C][C]245413[/C][C]NA[/C][C]NA[/C][C]1.0597[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]247826[/C][C]NA[/C][C]NA[/C][C]1.07696[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]237736[/C][C]NA[/C][C]NA[/C][C]1.03665[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]230079[/C][C]NA[/C][C]NA[/C][C]0.999605[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]225939[/C][C]NA[/C][C]NA[/C][C]0.975225[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]228987[/C][C]NA[/C][C]NA[/C][C]0.986339[/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
1203089NANA1.02541NA
2198480NANA1.01317NA
3192684NANA0.987804NA
4187827NANA0.9645NA
5182414NANA0.93596NA
6182510NANA0.938674NA
72115242066721950291.05971.02348
82114512102161951931.076961.00588
92001402026381954731.036650.987673
101915681956821957590.9996050.978977
111864241912901961500.9752250.974561
121919871939931966800.9863390.98966
132035832020961970881.025411.00736
142019202003501977461.013171.00784
151959781965251989520.9878040.997214
161913951932972004110.96450.990163
171882221891262020670.935960.995218
181894221911942036850.9386740.990733
192144192171542049201.05970.987405
202243252218082059561.076961.01135
212162222147572071641.036651.00682
222105062085192086020.9996051.00953
232072212048982101040.9752251.01134
242100272086652115550.9863391.00653
252151912186022131861.025410.984396
262151772176212147911.013170.988771
272117012137122163510.9878040.990591
282101762102402179790.96450.999694
292054912054562195130.935961.00017
302069962075282210870.9386740.997435
312359802362432229341.05970.998888
322412922421452248411.076960.996475
332366752348092265071.036651.00795
342291272278182279080.9996051.00575
352254362233562290300.9752251.00931
362295702269252300680.9863391.01166
372399732368562309871.025411.01316
382361682347352316841.013171.0061
392307032293782322100.9878041.00578
402247902244432327040.96451.00155
412178112182242331550.935960.998108
422195762190332333430.9386741.00248
432454722472622333321.05970.992762
442485112513182333581.076960.988831
452420842420622335031.036651.00009
462355722336372337300.9996051.00828
472298272281562339520.9752251.00732
482296972309232341220.9863390.994689
492395672401402341901.025410.997615
502372012372432341591.013170.999822
512331642310962339490.9878041.00895
522277552252482335390.96451.01113
532201892182172331480.935961.00903
542212702186702329570.9386741.01189
55245413NANA1.0597NA
56247826NANA1.07696NA
57237736NANA1.03665NA
58230079NANA0.999605NA
59225939NANA0.975225NA
60228987NANA0.986339NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; 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')