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 computationTue, 08 Dec 2015 13:44:22 +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/2015/Dec/08/t1449585763m44300lgyq23u1l.htm/, Retrieved Sat, 18 May 2024 15:17:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=285505, Retrieved Sat, 18 May 2024 15:17:49 +0000
QR Codes:

Original text written by user:De inschrijving van Amerikaanse wagens tss 1955 en 1968
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Decompositie van ...] [2015-12-08 13:44:22] [0699448209a825438cb2d76a05e8a0a6] [Current]
Feedback Forum

Post a new message
Dataseries X:
1554
1994
1961
1716
1425
1664
1524
1342
1449
1622
1530
1385
1117
1253
1088
1167
1344
1745
1559
1395
1521
1890
1531
1635
1269
1612
1343
1634
1571
1881
1528
1960
1676
2166
1663
2067
1801
2347
1938
1980
2097
2579
2191
2449
2208
2353
2151
2307
1826
2414
2029
2091
1988
2484
2321
2614




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.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 & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=285505&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]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=285505&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=285505&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'George Udny Yule' @ yule.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11554NANA-282.737NA
21994NANA98.9609NA
31961NANA-240.449NA
41716NANA-123.81NA
51425NANA-65.5877NA
61664NANA310.648NA
715241551.41578.96-27.5599-27.3984
813421581.111529.8851.2318-239.107
914491435.771462.62-26.851613.2266
1016221666.161403.38262.784-44.1589
1115301341.141377.12-35.987188.862
1213851456.481377.1279.3568-71.4818
1311171099.221381.96-282.73717.7786
1412531484.591385.6298.9609-231.586
1510881150.381390.83-240.449-62.3845
1611671281.191405-123.81-114.19
1713441350.621416.21-65.5877-6.62066
1817451737.321426.67310.6487.6849
1915591415.861443.42-27.5599143.143
2013951515.941464.7151.2318-120.94
2115211463.441490.29-26.851657.5599
2218901783.161520.38262.784106.841
2315311513.31549.29-35.98717.6953
2416351643.771564.4279.3568-8.77344
2512691286.051568.79-282.737-17.0547
26161216901591.0498.9609-78.0026
2713431380.591621.04-240.449-37.5929
2816341515.191639-123.81118.81
2915711590.411656-65.5877-19.4123
3018811990.151679.5310.648-109.148
3115281692.111719.67-27.5599-164.107
3219601823.691772.4651.2318136.31
3316761801.021827.88-26.8516-125.023
3421662129.871867.08262.78436.1328
3516631867.431903.42-35.987-204.43
3620672033.771954.4279.356833.2266
3718011728.392011.12-282.73772.612
3823472158.092059.1298.9609188.914
3919381861.222101.67-240.44976.7821
4019802007.822131.62-123.81-27.8151
4120972094.162159.75-65.58772.83767
4225792500.732190.08310.64878.2682
4321912173.572201.12-27.559917.4349
4424492256.192204.9651.2318192.81
4522082184.692211.54-26.851623.3099
4623532482.742219.96262.784-129.742
4721512184.052220.04-35.987-33.0547
4823072290.92211.5479.356816.1016
4918261930.262213-282.737-104.263
5024142324.252225.2998.960989.7474
512029NANA-240.449NA
522091NANA-123.81NA
531988NANA-65.5877NA
542484NANA310.648NA
552321NANA-27.5599NA
562614NANA51.2318NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 1554 & NA & NA & -282.737 & NA \tabularnewline
2 & 1994 & NA & NA & 98.9609 & NA \tabularnewline
3 & 1961 & NA & NA & -240.449 & NA \tabularnewline
4 & 1716 & NA & NA & -123.81 & NA \tabularnewline
5 & 1425 & NA & NA & -65.5877 & NA \tabularnewline
6 & 1664 & NA & NA & 310.648 & NA \tabularnewline
7 & 1524 & 1551.4 & 1578.96 & -27.5599 & -27.3984 \tabularnewline
8 & 1342 & 1581.11 & 1529.88 & 51.2318 & -239.107 \tabularnewline
9 & 1449 & 1435.77 & 1462.62 & -26.8516 & 13.2266 \tabularnewline
10 & 1622 & 1666.16 & 1403.38 & 262.784 & -44.1589 \tabularnewline
11 & 1530 & 1341.14 & 1377.12 & -35.987 & 188.862 \tabularnewline
12 & 1385 & 1456.48 & 1377.12 & 79.3568 & -71.4818 \tabularnewline
13 & 1117 & 1099.22 & 1381.96 & -282.737 & 17.7786 \tabularnewline
14 & 1253 & 1484.59 & 1385.62 & 98.9609 & -231.586 \tabularnewline
15 & 1088 & 1150.38 & 1390.83 & -240.449 & -62.3845 \tabularnewline
16 & 1167 & 1281.19 & 1405 & -123.81 & -114.19 \tabularnewline
17 & 1344 & 1350.62 & 1416.21 & -65.5877 & -6.62066 \tabularnewline
18 & 1745 & 1737.32 & 1426.67 & 310.648 & 7.6849 \tabularnewline
19 & 1559 & 1415.86 & 1443.42 & -27.5599 & 143.143 \tabularnewline
20 & 1395 & 1515.94 & 1464.71 & 51.2318 & -120.94 \tabularnewline
21 & 1521 & 1463.44 & 1490.29 & -26.8516 & 57.5599 \tabularnewline
22 & 1890 & 1783.16 & 1520.38 & 262.784 & 106.841 \tabularnewline
23 & 1531 & 1513.3 & 1549.29 & -35.987 & 17.6953 \tabularnewline
24 & 1635 & 1643.77 & 1564.42 & 79.3568 & -8.77344 \tabularnewline
25 & 1269 & 1286.05 & 1568.79 & -282.737 & -17.0547 \tabularnewline
26 & 1612 & 1690 & 1591.04 & 98.9609 & -78.0026 \tabularnewline
27 & 1343 & 1380.59 & 1621.04 & -240.449 & -37.5929 \tabularnewline
28 & 1634 & 1515.19 & 1639 & -123.81 & 118.81 \tabularnewline
29 & 1571 & 1590.41 & 1656 & -65.5877 & -19.4123 \tabularnewline
30 & 1881 & 1990.15 & 1679.5 & 310.648 & -109.148 \tabularnewline
31 & 1528 & 1692.11 & 1719.67 & -27.5599 & -164.107 \tabularnewline
32 & 1960 & 1823.69 & 1772.46 & 51.2318 & 136.31 \tabularnewline
33 & 1676 & 1801.02 & 1827.88 & -26.8516 & -125.023 \tabularnewline
34 & 2166 & 2129.87 & 1867.08 & 262.784 & 36.1328 \tabularnewline
35 & 1663 & 1867.43 & 1903.42 & -35.987 & -204.43 \tabularnewline
36 & 2067 & 2033.77 & 1954.42 & 79.3568 & 33.2266 \tabularnewline
37 & 1801 & 1728.39 & 2011.12 & -282.737 & 72.612 \tabularnewline
38 & 2347 & 2158.09 & 2059.12 & 98.9609 & 188.914 \tabularnewline
39 & 1938 & 1861.22 & 2101.67 & -240.449 & 76.7821 \tabularnewline
40 & 1980 & 2007.82 & 2131.62 & -123.81 & -27.8151 \tabularnewline
41 & 2097 & 2094.16 & 2159.75 & -65.5877 & 2.83767 \tabularnewline
42 & 2579 & 2500.73 & 2190.08 & 310.648 & 78.2682 \tabularnewline
43 & 2191 & 2173.57 & 2201.12 & -27.5599 & 17.4349 \tabularnewline
44 & 2449 & 2256.19 & 2204.96 & 51.2318 & 192.81 \tabularnewline
45 & 2208 & 2184.69 & 2211.54 & -26.8516 & 23.3099 \tabularnewline
46 & 2353 & 2482.74 & 2219.96 & 262.784 & -129.742 \tabularnewline
47 & 2151 & 2184.05 & 2220.04 & -35.987 & -33.0547 \tabularnewline
48 & 2307 & 2290.9 & 2211.54 & 79.3568 & 16.1016 \tabularnewline
49 & 1826 & 1930.26 & 2213 & -282.737 & -104.263 \tabularnewline
50 & 2414 & 2324.25 & 2225.29 & 98.9609 & 89.7474 \tabularnewline
51 & 2029 & NA & NA & -240.449 & NA \tabularnewline
52 & 2091 & NA & NA & -123.81 & NA \tabularnewline
53 & 1988 & NA & NA & -65.5877 & NA \tabularnewline
54 & 2484 & NA & NA & 310.648 & NA \tabularnewline
55 & 2321 & NA & NA & -27.5599 & NA \tabularnewline
56 & 2614 & NA & NA & 51.2318 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=285505&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]1554[/C][C]NA[/C][C]NA[/C][C]-282.737[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]1994[/C][C]NA[/C][C]NA[/C][C]98.9609[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]1961[/C][C]NA[/C][C]NA[/C][C]-240.449[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]1716[/C][C]NA[/C][C]NA[/C][C]-123.81[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]1425[/C][C]NA[/C][C]NA[/C][C]-65.5877[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]1664[/C][C]NA[/C][C]NA[/C][C]310.648[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]1524[/C][C]1551.4[/C][C]1578.96[/C][C]-27.5599[/C][C]-27.3984[/C][/ROW]
[ROW][C]8[/C][C]1342[/C][C]1581.11[/C][C]1529.88[/C][C]51.2318[/C][C]-239.107[/C][/ROW]
[ROW][C]9[/C][C]1449[/C][C]1435.77[/C][C]1462.62[/C][C]-26.8516[/C][C]13.2266[/C][/ROW]
[ROW][C]10[/C][C]1622[/C][C]1666.16[/C][C]1403.38[/C][C]262.784[/C][C]-44.1589[/C][/ROW]
[ROW][C]11[/C][C]1530[/C][C]1341.14[/C][C]1377.12[/C][C]-35.987[/C][C]188.862[/C][/ROW]
[ROW][C]12[/C][C]1385[/C][C]1456.48[/C][C]1377.12[/C][C]79.3568[/C][C]-71.4818[/C][/ROW]
[ROW][C]13[/C][C]1117[/C][C]1099.22[/C][C]1381.96[/C][C]-282.737[/C][C]17.7786[/C][/ROW]
[ROW][C]14[/C][C]1253[/C][C]1484.59[/C][C]1385.62[/C][C]98.9609[/C][C]-231.586[/C][/ROW]
[ROW][C]15[/C][C]1088[/C][C]1150.38[/C][C]1390.83[/C][C]-240.449[/C][C]-62.3845[/C][/ROW]
[ROW][C]16[/C][C]1167[/C][C]1281.19[/C][C]1405[/C][C]-123.81[/C][C]-114.19[/C][/ROW]
[ROW][C]17[/C][C]1344[/C][C]1350.62[/C][C]1416.21[/C][C]-65.5877[/C][C]-6.62066[/C][/ROW]
[ROW][C]18[/C][C]1745[/C][C]1737.32[/C][C]1426.67[/C][C]310.648[/C][C]7.6849[/C][/ROW]
[ROW][C]19[/C][C]1559[/C][C]1415.86[/C][C]1443.42[/C][C]-27.5599[/C][C]143.143[/C][/ROW]
[ROW][C]20[/C][C]1395[/C][C]1515.94[/C][C]1464.71[/C][C]51.2318[/C][C]-120.94[/C][/ROW]
[ROW][C]21[/C][C]1521[/C][C]1463.44[/C][C]1490.29[/C][C]-26.8516[/C][C]57.5599[/C][/ROW]
[ROW][C]22[/C][C]1890[/C][C]1783.16[/C][C]1520.38[/C][C]262.784[/C][C]106.841[/C][/ROW]
[ROW][C]23[/C][C]1531[/C][C]1513.3[/C][C]1549.29[/C][C]-35.987[/C][C]17.6953[/C][/ROW]
[ROW][C]24[/C][C]1635[/C][C]1643.77[/C][C]1564.42[/C][C]79.3568[/C][C]-8.77344[/C][/ROW]
[ROW][C]25[/C][C]1269[/C][C]1286.05[/C][C]1568.79[/C][C]-282.737[/C][C]-17.0547[/C][/ROW]
[ROW][C]26[/C][C]1612[/C][C]1690[/C][C]1591.04[/C][C]98.9609[/C][C]-78.0026[/C][/ROW]
[ROW][C]27[/C][C]1343[/C][C]1380.59[/C][C]1621.04[/C][C]-240.449[/C][C]-37.5929[/C][/ROW]
[ROW][C]28[/C][C]1634[/C][C]1515.19[/C][C]1639[/C][C]-123.81[/C][C]118.81[/C][/ROW]
[ROW][C]29[/C][C]1571[/C][C]1590.41[/C][C]1656[/C][C]-65.5877[/C][C]-19.4123[/C][/ROW]
[ROW][C]30[/C][C]1881[/C][C]1990.15[/C][C]1679.5[/C][C]310.648[/C][C]-109.148[/C][/ROW]
[ROW][C]31[/C][C]1528[/C][C]1692.11[/C][C]1719.67[/C][C]-27.5599[/C][C]-164.107[/C][/ROW]
[ROW][C]32[/C][C]1960[/C][C]1823.69[/C][C]1772.46[/C][C]51.2318[/C][C]136.31[/C][/ROW]
[ROW][C]33[/C][C]1676[/C][C]1801.02[/C][C]1827.88[/C][C]-26.8516[/C][C]-125.023[/C][/ROW]
[ROW][C]34[/C][C]2166[/C][C]2129.87[/C][C]1867.08[/C][C]262.784[/C][C]36.1328[/C][/ROW]
[ROW][C]35[/C][C]1663[/C][C]1867.43[/C][C]1903.42[/C][C]-35.987[/C][C]-204.43[/C][/ROW]
[ROW][C]36[/C][C]2067[/C][C]2033.77[/C][C]1954.42[/C][C]79.3568[/C][C]33.2266[/C][/ROW]
[ROW][C]37[/C][C]1801[/C][C]1728.39[/C][C]2011.12[/C][C]-282.737[/C][C]72.612[/C][/ROW]
[ROW][C]38[/C][C]2347[/C][C]2158.09[/C][C]2059.12[/C][C]98.9609[/C][C]188.914[/C][/ROW]
[ROW][C]39[/C][C]1938[/C][C]1861.22[/C][C]2101.67[/C][C]-240.449[/C][C]76.7821[/C][/ROW]
[ROW][C]40[/C][C]1980[/C][C]2007.82[/C][C]2131.62[/C][C]-123.81[/C][C]-27.8151[/C][/ROW]
[ROW][C]41[/C][C]2097[/C][C]2094.16[/C][C]2159.75[/C][C]-65.5877[/C][C]2.83767[/C][/ROW]
[ROW][C]42[/C][C]2579[/C][C]2500.73[/C][C]2190.08[/C][C]310.648[/C][C]78.2682[/C][/ROW]
[ROW][C]43[/C][C]2191[/C][C]2173.57[/C][C]2201.12[/C][C]-27.5599[/C][C]17.4349[/C][/ROW]
[ROW][C]44[/C][C]2449[/C][C]2256.19[/C][C]2204.96[/C][C]51.2318[/C][C]192.81[/C][/ROW]
[ROW][C]45[/C][C]2208[/C][C]2184.69[/C][C]2211.54[/C][C]-26.8516[/C][C]23.3099[/C][/ROW]
[ROW][C]46[/C][C]2353[/C][C]2482.74[/C][C]2219.96[/C][C]262.784[/C][C]-129.742[/C][/ROW]
[ROW][C]47[/C][C]2151[/C][C]2184.05[/C][C]2220.04[/C][C]-35.987[/C][C]-33.0547[/C][/ROW]
[ROW][C]48[/C][C]2307[/C][C]2290.9[/C][C]2211.54[/C][C]79.3568[/C][C]16.1016[/C][/ROW]
[ROW][C]49[/C][C]1826[/C][C]1930.26[/C][C]2213[/C][C]-282.737[/C][C]-104.263[/C][/ROW]
[ROW][C]50[/C][C]2414[/C][C]2324.25[/C][C]2225.29[/C][C]98.9609[/C][C]89.7474[/C][/ROW]
[ROW][C]51[/C][C]2029[/C][C]NA[/C][C]NA[/C][C]-240.449[/C][C]NA[/C][/ROW]
[ROW][C]52[/C][C]2091[/C][C]NA[/C][C]NA[/C][C]-123.81[/C][C]NA[/C][/ROW]
[ROW][C]53[/C][C]1988[/C][C]NA[/C][C]NA[/C][C]-65.5877[/C][C]NA[/C][/ROW]
[ROW][C]54[/C][C]2484[/C][C]NA[/C][C]NA[/C][C]310.648[/C][C]NA[/C][/ROW]
[ROW][C]55[/C][C]2321[/C][C]NA[/C][C]NA[/C][C]-27.5599[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]2614[/C][C]NA[/C][C]NA[/C][C]51.2318[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=285505&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=285505&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
11554NANA-282.737NA
21994NANA98.9609NA
31961NANA-240.449NA
41716NANA-123.81NA
51425NANA-65.5877NA
61664NANA310.648NA
715241551.41578.96-27.5599-27.3984
813421581.111529.8851.2318-239.107
914491435.771462.62-26.851613.2266
1016221666.161403.38262.784-44.1589
1115301341.141377.12-35.987188.862
1213851456.481377.1279.3568-71.4818
1311171099.221381.96-282.73717.7786
1412531484.591385.6298.9609-231.586
1510881150.381390.83-240.449-62.3845
1611671281.191405-123.81-114.19
1713441350.621416.21-65.5877-6.62066
1817451737.321426.67310.6487.6849
1915591415.861443.42-27.5599143.143
2013951515.941464.7151.2318-120.94
2115211463.441490.29-26.851657.5599
2218901783.161520.38262.784106.841
2315311513.31549.29-35.98717.6953
2416351643.771564.4279.3568-8.77344
2512691286.051568.79-282.737-17.0547
26161216901591.0498.9609-78.0026
2713431380.591621.04-240.449-37.5929
2816341515.191639-123.81118.81
2915711590.411656-65.5877-19.4123
3018811990.151679.5310.648-109.148
3115281692.111719.67-27.5599-164.107
3219601823.691772.4651.2318136.31
3316761801.021827.88-26.8516-125.023
3421662129.871867.08262.78436.1328
3516631867.431903.42-35.987-204.43
3620672033.771954.4279.356833.2266
3718011728.392011.12-282.73772.612
3823472158.092059.1298.9609188.914
3919381861.222101.67-240.44976.7821
4019802007.822131.62-123.81-27.8151
4120972094.162159.75-65.58772.83767
4225792500.732190.08310.64878.2682
4321912173.572201.12-27.559917.4349
4424492256.192204.9651.2318192.81
4522082184.692211.54-26.851623.3099
4623532482.742219.96262.784-129.742
4721512184.052220.04-35.987-33.0547
4823072290.92211.5479.356816.1016
4918261930.262213-282.737-104.263
5024142324.252225.2998.960989.7474
512029NANA-240.449NA
522091NANA-123.81NA
531988NANA-65.5877NA
542484NANA310.648NA
552321NANA-27.5599NA
562614NANA51.2318NA



Parameters (Session):
par1 = grey ;
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')