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, 07 Dec 2016 10:58:00 +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/07/t1481105036ezyvxb8pewrtsi2.htm/, Retrieved Tue, 07 May 2024 13:03:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=297945, Retrieved Tue, 07 May 2024 13:03:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Decomposition N861] [2016-12-07 09:58:00] [fd005a509166a1985dac46f39e8d81c5] [Current]
Feedback Forum

Post a new message
Dataseries X:
6908
6694
6564
6800
6820
6752
6632
6756
6898
6844
6750
6892
7104
7022
6858
7018
7218
7134
7006
7160
7374
7276
7128
7272
7462
7366
7218
7366
7546
7464
7332
7502
7736
7628
7494
7668
7888
7774
7644
7826
8056
7990
7814
7978
8238
8138
8000
8176
8412
8332
8194
8354
8576
8500
8376
8538




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 time2 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=297945&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]2 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=297945&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=297945&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 time2 seconds
R ServerBig Analytics Cloud Computing Center







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16908NANA160.488NA
26694NANA30.7593NA
36564NANA-155.22NA
46800NANA-28.4699NA
56820NANA139.53NA
66752NANA27.0023NA
766326631.286784-152.720.719907
867566773.386805.83-32.4491-17.3843
968986977.766831.75146.009-79.7593
1068446875.936853.0822.8426-31.9259
1167506738.616878.75-140.13711.3866
1268926893.616911.25-17.6366-1.61343
1371047103.246942.75160.4880.761574
1470227005.936975.1730.759316.0741
1568586856.617011.83-155.221.38657
1670187021.27049.67-28.4699-3.19676
1772187222.957083.42139.53-4.94676
1871347142711527.0023-8.00231
1970066993.037145.75-152.7212.9699
2071607142.557175-32.449117.4491
2173747350.347204.33146.00923.6574
2272767256.687233.8322.842619.3241
2371287121.867262-140.1376.13657
2472727271.787289.42-17.63660.219907
2574627477.247316.75160.488-15.2384
2673667375.347344.5830.7593-9.34259
2772187218.77373.92-155.22-0.696759
2873667375.27403.67-28.4699-9.19676
2975467573.117433.58139.53-27.1134
3074647492.347465.3327.0023-28.3356
3173327346.867499.58-152.72-14.8634
3275027501.887534.33-32.44910.115741
3377367715.097569.08146.00920.9074
3476287628.84760622.8426-0.842593
3574947506.287646.42-140.137-12.2801
3676687671.957689.58-17.6366-3.94676
3778887892.077731.58160.488-4.07176
3877747802.267771.530.7593-28.2593
3976447657.037812.25-155.22-13.0301
4078267825.957854.42-28.46990.0532407
4180568036.287896.75139.5319.7199
4279907966793927.002323.9977
4378147829.287982-152.72-15.2801
4479787994.638027.08-32.4491-16.6343
4582388219.268073.25146.00918.7407
4681388141.018118.1722.8426-3.00926
4780008021.78161.83-140.137-21.6968
4881768187.118204.75-17.6366-11.1134
4984128409.918249.42160.4882.09491
5083328326.938296.1730.75935.07407
518194NANA-155.22NA
528354NANA-28.4699NA
538576NANA139.53NA
548500NANA27.0023NA
558376NANA-152.72NA
568538NANA-32.4491NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 6908 & NA & NA & 160.488 & NA \tabularnewline
2 & 6694 & NA & NA & 30.7593 & NA \tabularnewline
3 & 6564 & NA & NA & -155.22 & NA \tabularnewline
4 & 6800 & NA & NA & -28.4699 & NA \tabularnewline
5 & 6820 & NA & NA & 139.53 & NA \tabularnewline
6 & 6752 & NA & NA & 27.0023 & NA \tabularnewline
7 & 6632 & 6631.28 & 6784 & -152.72 & 0.719907 \tabularnewline
8 & 6756 & 6773.38 & 6805.83 & -32.4491 & -17.3843 \tabularnewline
9 & 6898 & 6977.76 & 6831.75 & 146.009 & -79.7593 \tabularnewline
10 & 6844 & 6875.93 & 6853.08 & 22.8426 & -31.9259 \tabularnewline
11 & 6750 & 6738.61 & 6878.75 & -140.137 & 11.3866 \tabularnewline
12 & 6892 & 6893.61 & 6911.25 & -17.6366 & -1.61343 \tabularnewline
13 & 7104 & 7103.24 & 6942.75 & 160.488 & 0.761574 \tabularnewline
14 & 7022 & 7005.93 & 6975.17 & 30.7593 & 16.0741 \tabularnewline
15 & 6858 & 6856.61 & 7011.83 & -155.22 & 1.38657 \tabularnewline
16 & 7018 & 7021.2 & 7049.67 & -28.4699 & -3.19676 \tabularnewline
17 & 7218 & 7222.95 & 7083.42 & 139.53 & -4.94676 \tabularnewline
18 & 7134 & 7142 & 7115 & 27.0023 & -8.00231 \tabularnewline
19 & 7006 & 6993.03 & 7145.75 & -152.72 & 12.9699 \tabularnewline
20 & 7160 & 7142.55 & 7175 & -32.4491 & 17.4491 \tabularnewline
21 & 7374 & 7350.34 & 7204.33 & 146.009 & 23.6574 \tabularnewline
22 & 7276 & 7256.68 & 7233.83 & 22.8426 & 19.3241 \tabularnewline
23 & 7128 & 7121.86 & 7262 & -140.137 & 6.13657 \tabularnewline
24 & 7272 & 7271.78 & 7289.42 & -17.6366 & 0.219907 \tabularnewline
25 & 7462 & 7477.24 & 7316.75 & 160.488 & -15.2384 \tabularnewline
26 & 7366 & 7375.34 & 7344.58 & 30.7593 & -9.34259 \tabularnewline
27 & 7218 & 7218.7 & 7373.92 & -155.22 & -0.696759 \tabularnewline
28 & 7366 & 7375.2 & 7403.67 & -28.4699 & -9.19676 \tabularnewline
29 & 7546 & 7573.11 & 7433.58 & 139.53 & -27.1134 \tabularnewline
30 & 7464 & 7492.34 & 7465.33 & 27.0023 & -28.3356 \tabularnewline
31 & 7332 & 7346.86 & 7499.58 & -152.72 & -14.8634 \tabularnewline
32 & 7502 & 7501.88 & 7534.33 & -32.4491 & 0.115741 \tabularnewline
33 & 7736 & 7715.09 & 7569.08 & 146.009 & 20.9074 \tabularnewline
34 & 7628 & 7628.84 & 7606 & 22.8426 & -0.842593 \tabularnewline
35 & 7494 & 7506.28 & 7646.42 & -140.137 & -12.2801 \tabularnewline
36 & 7668 & 7671.95 & 7689.58 & -17.6366 & -3.94676 \tabularnewline
37 & 7888 & 7892.07 & 7731.58 & 160.488 & -4.07176 \tabularnewline
38 & 7774 & 7802.26 & 7771.5 & 30.7593 & -28.2593 \tabularnewline
39 & 7644 & 7657.03 & 7812.25 & -155.22 & -13.0301 \tabularnewline
40 & 7826 & 7825.95 & 7854.42 & -28.4699 & 0.0532407 \tabularnewline
41 & 8056 & 8036.28 & 7896.75 & 139.53 & 19.7199 \tabularnewline
42 & 7990 & 7966 & 7939 & 27.0023 & 23.9977 \tabularnewline
43 & 7814 & 7829.28 & 7982 & -152.72 & -15.2801 \tabularnewline
44 & 7978 & 7994.63 & 8027.08 & -32.4491 & -16.6343 \tabularnewline
45 & 8238 & 8219.26 & 8073.25 & 146.009 & 18.7407 \tabularnewline
46 & 8138 & 8141.01 & 8118.17 & 22.8426 & -3.00926 \tabularnewline
47 & 8000 & 8021.7 & 8161.83 & -140.137 & -21.6968 \tabularnewline
48 & 8176 & 8187.11 & 8204.75 & -17.6366 & -11.1134 \tabularnewline
49 & 8412 & 8409.91 & 8249.42 & 160.488 & 2.09491 \tabularnewline
50 & 8332 & 8326.93 & 8296.17 & 30.7593 & 5.07407 \tabularnewline
51 & 8194 & NA & NA & -155.22 & NA \tabularnewline
52 & 8354 & NA & NA & -28.4699 & NA \tabularnewline
53 & 8576 & NA & NA & 139.53 & NA \tabularnewline
54 & 8500 & NA & NA & 27.0023 & NA \tabularnewline
55 & 8376 & NA & NA & -152.72 & NA \tabularnewline
56 & 8538 & NA & NA & -32.4491 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=297945&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]6908[/C][C]NA[/C][C]NA[/C][C]160.488[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]6694[/C][C]NA[/C][C]NA[/C][C]30.7593[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]6564[/C][C]NA[/C][C]NA[/C][C]-155.22[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]6800[/C][C]NA[/C][C]NA[/C][C]-28.4699[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]6820[/C][C]NA[/C][C]NA[/C][C]139.53[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]6752[/C][C]NA[/C][C]NA[/C][C]27.0023[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]6632[/C][C]6631.28[/C][C]6784[/C][C]-152.72[/C][C]0.719907[/C][/ROW]
[ROW][C]8[/C][C]6756[/C][C]6773.38[/C][C]6805.83[/C][C]-32.4491[/C][C]-17.3843[/C][/ROW]
[ROW][C]9[/C][C]6898[/C][C]6977.76[/C][C]6831.75[/C][C]146.009[/C][C]-79.7593[/C][/ROW]
[ROW][C]10[/C][C]6844[/C][C]6875.93[/C][C]6853.08[/C][C]22.8426[/C][C]-31.9259[/C][/ROW]
[ROW][C]11[/C][C]6750[/C][C]6738.61[/C][C]6878.75[/C][C]-140.137[/C][C]11.3866[/C][/ROW]
[ROW][C]12[/C][C]6892[/C][C]6893.61[/C][C]6911.25[/C][C]-17.6366[/C][C]-1.61343[/C][/ROW]
[ROW][C]13[/C][C]7104[/C][C]7103.24[/C][C]6942.75[/C][C]160.488[/C][C]0.761574[/C][/ROW]
[ROW][C]14[/C][C]7022[/C][C]7005.93[/C][C]6975.17[/C][C]30.7593[/C][C]16.0741[/C][/ROW]
[ROW][C]15[/C][C]6858[/C][C]6856.61[/C][C]7011.83[/C][C]-155.22[/C][C]1.38657[/C][/ROW]
[ROW][C]16[/C][C]7018[/C][C]7021.2[/C][C]7049.67[/C][C]-28.4699[/C][C]-3.19676[/C][/ROW]
[ROW][C]17[/C][C]7218[/C][C]7222.95[/C][C]7083.42[/C][C]139.53[/C][C]-4.94676[/C][/ROW]
[ROW][C]18[/C][C]7134[/C][C]7142[/C][C]7115[/C][C]27.0023[/C][C]-8.00231[/C][/ROW]
[ROW][C]19[/C][C]7006[/C][C]6993.03[/C][C]7145.75[/C][C]-152.72[/C][C]12.9699[/C][/ROW]
[ROW][C]20[/C][C]7160[/C][C]7142.55[/C][C]7175[/C][C]-32.4491[/C][C]17.4491[/C][/ROW]
[ROW][C]21[/C][C]7374[/C][C]7350.34[/C][C]7204.33[/C][C]146.009[/C][C]23.6574[/C][/ROW]
[ROW][C]22[/C][C]7276[/C][C]7256.68[/C][C]7233.83[/C][C]22.8426[/C][C]19.3241[/C][/ROW]
[ROW][C]23[/C][C]7128[/C][C]7121.86[/C][C]7262[/C][C]-140.137[/C][C]6.13657[/C][/ROW]
[ROW][C]24[/C][C]7272[/C][C]7271.78[/C][C]7289.42[/C][C]-17.6366[/C][C]0.219907[/C][/ROW]
[ROW][C]25[/C][C]7462[/C][C]7477.24[/C][C]7316.75[/C][C]160.488[/C][C]-15.2384[/C][/ROW]
[ROW][C]26[/C][C]7366[/C][C]7375.34[/C][C]7344.58[/C][C]30.7593[/C][C]-9.34259[/C][/ROW]
[ROW][C]27[/C][C]7218[/C][C]7218.7[/C][C]7373.92[/C][C]-155.22[/C][C]-0.696759[/C][/ROW]
[ROW][C]28[/C][C]7366[/C][C]7375.2[/C][C]7403.67[/C][C]-28.4699[/C][C]-9.19676[/C][/ROW]
[ROW][C]29[/C][C]7546[/C][C]7573.11[/C][C]7433.58[/C][C]139.53[/C][C]-27.1134[/C][/ROW]
[ROW][C]30[/C][C]7464[/C][C]7492.34[/C][C]7465.33[/C][C]27.0023[/C][C]-28.3356[/C][/ROW]
[ROW][C]31[/C][C]7332[/C][C]7346.86[/C][C]7499.58[/C][C]-152.72[/C][C]-14.8634[/C][/ROW]
[ROW][C]32[/C][C]7502[/C][C]7501.88[/C][C]7534.33[/C][C]-32.4491[/C][C]0.115741[/C][/ROW]
[ROW][C]33[/C][C]7736[/C][C]7715.09[/C][C]7569.08[/C][C]146.009[/C][C]20.9074[/C][/ROW]
[ROW][C]34[/C][C]7628[/C][C]7628.84[/C][C]7606[/C][C]22.8426[/C][C]-0.842593[/C][/ROW]
[ROW][C]35[/C][C]7494[/C][C]7506.28[/C][C]7646.42[/C][C]-140.137[/C][C]-12.2801[/C][/ROW]
[ROW][C]36[/C][C]7668[/C][C]7671.95[/C][C]7689.58[/C][C]-17.6366[/C][C]-3.94676[/C][/ROW]
[ROW][C]37[/C][C]7888[/C][C]7892.07[/C][C]7731.58[/C][C]160.488[/C][C]-4.07176[/C][/ROW]
[ROW][C]38[/C][C]7774[/C][C]7802.26[/C][C]7771.5[/C][C]30.7593[/C][C]-28.2593[/C][/ROW]
[ROW][C]39[/C][C]7644[/C][C]7657.03[/C][C]7812.25[/C][C]-155.22[/C][C]-13.0301[/C][/ROW]
[ROW][C]40[/C][C]7826[/C][C]7825.95[/C][C]7854.42[/C][C]-28.4699[/C][C]0.0532407[/C][/ROW]
[ROW][C]41[/C][C]8056[/C][C]8036.28[/C][C]7896.75[/C][C]139.53[/C][C]19.7199[/C][/ROW]
[ROW][C]42[/C][C]7990[/C][C]7966[/C][C]7939[/C][C]27.0023[/C][C]23.9977[/C][/ROW]
[ROW][C]43[/C][C]7814[/C][C]7829.28[/C][C]7982[/C][C]-152.72[/C][C]-15.2801[/C][/ROW]
[ROW][C]44[/C][C]7978[/C][C]7994.63[/C][C]8027.08[/C][C]-32.4491[/C][C]-16.6343[/C][/ROW]
[ROW][C]45[/C][C]8238[/C][C]8219.26[/C][C]8073.25[/C][C]146.009[/C][C]18.7407[/C][/ROW]
[ROW][C]46[/C][C]8138[/C][C]8141.01[/C][C]8118.17[/C][C]22.8426[/C][C]-3.00926[/C][/ROW]
[ROW][C]47[/C][C]8000[/C][C]8021.7[/C][C]8161.83[/C][C]-140.137[/C][C]-21.6968[/C][/ROW]
[ROW][C]48[/C][C]8176[/C][C]8187.11[/C][C]8204.75[/C][C]-17.6366[/C][C]-11.1134[/C][/ROW]
[ROW][C]49[/C][C]8412[/C][C]8409.91[/C][C]8249.42[/C][C]160.488[/C][C]2.09491[/C][/ROW]
[ROW][C]50[/C][C]8332[/C][C]8326.93[/C][C]8296.17[/C][C]30.7593[/C][C]5.07407[/C][/ROW]
[ROW][C]51[/C][C]8194[/C][C]NA[/C][C]NA[/C][C]-155.22[/C][C]NA[/C][/ROW]
[ROW][C]52[/C][C]8354[/C][C]NA[/C][C]NA[/C][C]-28.4699[/C][C]NA[/C][/ROW]
[ROW][C]53[/C][C]8576[/C][C]NA[/C][C]NA[/C][C]139.53[/C][C]NA[/C][/ROW]
[ROW][C]54[/C][C]8500[/C][C]NA[/C][C]NA[/C][C]27.0023[/C][C]NA[/C][/ROW]
[ROW][C]55[/C][C]8376[/C][C]NA[/C][C]NA[/C][C]-152.72[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]8538[/C][C]NA[/C][C]NA[/C][C]-32.4491[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=297945&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=297945&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
16908NANA160.488NA
26694NANA30.7593NA
36564NANA-155.22NA
46800NANA-28.4699NA
56820NANA139.53NA
66752NANA27.0023NA
766326631.286784-152.720.719907
867566773.386805.83-32.4491-17.3843
968986977.766831.75146.009-79.7593
1068446875.936853.0822.8426-31.9259
1167506738.616878.75-140.13711.3866
1268926893.616911.25-17.6366-1.61343
1371047103.246942.75160.4880.761574
1470227005.936975.1730.759316.0741
1568586856.617011.83-155.221.38657
1670187021.27049.67-28.4699-3.19676
1772187222.957083.42139.53-4.94676
1871347142711527.0023-8.00231
1970066993.037145.75-152.7212.9699
2071607142.557175-32.449117.4491
2173747350.347204.33146.00923.6574
2272767256.687233.8322.842619.3241
2371287121.867262-140.1376.13657
2472727271.787289.42-17.63660.219907
2574627477.247316.75160.488-15.2384
2673667375.347344.5830.7593-9.34259
2772187218.77373.92-155.22-0.696759
2873667375.27403.67-28.4699-9.19676
2975467573.117433.58139.53-27.1134
3074647492.347465.3327.0023-28.3356
3173327346.867499.58-152.72-14.8634
3275027501.887534.33-32.44910.115741
3377367715.097569.08146.00920.9074
3476287628.84760622.8426-0.842593
3574947506.287646.42-140.137-12.2801
3676687671.957689.58-17.6366-3.94676
3778887892.077731.58160.488-4.07176
3877747802.267771.530.7593-28.2593
3976447657.037812.25-155.22-13.0301
4078267825.957854.42-28.46990.0532407
4180568036.287896.75139.5319.7199
4279907966793927.002323.9977
4378147829.287982-152.72-15.2801
4479787994.638027.08-32.4491-16.6343
4582388219.268073.25146.00918.7407
4681388141.018118.1722.8426-3.00926
4780008021.78161.83-140.137-21.6968
4881768187.118204.75-17.6366-11.1134
4984128409.918249.42160.4882.09491
5083328326.938296.1730.75935.07407
518194NANA-155.22NA
528354NANA-28.4699NA
538576NANA139.53NA
548500NANA27.0023NA
558376NANA-152.72NA
568538NANA-32.4491NA



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