Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationWed, 21 Dec 2016 14:12:22 +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/Dec/21/t1482326094g0u2kule6bg79cx.htm/, Retrieved Tue, 07 May 2024 01:27:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302262, Retrieved Tue, 07 May 2024 01:27:13 +0000
QR Codes:

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

Post a new message
Dataseries X:
5133
5155
5174
5201
5221
5205
5235
5255
5272
5299
5318
5340
5385
5430
5454
5493
5536
5565
5586
5594
5576
5544
5530
5536
5544
5564
5596
5596
5599
5591
5566
5532
5498
5484
5442
5447
5490
5544
5583
5628
5679
5691
5707
5724
5726
5745
5767
5789
5785
5785
5806
5827
5856
5896
5914
5938




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302262&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302262&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302262&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
15133NANA-30.353NA
25155NANA-14.7905NA
35174NANA8.56019NA
45201NANA24.0602NA
55221NANA43.963NA
65205NANA42.4907NA
752355267.475244.522.9699-32.4699
852555278.825266.4612.3657-23.8241
952725280.555289.58-9.03009-8.55324
1052995291.285313.42-22.13437.71759
1153185299.695338.71-39.019718.3113
1253405327.755366.83-39.082212.2488
1353855366.115396.46-30.35318.8947
1454305410.425425.21-14.790519.5822
1554545460.5654528.56019-6.56019
1654935498.945474.8824.0602-5.93519
1755365537.885493.9243.963-1.87963
1855655553.415510.9242.490711.5926
1955865548.685525.7122.969937.3218
2055945550.285537.9212.365743.7176
2155765540.395549.42-9.0300935.6134
2255445537.495559.62-22.13436.50926
2355305527.525566.54-39.01972.47801
2455365531.175570.25-39.08224.83218
2555445540.155570.5-30.3533.85301
2655645552.295567.08-14.790511.7072
2755965569.815561.258.5601926.1898
2855965579.565555.524.060216.4398
2955995593.35549.3343.9635.7037
3055915584.455541.9642.49076.55093
3155665558.97553622.96997.03009
3255325545.285532.9212.3657-13.2824
3354985522.515531.54-9.03009-24.5116
3454845510.25532.33-22.1343-26.1991
3554425497.985537-39.0197-55.9803
3654475505.425544.5-39.0822-58.4178
3754905524.195554.54-30.353-34.1887
3855445553.635568.42-14.7905-9.62616
3955835594.485585.928.56019-11.4769
4056285630.355606.2924.0602-2.35185
4156795674.675630.7143.9634.3287
4256915700.995658.542.4907-9.99074
4357075708.015685.0422.9699-1.01157
4457245719.745707.3812.36574.25926
4557265717.685726.71-9.030098.32176
4657455722.165744.29-22.134322.8426
4757675720.945759.96-39.019746.0613
4857895736.795775.88-39.082252.2072
4957855762.695793.04-30.35322.3113
5057855795.795810.58-14.7905-10.7928
515806NANA8.56019NA
525827NANA24.0602NA
535856NANA43.963NA
545896NANA42.4907NA
555914NANA22.9699NA
565938NANA12.3657NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 5133 & NA & NA & -30.353 & NA \tabularnewline
2 & 5155 & NA & NA & -14.7905 & NA \tabularnewline
3 & 5174 & NA & NA & 8.56019 & NA \tabularnewline
4 & 5201 & NA & NA & 24.0602 & NA \tabularnewline
5 & 5221 & NA & NA & 43.963 & NA \tabularnewline
6 & 5205 & NA & NA & 42.4907 & NA \tabularnewline
7 & 5235 & 5267.47 & 5244.5 & 22.9699 & -32.4699 \tabularnewline
8 & 5255 & 5278.82 & 5266.46 & 12.3657 & -23.8241 \tabularnewline
9 & 5272 & 5280.55 & 5289.58 & -9.03009 & -8.55324 \tabularnewline
10 & 5299 & 5291.28 & 5313.42 & -22.1343 & 7.71759 \tabularnewline
11 & 5318 & 5299.69 & 5338.71 & -39.0197 & 18.3113 \tabularnewline
12 & 5340 & 5327.75 & 5366.83 & -39.0822 & 12.2488 \tabularnewline
13 & 5385 & 5366.11 & 5396.46 & -30.353 & 18.8947 \tabularnewline
14 & 5430 & 5410.42 & 5425.21 & -14.7905 & 19.5822 \tabularnewline
15 & 5454 & 5460.56 & 5452 & 8.56019 & -6.56019 \tabularnewline
16 & 5493 & 5498.94 & 5474.88 & 24.0602 & -5.93519 \tabularnewline
17 & 5536 & 5537.88 & 5493.92 & 43.963 & -1.87963 \tabularnewline
18 & 5565 & 5553.41 & 5510.92 & 42.4907 & 11.5926 \tabularnewline
19 & 5586 & 5548.68 & 5525.71 & 22.9699 & 37.3218 \tabularnewline
20 & 5594 & 5550.28 & 5537.92 & 12.3657 & 43.7176 \tabularnewline
21 & 5576 & 5540.39 & 5549.42 & -9.03009 & 35.6134 \tabularnewline
22 & 5544 & 5537.49 & 5559.62 & -22.1343 & 6.50926 \tabularnewline
23 & 5530 & 5527.52 & 5566.54 & -39.0197 & 2.47801 \tabularnewline
24 & 5536 & 5531.17 & 5570.25 & -39.0822 & 4.83218 \tabularnewline
25 & 5544 & 5540.15 & 5570.5 & -30.353 & 3.85301 \tabularnewline
26 & 5564 & 5552.29 & 5567.08 & -14.7905 & 11.7072 \tabularnewline
27 & 5596 & 5569.81 & 5561.25 & 8.56019 & 26.1898 \tabularnewline
28 & 5596 & 5579.56 & 5555.5 & 24.0602 & 16.4398 \tabularnewline
29 & 5599 & 5593.3 & 5549.33 & 43.963 & 5.7037 \tabularnewline
30 & 5591 & 5584.45 & 5541.96 & 42.4907 & 6.55093 \tabularnewline
31 & 5566 & 5558.97 & 5536 & 22.9699 & 7.03009 \tabularnewline
32 & 5532 & 5545.28 & 5532.92 & 12.3657 & -13.2824 \tabularnewline
33 & 5498 & 5522.51 & 5531.54 & -9.03009 & -24.5116 \tabularnewline
34 & 5484 & 5510.2 & 5532.33 & -22.1343 & -26.1991 \tabularnewline
35 & 5442 & 5497.98 & 5537 & -39.0197 & -55.9803 \tabularnewline
36 & 5447 & 5505.42 & 5544.5 & -39.0822 & -58.4178 \tabularnewline
37 & 5490 & 5524.19 & 5554.54 & -30.353 & -34.1887 \tabularnewline
38 & 5544 & 5553.63 & 5568.42 & -14.7905 & -9.62616 \tabularnewline
39 & 5583 & 5594.48 & 5585.92 & 8.56019 & -11.4769 \tabularnewline
40 & 5628 & 5630.35 & 5606.29 & 24.0602 & -2.35185 \tabularnewline
41 & 5679 & 5674.67 & 5630.71 & 43.963 & 4.3287 \tabularnewline
42 & 5691 & 5700.99 & 5658.5 & 42.4907 & -9.99074 \tabularnewline
43 & 5707 & 5708.01 & 5685.04 & 22.9699 & -1.01157 \tabularnewline
44 & 5724 & 5719.74 & 5707.38 & 12.3657 & 4.25926 \tabularnewline
45 & 5726 & 5717.68 & 5726.71 & -9.03009 & 8.32176 \tabularnewline
46 & 5745 & 5722.16 & 5744.29 & -22.1343 & 22.8426 \tabularnewline
47 & 5767 & 5720.94 & 5759.96 & -39.0197 & 46.0613 \tabularnewline
48 & 5789 & 5736.79 & 5775.88 & -39.0822 & 52.2072 \tabularnewline
49 & 5785 & 5762.69 & 5793.04 & -30.353 & 22.3113 \tabularnewline
50 & 5785 & 5795.79 & 5810.58 & -14.7905 & -10.7928 \tabularnewline
51 & 5806 & NA & NA & 8.56019 & NA \tabularnewline
52 & 5827 & NA & NA & 24.0602 & NA \tabularnewline
53 & 5856 & NA & NA & 43.963 & NA \tabularnewline
54 & 5896 & NA & NA & 42.4907 & NA \tabularnewline
55 & 5914 & NA & NA & 22.9699 & NA \tabularnewline
56 & 5938 & NA & NA & 12.3657 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302262&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]5133[/C][C]NA[/C][C]NA[/C][C]-30.353[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]5155[/C][C]NA[/C][C]NA[/C][C]-14.7905[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]5174[/C][C]NA[/C][C]NA[/C][C]8.56019[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]5201[/C][C]NA[/C][C]NA[/C][C]24.0602[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]5221[/C][C]NA[/C][C]NA[/C][C]43.963[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]5205[/C][C]NA[/C][C]NA[/C][C]42.4907[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]5235[/C][C]5267.47[/C][C]5244.5[/C][C]22.9699[/C][C]-32.4699[/C][/ROW]
[ROW][C]8[/C][C]5255[/C][C]5278.82[/C][C]5266.46[/C][C]12.3657[/C][C]-23.8241[/C][/ROW]
[ROW][C]9[/C][C]5272[/C][C]5280.55[/C][C]5289.58[/C][C]-9.03009[/C][C]-8.55324[/C][/ROW]
[ROW][C]10[/C][C]5299[/C][C]5291.28[/C][C]5313.42[/C][C]-22.1343[/C][C]7.71759[/C][/ROW]
[ROW][C]11[/C][C]5318[/C][C]5299.69[/C][C]5338.71[/C][C]-39.0197[/C][C]18.3113[/C][/ROW]
[ROW][C]12[/C][C]5340[/C][C]5327.75[/C][C]5366.83[/C][C]-39.0822[/C][C]12.2488[/C][/ROW]
[ROW][C]13[/C][C]5385[/C][C]5366.11[/C][C]5396.46[/C][C]-30.353[/C][C]18.8947[/C][/ROW]
[ROW][C]14[/C][C]5430[/C][C]5410.42[/C][C]5425.21[/C][C]-14.7905[/C][C]19.5822[/C][/ROW]
[ROW][C]15[/C][C]5454[/C][C]5460.56[/C][C]5452[/C][C]8.56019[/C][C]-6.56019[/C][/ROW]
[ROW][C]16[/C][C]5493[/C][C]5498.94[/C][C]5474.88[/C][C]24.0602[/C][C]-5.93519[/C][/ROW]
[ROW][C]17[/C][C]5536[/C][C]5537.88[/C][C]5493.92[/C][C]43.963[/C][C]-1.87963[/C][/ROW]
[ROW][C]18[/C][C]5565[/C][C]5553.41[/C][C]5510.92[/C][C]42.4907[/C][C]11.5926[/C][/ROW]
[ROW][C]19[/C][C]5586[/C][C]5548.68[/C][C]5525.71[/C][C]22.9699[/C][C]37.3218[/C][/ROW]
[ROW][C]20[/C][C]5594[/C][C]5550.28[/C][C]5537.92[/C][C]12.3657[/C][C]43.7176[/C][/ROW]
[ROW][C]21[/C][C]5576[/C][C]5540.39[/C][C]5549.42[/C][C]-9.03009[/C][C]35.6134[/C][/ROW]
[ROW][C]22[/C][C]5544[/C][C]5537.49[/C][C]5559.62[/C][C]-22.1343[/C][C]6.50926[/C][/ROW]
[ROW][C]23[/C][C]5530[/C][C]5527.52[/C][C]5566.54[/C][C]-39.0197[/C][C]2.47801[/C][/ROW]
[ROW][C]24[/C][C]5536[/C][C]5531.17[/C][C]5570.25[/C][C]-39.0822[/C][C]4.83218[/C][/ROW]
[ROW][C]25[/C][C]5544[/C][C]5540.15[/C][C]5570.5[/C][C]-30.353[/C][C]3.85301[/C][/ROW]
[ROW][C]26[/C][C]5564[/C][C]5552.29[/C][C]5567.08[/C][C]-14.7905[/C][C]11.7072[/C][/ROW]
[ROW][C]27[/C][C]5596[/C][C]5569.81[/C][C]5561.25[/C][C]8.56019[/C][C]26.1898[/C][/ROW]
[ROW][C]28[/C][C]5596[/C][C]5579.56[/C][C]5555.5[/C][C]24.0602[/C][C]16.4398[/C][/ROW]
[ROW][C]29[/C][C]5599[/C][C]5593.3[/C][C]5549.33[/C][C]43.963[/C][C]5.7037[/C][/ROW]
[ROW][C]30[/C][C]5591[/C][C]5584.45[/C][C]5541.96[/C][C]42.4907[/C][C]6.55093[/C][/ROW]
[ROW][C]31[/C][C]5566[/C][C]5558.97[/C][C]5536[/C][C]22.9699[/C][C]7.03009[/C][/ROW]
[ROW][C]32[/C][C]5532[/C][C]5545.28[/C][C]5532.92[/C][C]12.3657[/C][C]-13.2824[/C][/ROW]
[ROW][C]33[/C][C]5498[/C][C]5522.51[/C][C]5531.54[/C][C]-9.03009[/C][C]-24.5116[/C][/ROW]
[ROW][C]34[/C][C]5484[/C][C]5510.2[/C][C]5532.33[/C][C]-22.1343[/C][C]-26.1991[/C][/ROW]
[ROW][C]35[/C][C]5442[/C][C]5497.98[/C][C]5537[/C][C]-39.0197[/C][C]-55.9803[/C][/ROW]
[ROW][C]36[/C][C]5447[/C][C]5505.42[/C][C]5544.5[/C][C]-39.0822[/C][C]-58.4178[/C][/ROW]
[ROW][C]37[/C][C]5490[/C][C]5524.19[/C][C]5554.54[/C][C]-30.353[/C][C]-34.1887[/C][/ROW]
[ROW][C]38[/C][C]5544[/C][C]5553.63[/C][C]5568.42[/C][C]-14.7905[/C][C]-9.62616[/C][/ROW]
[ROW][C]39[/C][C]5583[/C][C]5594.48[/C][C]5585.92[/C][C]8.56019[/C][C]-11.4769[/C][/ROW]
[ROW][C]40[/C][C]5628[/C][C]5630.35[/C][C]5606.29[/C][C]24.0602[/C][C]-2.35185[/C][/ROW]
[ROW][C]41[/C][C]5679[/C][C]5674.67[/C][C]5630.71[/C][C]43.963[/C][C]4.3287[/C][/ROW]
[ROW][C]42[/C][C]5691[/C][C]5700.99[/C][C]5658.5[/C][C]42.4907[/C][C]-9.99074[/C][/ROW]
[ROW][C]43[/C][C]5707[/C][C]5708.01[/C][C]5685.04[/C][C]22.9699[/C][C]-1.01157[/C][/ROW]
[ROW][C]44[/C][C]5724[/C][C]5719.74[/C][C]5707.38[/C][C]12.3657[/C][C]4.25926[/C][/ROW]
[ROW][C]45[/C][C]5726[/C][C]5717.68[/C][C]5726.71[/C][C]-9.03009[/C][C]8.32176[/C][/ROW]
[ROW][C]46[/C][C]5745[/C][C]5722.16[/C][C]5744.29[/C][C]-22.1343[/C][C]22.8426[/C][/ROW]
[ROW][C]47[/C][C]5767[/C][C]5720.94[/C][C]5759.96[/C][C]-39.0197[/C][C]46.0613[/C][/ROW]
[ROW][C]48[/C][C]5789[/C][C]5736.79[/C][C]5775.88[/C][C]-39.0822[/C][C]52.2072[/C][/ROW]
[ROW][C]49[/C][C]5785[/C][C]5762.69[/C][C]5793.04[/C][C]-30.353[/C][C]22.3113[/C][/ROW]
[ROW][C]50[/C][C]5785[/C][C]5795.79[/C][C]5810.58[/C][C]-14.7905[/C][C]-10.7928[/C][/ROW]
[ROW][C]51[/C][C]5806[/C][C]NA[/C][C]NA[/C][C]8.56019[/C][C]NA[/C][/ROW]
[ROW][C]52[/C][C]5827[/C][C]NA[/C][C]NA[/C][C]24.0602[/C][C]NA[/C][/ROW]
[ROW][C]53[/C][C]5856[/C][C]NA[/C][C]NA[/C][C]43.963[/C][C]NA[/C][/ROW]
[ROW][C]54[/C][C]5896[/C][C]NA[/C][C]NA[/C][C]42.4907[/C][C]NA[/C][/ROW]
[ROW][C]55[/C][C]5914[/C][C]NA[/C][C]NA[/C][C]22.9699[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]5938[/C][C]NA[/C][C]NA[/C][C]12.3657[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302262&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302262&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
15133NANA-30.353NA
25155NANA-14.7905NA
35174NANA8.56019NA
45201NANA24.0602NA
55221NANA43.963NA
65205NANA42.4907NA
752355267.475244.522.9699-32.4699
852555278.825266.4612.3657-23.8241
952725280.555289.58-9.03009-8.55324
1052995291.285313.42-22.13437.71759
1153185299.695338.71-39.019718.3113
1253405327.755366.83-39.082212.2488
1353855366.115396.46-30.35318.8947
1454305410.425425.21-14.790519.5822
1554545460.5654528.56019-6.56019
1654935498.945474.8824.0602-5.93519
1755365537.885493.9243.963-1.87963
1855655553.415510.9242.490711.5926
1955865548.685525.7122.969937.3218
2055945550.285537.9212.365743.7176
2155765540.395549.42-9.0300935.6134
2255445537.495559.62-22.13436.50926
2355305527.525566.54-39.01972.47801
2455365531.175570.25-39.08224.83218
2555445540.155570.5-30.3533.85301
2655645552.295567.08-14.790511.7072
2755965569.815561.258.5601926.1898
2855965579.565555.524.060216.4398
2955995593.35549.3343.9635.7037
3055915584.455541.9642.49076.55093
3155665558.97553622.96997.03009
3255325545.285532.9212.3657-13.2824
3354985522.515531.54-9.03009-24.5116
3454845510.25532.33-22.1343-26.1991
3554425497.985537-39.0197-55.9803
3654475505.425544.5-39.0822-58.4178
3754905524.195554.54-30.353-34.1887
3855445553.635568.42-14.7905-9.62616
3955835594.485585.928.56019-11.4769
4056285630.355606.2924.0602-2.35185
4156795674.675630.7143.9634.3287
4256915700.995658.542.4907-9.99074
4357075708.015685.0422.9699-1.01157
4457245719.745707.3812.36574.25926
4557265717.685726.71-9.030098.32176
4657455722.165744.29-22.134322.8426
4757675720.945759.96-39.019746.0613
4857895736.795775.88-39.082252.2072
4957855762.695793.04-30.35322.3113
5057855795.795810.58-14.7905-10.7928
515806NANA8.56019NA
525827NANA24.0602NA
535856NANA43.963NA
545896NANA42.4907NA
555914NANA22.9699NA
565938NANA12.3657NA



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