Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationFri, 25 Nov 2016 09:45:34 +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/25/t1480067147v3mjalss2n4b66r.htm/, Retrieved Mon, 20 May 2024 02:01:05 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Mon, 20 May 2024 02:01:05 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
726
784
884
696
893
674
703
799
793
799
1022
758
1021
944
915
864
1022
891
1087
822
890
1092
967
833
1104
1063
1103
1039
1185
1047
1155
878
879
1133
920
943
938
900
781
1040
792
653
866
679
799
760
699
762
671
679
862
624
516
650
583
444
562
540
524
683




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
1726NANA48.8446NA
2784NANA16.7925NA
3884NANA41.6467NA
4696NANA23.2509NA
5893NANA18.1363NA
6674NANA-44.395NA
7703860.313806.54253.7717-157.313
8799722.688825.5-102.81276.3116
9793777.72833.458-55.738715.2804
10799892.74841.7550.9905-93.7405
111022865.793854.12511.6675156.207
12758806.386868.542-62.1554-48.3863
131021942.428893.58348.844678.572
14944927.334910.54216.792516.6658
15915957.188915.54241.6467-42.1884
16864955.043931.79223.2509-91.0425
171022959.845941.70818.136362.1554
18891898.147942.542-44.395-7.1467
1910871002.9949.12553.771784.1033
20822854.73957.542-102.812-32.73
21890914.595970.333-55.7387-24.5946
2210921036.45985.45850.990555.5512
239671011.21999.54211.6675-44.2092
24833950.6781012.83-62.1554-117.678
2511041071.011022.1748.844632.9887
2610631044.131027.3316.792518.8741
2711031070.861029.2141.646732.145
2810391053.711030.4623.2509-14.7092
2911851048.341030.2118.1363136.655
301047988.4381032.83-44.39558.5616
3111551084.271030.553.771770.7283
32878913.981016.79-102.812-35.98
33879940.845996.583-55.7387-61.8446
3411331034.2983.20850.990598.8012
35920978.543966.87511.6675-58.5425
36943871.928934.083-62.155471.072
37938954.47905.62548.8446-16.4696
38900902.084885.29216.7925-2.0842
39781915.313873.66741.6467-134.313
401040878.043854.79223.2509161.957
41792848.178830.04218.1363-56.178
42653768.897813.292-44.395-115.897
43866848.397794.62553.771717.6033
44679671.48774.292-102.8127.51997
45799712.72768.458-55.738786.2804
46760805.49754.550.9905-45.4905
47699737.334725.66711.6675-38.3342
48762651.886714.042-62.1554110.114
49671750.97702.12548.8446-79.9696
50679697.334680.54216.7925-18.3342
51862702.522660.87541.6467159.478
52624665.084641.83323.2509-41.0842
53516643.511625.37518.1363-127.511
54650570.397614.792-44.39579.6033
55583NANA53.7717NA
56444NANA-102.812NA
57562NANA-55.7387NA
58540NANA50.9905NA
59524NANA11.6675NA
60683NANA-62.1554NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 726 & NA & NA & 48.8446 & NA \tabularnewline
2 & 784 & NA & NA & 16.7925 & NA \tabularnewline
3 & 884 & NA & NA & 41.6467 & NA \tabularnewline
4 & 696 & NA & NA & 23.2509 & NA \tabularnewline
5 & 893 & NA & NA & 18.1363 & NA \tabularnewline
6 & 674 & NA & NA & -44.395 & NA \tabularnewline
7 & 703 & 860.313 & 806.542 & 53.7717 & -157.313 \tabularnewline
8 & 799 & 722.688 & 825.5 & -102.812 & 76.3116 \tabularnewline
9 & 793 & 777.72 & 833.458 & -55.7387 & 15.2804 \tabularnewline
10 & 799 & 892.74 & 841.75 & 50.9905 & -93.7405 \tabularnewline
11 & 1022 & 865.793 & 854.125 & 11.6675 & 156.207 \tabularnewline
12 & 758 & 806.386 & 868.542 & -62.1554 & -48.3863 \tabularnewline
13 & 1021 & 942.428 & 893.583 & 48.8446 & 78.572 \tabularnewline
14 & 944 & 927.334 & 910.542 & 16.7925 & 16.6658 \tabularnewline
15 & 915 & 957.188 & 915.542 & 41.6467 & -42.1884 \tabularnewline
16 & 864 & 955.043 & 931.792 & 23.2509 & -91.0425 \tabularnewline
17 & 1022 & 959.845 & 941.708 & 18.1363 & 62.1554 \tabularnewline
18 & 891 & 898.147 & 942.542 & -44.395 & -7.1467 \tabularnewline
19 & 1087 & 1002.9 & 949.125 & 53.7717 & 84.1033 \tabularnewline
20 & 822 & 854.73 & 957.542 & -102.812 & -32.73 \tabularnewline
21 & 890 & 914.595 & 970.333 & -55.7387 & -24.5946 \tabularnewline
22 & 1092 & 1036.45 & 985.458 & 50.9905 & 55.5512 \tabularnewline
23 & 967 & 1011.21 & 999.542 & 11.6675 & -44.2092 \tabularnewline
24 & 833 & 950.678 & 1012.83 & -62.1554 & -117.678 \tabularnewline
25 & 1104 & 1071.01 & 1022.17 & 48.8446 & 32.9887 \tabularnewline
26 & 1063 & 1044.13 & 1027.33 & 16.7925 & 18.8741 \tabularnewline
27 & 1103 & 1070.86 & 1029.21 & 41.6467 & 32.145 \tabularnewline
28 & 1039 & 1053.71 & 1030.46 & 23.2509 & -14.7092 \tabularnewline
29 & 1185 & 1048.34 & 1030.21 & 18.1363 & 136.655 \tabularnewline
30 & 1047 & 988.438 & 1032.83 & -44.395 & 58.5616 \tabularnewline
31 & 1155 & 1084.27 & 1030.5 & 53.7717 & 70.7283 \tabularnewline
32 & 878 & 913.98 & 1016.79 & -102.812 & -35.98 \tabularnewline
33 & 879 & 940.845 & 996.583 & -55.7387 & -61.8446 \tabularnewline
34 & 1133 & 1034.2 & 983.208 & 50.9905 & 98.8012 \tabularnewline
35 & 920 & 978.543 & 966.875 & 11.6675 & -58.5425 \tabularnewline
36 & 943 & 871.928 & 934.083 & -62.1554 & 71.072 \tabularnewline
37 & 938 & 954.47 & 905.625 & 48.8446 & -16.4696 \tabularnewline
38 & 900 & 902.084 & 885.292 & 16.7925 & -2.0842 \tabularnewline
39 & 781 & 915.313 & 873.667 & 41.6467 & -134.313 \tabularnewline
40 & 1040 & 878.043 & 854.792 & 23.2509 & 161.957 \tabularnewline
41 & 792 & 848.178 & 830.042 & 18.1363 & -56.178 \tabularnewline
42 & 653 & 768.897 & 813.292 & -44.395 & -115.897 \tabularnewline
43 & 866 & 848.397 & 794.625 & 53.7717 & 17.6033 \tabularnewline
44 & 679 & 671.48 & 774.292 & -102.812 & 7.51997 \tabularnewline
45 & 799 & 712.72 & 768.458 & -55.7387 & 86.2804 \tabularnewline
46 & 760 & 805.49 & 754.5 & 50.9905 & -45.4905 \tabularnewline
47 & 699 & 737.334 & 725.667 & 11.6675 & -38.3342 \tabularnewline
48 & 762 & 651.886 & 714.042 & -62.1554 & 110.114 \tabularnewline
49 & 671 & 750.97 & 702.125 & 48.8446 & -79.9696 \tabularnewline
50 & 679 & 697.334 & 680.542 & 16.7925 & -18.3342 \tabularnewline
51 & 862 & 702.522 & 660.875 & 41.6467 & 159.478 \tabularnewline
52 & 624 & 665.084 & 641.833 & 23.2509 & -41.0842 \tabularnewline
53 & 516 & 643.511 & 625.375 & 18.1363 & -127.511 \tabularnewline
54 & 650 & 570.397 & 614.792 & -44.395 & 79.6033 \tabularnewline
55 & 583 & NA & NA & 53.7717 & NA \tabularnewline
56 & 444 & NA & NA & -102.812 & NA \tabularnewline
57 & 562 & NA & NA & -55.7387 & NA \tabularnewline
58 & 540 & NA & NA & 50.9905 & NA \tabularnewline
59 & 524 & NA & NA & 11.6675 & NA \tabularnewline
60 & 683 & NA & NA & -62.1554 & 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]726[/C][C]NA[/C][C]NA[/C][C]48.8446[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]784[/C][C]NA[/C][C]NA[/C][C]16.7925[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]884[/C][C]NA[/C][C]NA[/C][C]41.6467[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]696[/C][C]NA[/C][C]NA[/C][C]23.2509[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]893[/C][C]NA[/C][C]NA[/C][C]18.1363[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]674[/C][C]NA[/C][C]NA[/C][C]-44.395[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]703[/C][C]860.313[/C][C]806.542[/C][C]53.7717[/C][C]-157.313[/C][/ROW]
[ROW][C]8[/C][C]799[/C][C]722.688[/C][C]825.5[/C][C]-102.812[/C][C]76.3116[/C][/ROW]
[ROW][C]9[/C][C]793[/C][C]777.72[/C][C]833.458[/C][C]-55.7387[/C][C]15.2804[/C][/ROW]
[ROW][C]10[/C][C]799[/C][C]892.74[/C][C]841.75[/C][C]50.9905[/C][C]-93.7405[/C][/ROW]
[ROW][C]11[/C][C]1022[/C][C]865.793[/C][C]854.125[/C][C]11.6675[/C][C]156.207[/C][/ROW]
[ROW][C]12[/C][C]758[/C][C]806.386[/C][C]868.542[/C][C]-62.1554[/C][C]-48.3863[/C][/ROW]
[ROW][C]13[/C][C]1021[/C][C]942.428[/C][C]893.583[/C][C]48.8446[/C][C]78.572[/C][/ROW]
[ROW][C]14[/C][C]944[/C][C]927.334[/C][C]910.542[/C][C]16.7925[/C][C]16.6658[/C][/ROW]
[ROW][C]15[/C][C]915[/C][C]957.188[/C][C]915.542[/C][C]41.6467[/C][C]-42.1884[/C][/ROW]
[ROW][C]16[/C][C]864[/C][C]955.043[/C][C]931.792[/C][C]23.2509[/C][C]-91.0425[/C][/ROW]
[ROW][C]17[/C][C]1022[/C][C]959.845[/C][C]941.708[/C][C]18.1363[/C][C]62.1554[/C][/ROW]
[ROW][C]18[/C][C]891[/C][C]898.147[/C][C]942.542[/C][C]-44.395[/C][C]-7.1467[/C][/ROW]
[ROW][C]19[/C][C]1087[/C][C]1002.9[/C][C]949.125[/C][C]53.7717[/C][C]84.1033[/C][/ROW]
[ROW][C]20[/C][C]822[/C][C]854.73[/C][C]957.542[/C][C]-102.812[/C][C]-32.73[/C][/ROW]
[ROW][C]21[/C][C]890[/C][C]914.595[/C][C]970.333[/C][C]-55.7387[/C][C]-24.5946[/C][/ROW]
[ROW][C]22[/C][C]1092[/C][C]1036.45[/C][C]985.458[/C][C]50.9905[/C][C]55.5512[/C][/ROW]
[ROW][C]23[/C][C]967[/C][C]1011.21[/C][C]999.542[/C][C]11.6675[/C][C]-44.2092[/C][/ROW]
[ROW][C]24[/C][C]833[/C][C]950.678[/C][C]1012.83[/C][C]-62.1554[/C][C]-117.678[/C][/ROW]
[ROW][C]25[/C][C]1104[/C][C]1071.01[/C][C]1022.17[/C][C]48.8446[/C][C]32.9887[/C][/ROW]
[ROW][C]26[/C][C]1063[/C][C]1044.13[/C][C]1027.33[/C][C]16.7925[/C][C]18.8741[/C][/ROW]
[ROW][C]27[/C][C]1103[/C][C]1070.86[/C][C]1029.21[/C][C]41.6467[/C][C]32.145[/C][/ROW]
[ROW][C]28[/C][C]1039[/C][C]1053.71[/C][C]1030.46[/C][C]23.2509[/C][C]-14.7092[/C][/ROW]
[ROW][C]29[/C][C]1185[/C][C]1048.34[/C][C]1030.21[/C][C]18.1363[/C][C]136.655[/C][/ROW]
[ROW][C]30[/C][C]1047[/C][C]988.438[/C][C]1032.83[/C][C]-44.395[/C][C]58.5616[/C][/ROW]
[ROW][C]31[/C][C]1155[/C][C]1084.27[/C][C]1030.5[/C][C]53.7717[/C][C]70.7283[/C][/ROW]
[ROW][C]32[/C][C]878[/C][C]913.98[/C][C]1016.79[/C][C]-102.812[/C][C]-35.98[/C][/ROW]
[ROW][C]33[/C][C]879[/C][C]940.845[/C][C]996.583[/C][C]-55.7387[/C][C]-61.8446[/C][/ROW]
[ROW][C]34[/C][C]1133[/C][C]1034.2[/C][C]983.208[/C][C]50.9905[/C][C]98.8012[/C][/ROW]
[ROW][C]35[/C][C]920[/C][C]978.543[/C][C]966.875[/C][C]11.6675[/C][C]-58.5425[/C][/ROW]
[ROW][C]36[/C][C]943[/C][C]871.928[/C][C]934.083[/C][C]-62.1554[/C][C]71.072[/C][/ROW]
[ROW][C]37[/C][C]938[/C][C]954.47[/C][C]905.625[/C][C]48.8446[/C][C]-16.4696[/C][/ROW]
[ROW][C]38[/C][C]900[/C][C]902.084[/C][C]885.292[/C][C]16.7925[/C][C]-2.0842[/C][/ROW]
[ROW][C]39[/C][C]781[/C][C]915.313[/C][C]873.667[/C][C]41.6467[/C][C]-134.313[/C][/ROW]
[ROW][C]40[/C][C]1040[/C][C]878.043[/C][C]854.792[/C][C]23.2509[/C][C]161.957[/C][/ROW]
[ROW][C]41[/C][C]792[/C][C]848.178[/C][C]830.042[/C][C]18.1363[/C][C]-56.178[/C][/ROW]
[ROW][C]42[/C][C]653[/C][C]768.897[/C][C]813.292[/C][C]-44.395[/C][C]-115.897[/C][/ROW]
[ROW][C]43[/C][C]866[/C][C]848.397[/C][C]794.625[/C][C]53.7717[/C][C]17.6033[/C][/ROW]
[ROW][C]44[/C][C]679[/C][C]671.48[/C][C]774.292[/C][C]-102.812[/C][C]7.51997[/C][/ROW]
[ROW][C]45[/C][C]799[/C][C]712.72[/C][C]768.458[/C][C]-55.7387[/C][C]86.2804[/C][/ROW]
[ROW][C]46[/C][C]760[/C][C]805.49[/C][C]754.5[/C][C]50.9905[/C][C]-45.4905[/C][/ROW]
[ROW][C]47[/C][C]699[/C][C]737.334[/C][C]725.667[/C][C]11.6675[/C][C]-38.3342[/C][/ROW]
[ROW][C]48[/C][C]762[/C][C]651.886[/C][C]714.042[/C][C]-62.1554[/C][C]110.114[/C][/ROW]
[ROW][C]49[/C][C]671[/C][C]750.97[/C][C]702.125[/C][C]48.8446[/C][C]-79.9696[/C][/ROW]
[ROW][C]50[/C][C]679[/C][C]697.334[/C][C]680.542[/C][C]16.7925[/C][C]-18.3342[/C][/ROW]
[ROW][C]51[/C][C]862[/C][C]702.522[/C][C]660.875[/C][C]41.6467[/C][C]159.478[/C][/ROW]
[ROW][C]52[/C][C]624[/C][C]665.084[/C][C]641.833[/C][C]23.2509[/C][C]-41.0842[/C][/ROW]
[ROW][C]53[/C][C]516[/C][C]643.511[/C][C]625.375[/C][C]18.1363[/C][C]-127.511[/C][/ROW]
[ROW][C]54[/C][C]650[/C][C]570.397[/C][C]614.792[/C][C]-44.395[/C][C]79.6033[/C][/ROW]
[ROW][C]55[/C][C]583[/C][C]NA[/C][C]NA[/C][C]53.7717[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]444[/C][C]NA[/C][C]NA[/C][C]-102.812[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]562[/C][C]NA[/C][C]NA[/C][C]-55.7387[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]540[/C][C]NA[/C][C]NA[/C][C]50.9905[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]524[/C][C]NA[/C][C]NA[/C][C]11.6675[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]683[/C][C]NA[/C][C]NA[/C][C]-62.1554[/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
1726NANA48.8446NA
2784NANA16.7925NA
3884NANA41.6467NA
4696NANA23.2509NA
5893NANA18.1363NA
6674NANA-44.395NA
7703860.313806.54253.7717-157.313
8799722.688825.5-102.81276.3116
9793777.72833.458-55.738715.2804
10799892.74841.7550.9905-93.7405
111022865.793854.12511.6675156.207
12758806.386868.542-62.1554-48.3863
131021942.428893.58348.844678.572
14944927.334910.54216.792516.6658
15915957.188915.54241.6467-42.1884
16864955.043931.79223.2509-91.0425
171022959.845941.70818.136362.1554
18891898.147942.542-44.395-7.1467
1910871002.9949.12553.771784.1033
20822854.73957.542-102.812-32.73
21890914.595970.333-55.7387-24.5946
2210921036.45985.45850.990555.5512
239671011.21999.54211.6675-44.2092
24833950.6781012.83-62.1554-117.678
2511041071.011022.1748.844632.9887
2610631044.131027.3316.792518.8741
2711031070.861029.2141.646732.145
2810391053.711030.4623.2509-14.7092
2911851048.341030.2118.1363136.655
301047988.4381032.83-44.39558.5616
3111551084.271030.553.771770.7283
32878913.981016.79-102.812-35.98
33879940.845996.583-55.7387-61.8446
3411331034.2983.20850.990598.8012
35920978.543966.87511.6675-58.5425
36943871.928934.083-62.155471.072
37938954.47905.62548.8446-16.4696
38900902.084885.29216.7925-2.0842
39781915.313873.66741.6467-134.313
401040878.043854.79223.2509161.957
41792848.178830.04218.1363-56.178
42653768.897813.292-44.395-115.897
43866848.397794.62553.771717.6033
44679671.48774.292-102.8127.51997
45799712.72768.458-55.738786.2804
46760805.49754.550.9905-45.4905
47699737.334725.66711.6675-38.3342
48762651.886714.042-62.1554110.114
49671750.97702.12548.8446-79.9696
50679697.334680.54216.7925-18.3342
51862702.522660.87541.6467159.478
52624665.084641.83323.2509-41.0842
53516643.511625.37518.1363-127.511
54650570.397614.792-44.39579.6033
55583NANA53.7717NA
56444NANA-102.812NA
57562NANA-55.7387NA
58540NANA50.9905NA
59524NANA11.6675NA
60683NANA-62.1554NA



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