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 13:49:18 +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/t148008179592f7fhvss3uw15l.htm/, Retrieved Mon, 20 May 2024 03:42:25 +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 03:42:25 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
106
106.8
106.5
107.6
107.6
107.6
108.9
108.5
108.9
108.7
108.4
108.4
109.2
109.3
109.4
109.3
109
108.8
108.7
106.1
106.2
109.7
108.4
108.3
108.1
110.6
111.8
111.7
112.2
111.1
111
111
113.6
114
116.1
115.5
115.8
115.6
114.1
114.2
113.4
112
110.9
111
112.8
113.8
114.7
113.9
114.5
113.8
113.8
113.7
113
113.1
112.4
112.8
113.2
112.9
113.9
113.2




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.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 & 'Sir Ronald Aylmer Fisher' @ fisher.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]'Sir Ronald Aylmer Fisher' @ fisher.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'Sir Ronald Aylmer Fisher' @ fisher.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1106NANA0.450174NA
2106.8NANA0.793924NA
3106.5NANA0.65434NA
4107.6NANA0.515799NA
5107.6NANA0.0897569NA
6107.6NANA-0.667535NA
7108.9107.161107.958-0.7977431.73941
8108.5106.512108.196-1.68421.98837
9108.9107.813108.421-0.608161.08733
10108.7109.04108.6130.427257-0.339757
11108.4109.399108.7420.657465-0.999132
12108.4109.019108.850.168924-0.618924
13109.2109.342108.8920.450174-0.14184
14109.3109.577108.7830.793924-0.277257
15109.4109.225108.5710.654340.174826
16109.3109.016108.50.5157990.284201
17109108.631108.5420.08975690.368576
18108.8107.87108.538-0.6675350.930035
19108.7107.69108.487-0.7977431.01024
20106.1106.812108.496-1.6842-0.711632
21106.2108.042108.65-0.60816-1.84184
22109.7109.277108.850.4272570.422743
23108.4109.741109.0830.657465-1.3408
24108.3109.481109.3120.168924-1.18142
25108.1109.954109.5040.450174-1.85434
26110.6110.598109.8040.7939240.00190972
27111.8110.971110.3170.654340.828993
28111.7111.32110.8040.5157990.380035
29112.2111.394111.3040.08975690.806076
30111.1111.257111.925-0.667535-0.157465
31111111.748112.546-0.797743-0.74809
32111111.391113.075-1.6842-0.390799
33113.6112.771113.379-0.608160.828993
34114114.006113.5790.427257-0.00642361
35116.1114.391113.7330.6574651.7092
36115.5113.99113.8210.1689241.51024
37115.8114.304113.8540.4501741.49566
38115.6114.644113.850.7939240.956076
39114.1114.471113.8170.65434-0.371007
40114.2114.291113.7750.515799-0.0907986
41113.4113.798113.7080.0897569-0.39809
42112112.916113.583-0.667535-0.915799
43110.9112.665113.462-0.797743-1.76476
44111111.649113.333-1.6842-0.649132
45112.8112.638113.246-0.608160.162326
46113.8113.64113.2120.4272570.160243
47114.7113.832113.1750.6574650.867535
48113.9113.373113.2040.1689240.52691
49114.5113.763113.3120.4501740.737326
50113.8114.244113.450.793924-0.443924
51113.8114.196113.5420.65434-0.396007
52113.7114.037113.5210.515799-0.336632
53113113.54113.450.0897569-0.539757
54113.1112.72113.388-0.6675350.380035
55112.4NANA-0.797743NA
56112.8NANA-1.6842NA
57113.2NANA-0.60816NA
58112.9NANA0.427257NA
59113.9NANA0.657465NA
60113.2NANA0.168924NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 106 & NA & NA & 0.450174 & NA \tabularnewline
2 & 106.8 & NA & NA & 0.793924 & NA \tabularnewline
3 & 106.5 & NA & NA & 0.65434 & NA \tabularnewline
4 & 107.6 & NA & NA & 0.515799 & NA \tabularnewline
5 & 107.6 & NA & NA & 0.0897569 & NA \tabularnewline
6 & 107.6 & NA & NA & -0.667535 & NA \tabularnewline
7 & 108.9 & 107.161 & 107.958 & -0.797743 & 1.73941 \tabularnewline
8 & 108.5 & 106.512 & 108.196 & -1.6842 & 1.98837 \tabularnewline
9 & 108.9 & 107.813 & 108.421 & -0.60816 & 1.08733 \tabularnewline
10 & 108.7 & 109.04 & 108.613 & 0.427257 & -0.339757 \tabularnewline
11 & 108.4 & 109.399 & 108.742 & 0.657465 & -0.999132 \tabularnewline
12 & 108.4 & 109.019 & 108.85 & 0.168924 & -0.618924 \tabularnewline
13 & 109.2 & 109.342 & 108.892 & 0.450174 & -0.14184 \tabularnewline
14 & 109.3 & 109.577 & 108.783 & 0.793924 & -0.277257 \tabularnewline
15 & 109.4 & 109.225 & 108.571 & 0.65434 & 0.174826 \tabularnewline
16 & 109.3 & 109.016 & 108.5 & 0.515799 & 0.284201 \tabularnewline
17 & 109 & 108.631 & 108.542 & 0.0897569 & 0.368576 \tabularnewline
18 & 108.8 & 107.87 & 108.538 & -0.667535 & 0.930035 \tabularnewline
19 & 108.7 & 107.69 & 108.487 & -0.797743 & 1.01024 \tabularnewline
20 & 106.1 & 106.812 & 108.496 & -1.6842 & -0.711632 \tabularnewline
21 & 106.2 & 108.042 & 108.65 & -0.60816 & -1.84184 \tabularnewline
22 & 109.7 & 109.277 & 108.85 & 0.427257 & 0.422743 \tabularnewline
23 & 108.4 & 109.741 & 109.083 & 0.657465 & -1.3408 \tabularnewline
24 & 108.3 & 109.481 & 109.312 & 0.168924 & -1.18142 \tabularnewline
25 & 108.1 & 109.954 & 109.504 & 0.450174 & -1.85434 \tabularnewline
26 & 110.6 & 110.598 & 109.804 & 0.793924 & 0.00190972 \tabularnewline
27 & 111.8 & 110.971 & 110.317 & 0.65434 & 0.828993 \tabularnewline
28 & 111.7 & 111.32 & 110.804 & 0.515799 & 0.380035 \tabularnewline
29 & 112.2 & 111.394 & 111.304 & 0.0897569 & 0.806076 \tabularnewline
30 & 111.1 & 111.257 & 111.925 & -0.667535 & -0.157465 \tabularnewline
31 & 111 & 111.748 & 112.546 & -0.797743 & -0.74809 \tabularnewline
32 & 111 & 111.391 & 113.075 & -1.6842 & -0.390799 \tabularnewline
33 & 113.6 & 112.771 & 113.379 & -0.60816 & 0.828993 \tabularnewline
34 & 114 & 114.006 & 113.579 & 0.427257 & -0.00642361 \tabularnewline
35 & 116.1 & 114.391 & 113.733 & 0.657465 & 1.7092 \tabularnewline
36 & 115.5 & 113.99 & 113.821 & 0.168924 & 1.51024 \tabularnewline
37 & 115.8 & 114.304 & 113.854 & 0.450174 & 1.49566 \tabularnewline
38 & 115.6 & 114.644 & 113.85 & 0.793924 & 0.956076 \tabularnewline
39 & 114.1 & 114.471 & 113.817 & 0.65434 & -0.371007 \tabularnewline
40 & 114.2 & 114.291 & 113.775 & 0.515799 & -0.0907986 \tabularnewline
41 & 113.4 & 113.798 & 113.708 & 0.0897569 & -0.39809 \tabularnewline
42 & 112 & 112.916 & 113.583 & -0.667535 & -0.915799 \tabularnewline
43 & 110.9 & 112.665 & 113.462 & -0.797743 & -1.76476 \tabularnewline
44 & 111 & 111.649 & 113.333 & -1.6842 & -0.649132 \tabularnewline
45 & 112.8 & 112.638 & 113.246 & -0.60816 & 0.162326 \tabularnewline
46 & 113.8 & 113.64 & 113.212 & 0.427257 & 0.160243 \tabularnewline
47 & 114.7 & 113.832 & 113.175 & 0.657465 & 0.867535 \tabularnewline
48 & 113.9 & 113.373 & 113.204 & 0.168924 & 0.52691 \tabularnewline
49 & 114.5 & 113.763 & 113.312 & 0.450174 & 0.737326 \tabularnewline
50 & 113.8 & 114.244 & 113.45 & 0.793924 & -0.443924 \tabularnewline
51 & 113.8 & 114.196 & 113.542 & 0.65434 & -0.396007 \tabularnewline
52 & 113.7 & 114.037 & 113.521 & 0.515799 & -0.336632 \tabularnewline
53 & 113 & 113.54 & 113.45 & 0.0897569 & -0.539757 \tabularnewline
54 & 113.1 & 112.72 & 113.388 & -0.667535 & 0.380035 \tabularnewline
55 & 112.4 & NA & NA & -0.797743 & NA \tabularnewline
56 & 112.8 & NA & NA & -1.6842 & NA \tabularnewline
57 & 113.2 & NA & NA & -0.60816 & NA \tabularnewline
58 & 112.9 & NA & NA & 0.427257 & NA \tabularnewline
59 & 113.9 & NA & NA & 0.657465 & NA \tabularnewline
60 & 113.2 & NA & NA & 0.168924 & 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]106[/C][C]NA[/C][C]NA[/C][C]0.450174[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]106.8[/C][C]NA[/C][C]NA[/C][C]0.793924[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]106.5[/C][C]NA[/C][C]NA[/C][C]0.65434[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]0.515799[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]0.0897569[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]-0.667535[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]108.9[/C][C]107.161[/C][C]107.958[/C][C]-0.797743[/C][C]1.73941[/C][/ROW]
[ROW][C]8[/C][C]108.5[/C][C]106.512[/C][C]108.196[/C][C]-1.6842[/C][C]1.98837[/C][/ROW]
[ROW][C]9[/C][C]108.9[/C][C]107.813[/C][C]108.421[/C][C]-0.60816[/C][C]1.08733[/C][/ROW]
[ROW][C]10[/C][C]108.7[/C][C]109.04[/C][C]108.613[/C][C]0.427257[/C][C]-0.339757[/C][/ROW]
[ROW][C]11[/C][C]108.4[/C][C]109.399[/C][C]108.742[/C][C]0.657465[/C][C]-0.999132[/C][/ROW]
[ROW][C]12[/C][C]108.4[/C][C]109.019[/C][C]108.85[/C][C]0.168924[/C][C]-0.618924[/C][/ROW]
[ROW][C]13[/C][C]109.2[/C][C]109.342[/C][C]108.892[/C][C]0.450174[/C][C]-0.14184[/C][/ROW]
[ROW][C]14[/C][C]109.3[/C][C]109.577[/C][C]108.783[/C][C]0.793924[/C][C]-0.277257[/C][/ROW]
[ROW][C]15[/C][C]109.4[/C][C]109.225[/C][C]108.571[/C][C]0.65434[/C][C]0.174826[/C][/ROW]
[ROW][C]16[/C][C]109.3[/C][C]109.016[/C][C]108.5[/C][C]0.515799[/C][C]0.284201[/C][/ROW]
[ROW][C]17[/C][C]109[/C][C]108.631[/C][C]108.542[/C][C]0.0897569[/C][C]0.368576[/C][/ROW]
[ROW][C]18[/C][C]108.8[/C][C]107.87[/C][C]108.538[/C][C]-0.667535[/C][C]0.930035[/C][/ROW]
[ROW][C]19[/C][C]108.7[/C][C]107.69[/C][C]108.487[/C][C]-0.797743[/C][C]1.01024[/C][/ROW]
[ROW][C]20[/C][C]106.1[/C][C]106.812[/C][C]108.496[/C][C]-1.6842[/C][C]-0.711632[/C][/ROW]
[ROW][C]21[/C][C]106.2[/C][C]108.042[/C][C]108.65[/C][C]-0.60816[/C][C]-1.84184[/C][/ROW]
[ROW][C]22[/C][C]109.7[/C][C]109.277[/C][C]108.85[/C][C]0.427257[/C][C]0.422743[/C][/ROW]
[ROW][C]23[/C][C]108.4[/C][C]109.741[/C][C]109.083[/C][C]0.657465[/C][C]-1.3408[/C][/ROW]
[ROW][C]24[/C][C]108.3[/C][C]109.481[/C][C]109.312[/C][C]0.168924[/C][C]-1.18142[/C][/ROW]
[ROW][C]25[/C][C]108.1[/C][C]109.954[/C][C]109.504[/C][C]0.450174[/C][C]-1.85434[/C][/ROW]
[ROW][C]26[/C][C]110.6[/C][C]110.598[/C][C]109.804[/C][C]0.793924[/C][C]0.00190972[/C][/ROW]
[ROW][C]27[/C][C]111.8[/C][C]110.971[/C][C]110.317[/C][C]0.65434[/C][C]0.828993[/C][/ROW]
[ROW][C]28[/C][C]111.7[/C][C]111.32[/C][C]110.804[/C][C]0.515799[/C][C]0.380035[/C][/ROW]
[ROW][C]29[/C][C]112.2[/C][C]111.394[/C][C]111.304[/C][C]0.0897569[/C][C]0.806076[/C][/ROW]
[ROW][C]30[/C][C]111.1[/C][C]111.257[/C][C]111.925[/C][C]-0.667535[/C][C]-0.157465[/C][/ROW]
[ROW][C]31[/C][C]111[/C][C]111.748[/C][C]112.546[/C][C]-0.797743[/C][C]-0.74809[/C][/ROW]
[ROW][C]32[/C][C]111[/C][C]111.391[/C][C]113.075[/C][C]-1.6842[/C][C]-0.390799[/C][/ROW]
[ROW][C]33[/C][C]113.6[/C][C]112.771[/C][C]113.379[/C][C]-0.60816[/C][C]0.828993[/C][/ROW]
[ROW][C]34[/C][C]114[/C][C]114.006[/C][C]113.579[/C][C]0.427257[/C][C]-0.00642361[/C][/ROW]
[ROW][C]35[/C][C]116.1[/C][C]114.391[/C][C]113.733[/C][C]0.657465[/C][C]1.7092[/C][/ROW]
[ROW][C]36[/C][C]115.5[/C][C]113.99[/C][C]113.821[/C][C]0.168924[/C][C]1.51024[/C][/ROW]
[ROW][C]37[/C][C]115.8[/C][C]114.304[/C][C]113.854[/C][C]0.450174[/C][C]1.49566[/C][/ROW]
[ROW][C]38[/C][C]115.6[/C][C]114.644[/C][C]113.85[/C][C]0.793924[/C][C]0.956076[/C][/ROW]
[ROW][C]39[/C][C]114.1[/C][C]114.471[/C][C]113.817[/C][C]0.65434[/C][C]-0.371007[/C][/ROW]
[ROW][C]40[/C][C]114.2[/C][C]114.291[/C][C]113.775[/C][C]0.515799[/C][C]-0.0907986[/C][/ROW]
[ROW][C]41[/C][C]113.4[/C][C]113.798[/C][C]113.708[/C][C]0.0897569[/C][C]-0.39809[/C][/ROW]
[ROW][C]42[/C][C]112[/C][C]112.916[/C][C]113.583[/C][C]-0.667535[/C][C]-0.915799[/C][/ROW]
[ROW][C]43[/C][C]110.9[/C][C]112.665[/C][C]113.462[/C][C]-0.797743[/C][C]-1.76476[/C][/ROW]
[ROW][C]44[/C][C]111[/C][C]111.649[/C][C]113.333[/C][C]-1.6842[/C][C]-0.649132[/C][/ROW]
[ROW][C]45[/C][C]112.8[/C][C]112.638[/C][C]113.246[/C][C]-0.60816[/C][C]0.162326[/C][/ROW]
[ROW][C]46[/C][C]113.8[/C][C]113.64[/C][C]113.212[/C][C]0.427257[/C][C]0.160243[/C][/ROW]
[ROW][C]47[/C][C]114.7[/C][C]113.832[/C][C]113.175[/C][C]0.657465[/C][C]0.867535[/C][/ROW]
[ROW][C]48[/C][C]113.9[/C][C]113.373[/C][C]113.204[/C][C]0.168924[/C][C]0.52691[/C][/ROW]
[ROW][C]49[/C][C]114.5[/C][C]113.763[/C][C]113.312[/C][C]0.450174[/C][C]0.737326[/C][/ROW]
[ROW][C]50[/C][C]113.8[/C][C]114.244[/C][C]113.45[/C][C]0.793924[/C][C]-0.443924[/C][/ROW]
[ROW][C]51[/C][C]113.8[/C][C]114.196[/C][C]113.542[/C][C]0.65434[/C][C]-0.396007[/C][/ROW]
[ROW][C]52[/C][C]113.7[/C][C]114.037[/C][C]113.521[/C][C]0.515799[/C][C]-0.336632[/C][/ROW]
[ROW][C]53[/C][C]113[/C][C]113.54[/C][C]113.45[/C][C]0.0897569[/C][C]-0.539757[/C][/ROW]
[ROW][C]54[/C][C]113.1[/C][C]112.72[/C][C]113.388[/C][C]-0.667535[/C][C]0.380035[/C][/ROW]
[ROW][C]55[/C][C]112.4[/C][C]NA[/C][C]NA[/C][C]-0.797743[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]112.8[/C][C]NA[/C][C]NA[/C][C]-1.6842[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]113.2[/C][C]NA[/C][C]NA[/C][C]-0.60816[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]112.9[/C][C]NA[/C][C]NA[/C][C]0.427257[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]113.9[/C][C]NA[/C][C]NA[/C][C]0.657465[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]113.2[/C][C]NA[/C][C]NA[/C][C]0.168924[/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
1106NANA0.450174NA
2106.8NANA0.793924NA
3106.5NANA0.65434NA
4107.6NANA0.515799NA
5107.6NANA0.0897569NA
6107.6NANA-0.667535NA
7108.9107.161107.958-0.7977431.73941
8108.5106.512108.196-1.68421.98837
9108.9107.813108.421-0.608161.08733
10108.7109.04108.6130.427257-0.339757
11108.4109.399108.7420.657465-0.999132
12108.4109.019108.850.168924-0.618924
13109.2109.342108.8920.450174-0.14184
14109.3109.577108.7830.793924-0.277257
15109.4109.225108.5710.654340.174826
16109.3109.016108.50.5157990.284201
17109108.631108.5420.08975690.368576
18108.8107.87108.538-0.6675350.930035
19108.7107.69108.487-0.7977431.01024
20106.1106.812108.496-1.6842-0.711632
21106.2108.042108.65-0.60816-1.84184
22109.7109.277108.850.4272570.422743
23108.4109.741109.0830.657465-1.3408
24108.3109.481109.3120.168924-1.18142
25108.1109.954109.5040.450174-1.85434
26110.6110.598109.8040.7939240.00190972
27111.8110.971110.3170.654340.828993
28111.7111.32110.8040.5157990.380035
29112.2111.394111.3040.08975690.806076
30111.1111.257111.925-0.667535-0.157465
31111111.748112.546-0.797743-0.74809
32111111.391113.075-1.6842-0.390799
33113.6112.771113.379-0.608160.828993
34114114.006113.5790.427257-0.00642361
35116.1114.391113.7330.6574651.7092
36115.5113.99113.8210.1689241.51024
37115.8114.304113.8540.4501741.49566
38115.6114.644113.850.7939240.956076
39114.1114.471113.8170.65434-0.371007
40114.2114.291113.7750.515799-0.0907986
41113.4113.798113.7080.0897569-0.39809
42112112.916113.583-0.667535-0.915799
43110.9112.665113.462-0.797743-1.76476
44111111.649113.333-1.6842-0.649132
45112.8112.638113.246-0.608160.162326
46113.8113.64113.2120.4272570.160243
47114.7113.832113.1750.6574650.867535
48113.9113.373113.2040.1689240.52691
49114.5113.763113.3120.4501740.737326
50113.8114.244113.450.793924-0.443924
51113.8114.196113.5420.65434-0.396007
52113.7114.037113.5210.515799-0.336632
53113113.54113.450.0897569-0.539757
54113.1112.72113.388-0.6675350.380035
55112.4NANA-0.797743NA
56112.8NANA-1.6842NA
57113.2NANA-0.60816NA
58112.9NANA0.427257NA
59113.9NANA0.657465NA
60113.2NANA0.168924NA



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