Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 30 Apr 2017 10:34:58 +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/2017/Apr/30/t1493544990m3c6saqr83dg6nz.htm/, Retrieved Sun, 12 May 2024 18:35:02 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sun, 12 May 2024 18:35:02 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
93.09
93.02
93.23
92.7
92.68
93.11
93.02
93.29
93.2
92.86
93.04
92.8
93.11
93.42
94.01
94.47
94.07
94.33
94.43
95.37
95.83
95.46
96
95.35
96.85
97.84
98.38
98.9
99.51
99.95
99.93
101.4
101.7
101.65
102.33
101.56
101.91
102.29
102.44
102.84
103.2
103.23
103.16
103.31
103.04
102.57
102.88
101.91
102.59
103.27
103.59
104.35
104.6
105.08
104.93
105.15
104.67
104.55
109.82
109.25




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=&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=&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'George Udny Yule' @ yule.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
193.09NANA0.995546NA
293.02NANA0.998984NA
393.23NANA1.0006NA
492.7NANA1.0035NA
592.68NANA1.00248NA
693.11NANA1.00205NA
793.0292.968393.00420.9996151.00056
893.2993.462893.02171.004740.998152
993.293.405593.07081.00360.9978
1092.8693.001193.17710.9981110.998483
1193.0493.30293.30880.9999280.997192
1292.892.562293.41750.9908451.00257
1393.1193.110593.52710.9955460.999995
1493.4293.577393.67250.9989840.998319
1594.0193.925593.86881.00061.0009
1694.4794.416294.08671.00351.00057
1794.0794.551994.31831.002480.994903
1894.3394.741894.54791.002050.995654
1994.4394.773594.810.9996150.996376
2095.3795.601295.151.004740.997582
2195.8395.859795.51621.00360.99969
2295.4695.701895.88290.9981110.997474
239696.287296.29420.9999280.997017
2495.3595.869296.7550.9908450.994584
2596.8596.785397.21830.9955461.00067
2697.8497.599597.69870.9989841.00246
2798.3898.25498.19461.00061.00128
2898.999.042898.69711.00350.998558
2999.5199.464599.21881.002481.00046
3099.9599.945799.74131.002051.00004
3199.93100.172100.2110.9996150.997582
32101.4101.084100.6071.004741.00312
33101.7101.325100.9621.00361.0037
34101.65101.104101.2950.9981111.0054
35102.33101.606101.6130.9999281.00713
36101.56100.97101.9030.9908451.00584
37101.91101.719102.1750.9955461.00187
38102.29102.285102.3890.9989841.00005
39102.44102.586102.5241.00060.998575
40102.84102.978102.6181.00350.998662
41103.2102.934102.681.002481.00259
42103.23102.928102.7171.002051.00294
43103.16102.72102.760.9996151.00428
44103.31103.317102.8291.004740.999935
45103.04103.288102.9181.00360.997599
46102.57102.834103.0290.9981110.997432
47102.88103.143103.150.9999280.997454
48101.91102.34103.2850.9908450.9958
49102.59102.976103.4360.9955460.996256
50103.27103.481103.5870.9989840.997957
51103.59103.794103.7311.00060.998035
52104.35104.246103.8821.00351.001
53104.6104.512104.2531.002481.00085
54105.08105.063104.8481.002051.00016
55104.93NANA0.999615NA
56105.15NANA1.00474NA
57104.67NANA1.0036NA
58104.55NANA0.998111NA
59109.82NANA0.999928NA
60109.25NANA0.990845NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 93.09 & NA & NA & 0.995546 & NA \tabularnewline
2 & 93.02 & NA & NA & 0.998984 & NA \tabularnewline
3 & 93.23 & NA & NA & 1.0006 & NA \tabularnewline
4 & 92.7 & NA & NA & 1.0035 & NA \tabularnewline
5 & 92.68 & NA & NA & 1.00248 & NA \tabularnewline
6 & 93.11 & NA & NA & 1.00205 & NA \tabularnewline
7 & 93.02 & 92.9683 & 93.0042 & 0.999615 & 1.00056 \tabularnewline
8 & 93.29 & 93.4628 & 93.0217 & 1.00474 & 0.998152 \tabularnewline
9 & 93.2 & 93.4055 & 93.0708 & 1.0036 & 0.9978 \tabularnewline
10 & 92.86 & 93.0011 & 93.1771 & 0.998111 & 0.998483 \tabularnewline
11 & 93.04 & 93.302 & 93.3088 & 0.999928 & 0.997192 \tabularnewline
12 & 92.8 & 92.5622 & 93.4175 & 0.990845 & 1.00257 \tabularnewline
13 & 93.11 & 93.1105 & 93.5271 & 0.995546 & 0.999995 \tabularnewline
14 & 93.42 & 93.5773 & 93.6725 & 0.998984 & 0.998319 \tabularnewline
15 & 94.01 & 93.9255 & 93.8688 & 1.0006 & 1.0009 \tabularnewline
16 & 94.47 & 94.4162 & 94.0867 & 1.0035 & 1.00057 \tabularnewline
17 & 94.07 & 94.5519 & 94.3183 & 1.00248 & 0.994903 \tabularnewline
18 & 94.33 & 94.7418 & 94.5479 & 1.00205 & 0.995654 \tabularnewline
19 & 94.43 & 94.7735 & 94.81 & 0.999615 & 0.996376 \tabularnewline
20 & 95.37 & 95.6012 & 95.15 & 1.00474 & 0.997582 \tabularnewline
21 & 95.83 & 95.8597 & 95.5162 & 1.0036 & 0.99969 \tabularnewline
22 & 95.46 & 95.7018 & 95.8829 & 0.998111 & 0.997474 \tabularnewline
23 & 96 & 96.2872 & 96.2942 & 0.999928 & 0.997017 \tabularnewline
24 & 95.35 & 95.8692 & 96.755 & 0.990845 & 0.994584 \tabularnewline
25 & 96.85 & 96.7853 & 97.2183 & 0.995546 & 1.00067 \tabularnewline
26 & 97.84 & 97.5995 & 97.6987 & 0.998984 & 1.00246 \tabularnewline
27 & 98.38 & 98.254 & 98.1946 & 1.0006 & 1.00128 \tabularnewline
28 & 98.9 & 99.0428 & 98.6971 & 1.0035 & 0.998558 \tabularnewline
29 & 99.51 & 99.4645 & 99.2188 & 1.00248 & 1.00046 \tabularnewline
30 & 99.95 & 99.9457 & 99.7413 & 1.00205 & 1.00004 \tabularnewline
31 & 99.93 & 100.172 & 100.211 & 0.999615 & 0.997582 \tabularnewline
32 & 101.4 & 101.084 & 100.607 & 1.00474 & 1.00312 \tabularnewline
33 & 101.7 & 101.325 & 100.962 & 1.0036 & 1.0037 \tabularnewline
34 & 101.65 & 101.104 & 101.295 & 0.998111 & 1.0054 \tabularnewline
35 & 102.33 & 101.606 & 101.613 & 0.999928 & 1.00713 \tabularnewline
36 & 101.56 & 100.97 & 101.903 & 0.990845 & 1.00584 \tabularnewline
37 & 101.91 & 101.719 & 102.175 & 0.995546 & 1.00187 \tabularnewline
38 & 102.29 & 102.285 & 102.389 & 0.998984 & 1.00005 \tabularnewline
39 & 102.44 & 102.586 & 102.524 & 1.0006 & 0.998575 \tabularnewline
40 & 102.84 & 102.978 & 102.618 & 1.0035 & 0.998662 \tabularnewline
41 & 103.2 & 102.934 & 102.68 & 1.00248 & 1.00259 \tabularnewline
42 & 103.23 & 102.928 & 102.717 & 1.00205 & 1.00294 \tabularnewline
43 & 103.16 & 102.72 & 102.76 & 0.999615 & 1.00428 \tabularnewline
44 & 103.31 & 103.317 & 102.829 & 1.00474 & 0.999935 \tabularnewline
45 & 103.04 & 103.288 & 102.918 & 1.0036 & 0.997599 \tabularnewline
46 & 102.57 & 102.834 & 103.029 & 0.998111 & 0.997432 \tabularnewline
47 & 102.88 & 103.143 & 103.15 & 0.999928 & 0.997454 \tabularnewline
48 & 101.91 & 102.34 & 103.285 & 0.990845 & 0.9958 \tabularnewline
49 & 102.59 & 102.976 & 103.436 & 0.995546 & 0.996256 \tabularnewline
50 & 103.27 & 103.481 & 103.587 & 0.998984 & 0.997957 \tabularnewline
51 & 103.59 & 103.794 & 103.731 & 1.0006 & 0.998035 \tabularnewline
52 & 104.35 & 104.246 & 103.882 & 1.0035 & 1.001 \tabularnewline
53 & 104.6 & 104.512 & 104.253 & 1.00248 & 1.00085 \tabularnewline
54 & 105.08 & 105.063 & 104.848 & 1.00205 & 1.00016 \tabularnewline
55 & 104.93 & NA & NA & 0.999615 & NA \tabularnewline
56 & 105.15 & NA & NA & 1.00474 & NA \tabularnewline
57 & 104.67 & NA & NA & 1.0036 & NA \tabularnewline
58 & 104.55 & NA & NA & 0.998111 & NA \tabularnewline
59 & 109.82 & NA & NA & 0.999928 & NA \tabularnewline
60 & 109.25 & NA & NA & 0.990845 & 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]93.09[/C][C]NA[/C][C]NA[/C][C]0.995546[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]93.02[/C][C]NA[/C][C]NA[/C][C]0.998984[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]93.23[/C][C]NA[/C][C]NA[/C][C]1.0006[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]92.7[/C][C]NA[/C][C]NA[/C][C]1.0035[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]92.68[/C][C]NA[/C][C]NA[/C][C]1.00248[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]93.11[/C][C]NA[/C][C]NA[/C][C]1.00205[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]93.02[/C][C]92.9683[/C][C]93.0042[/C][C]0.999615[/C][C]1.00056[/C][/ROW]
[ROW][C]8[/C][C]93.29[/C][C]93.4628[/C][C]93.0217[/C][C]1.00474[/C][C]0.998152[/C][/ROW]
[ROW][C]9[/C][C]93.2[/C][C]93.4055[/C][C]93.0708[/C][C]1.0036[/C][C]0.9978[/C][/ROW]
[ROW][C]10[/C][C]92.86[/C][C]93.0011[/C][C]93.1771[/C][C]0.998111[/C][C]0.998483[/C][/ROW]
[ROW][C]11[/C][C]93.04[/C][C]93.302[/C][C]93.3088[/C][C]0.999928[/C][C]0.997192[/C][/ROW]
[ROW][C]12[/C][C]92.8[/C][C]92.5622[/C][C]93.4175[/C][C]0.990845[/C][C]1.00257[/C][/ROW]
[ROW][C]13[/C][C]93.11[/C][C]93.1105[/C][C]93.5271[/C][C]0.995546[/C][C]0.999995[/C][/ROW]
[ROW][C]14[/C][C]93.42[/C][C]93.5773[/C][C]93.6725[/C][C]0.998984[/C][C]0.998319[/C][/ROW]
[ROW][C]15[/C][C]94.01[/C][C]93.9255[/C][C]93.8688[/C][C]1.0006[/C][C]1.0009[/C][/ROW]
[ROW][C]16[/C][C]94.47[/C][C]94.4162[/C][C]94.0867[/C][C]1.0035[/C][C]1.00057[/C][/ROW]
[ROW][C]17[/C][C]94.07[/C][C]94.5519[/C][C]94.3183[/C][C]1.00248[/C][C]0.994903[/C][/ROW]
[ROW][C]18[/C][C]94.33[/C][C]94.7418[/C][C]94.5479[/C][C]1.00205[/C][C]0.995654[/C][/ROW]
[ROW][C]19[/C][C]94.43[/C][C]94.7735[/C][C]94.81[/C][C]0.999615[/C][C]0.996376[/C][/ROW]
[ROW][C]20[/C][C]95.37[/C][C]95.6012[/C][C]95.15[/C][C]1.00474[/C][C]0.997582[/C][/ROW]
[ROW][C]21[/C][C]95.83[/C][C]95.8597[/C][C]95.5162[/C][C]1.0036[/C][C]0.99969[/C][/ROW]
[ROW][C]22[/C][C]95.46[/C][C]95.7018[/C][C]95.8829[/C][C]0.998111[/C][C]0.997474[/C][/ROW]
[ROW][C]23[/C][C]96[/C][C]96.2872[/C][C]96.2942[/C][C]0.999928[/C][C]0.997017[/C][/ROW]
[ROW][C]24[/C][C]95.35[/C][C]95.8692[/C][C]96.755[/C][C]0.990845[/C][C]0.994584[/C][/ROW]
[ROW][C]25[/C][C]96.85[/C][C]96.7853[/C][C]97.2183[/C][C]0.995546[/C][C]1.00067[/C][/ROW]
[ROW][C]26[/C][C]97.84[/C][C]97.5995[/C][C]97.6987[/C][C]0.998984[/C][C]1.00246[/C][/ROW]
[ROW][C]27[/C][C]98.38[/C][C]98.254[/C][C]98.1946[/C][C]1.0006[/C][C]1.00128[/C][/ROW]
[ROW][C]28[/C][C]98.9[/C][C]99.0428[/C][C]98.6971[/C][C]1.0035[/C][C]0.998558[/C][/ROW]
[ROW][C]29[/C][C]99.51[/C][C]99.4645[/C][C]99.2188[/C][C]1.00248[/C][C]1.00046[/C][/ROW]
[ROW][C]30[/C][C]99.95[/C][C]99.9457[/C][C]99.7413[/C][C]1.00205[/C][C]1.00004[/C][/ROW]
[ROW][C]31[/C][C]99.93[/C][C]100.172[/C][C]100.211[/C][C]0.999615[/C][C]0.997582[/C][/ROW]
[ROW][C]32[/C][C]101.4[/C][C]101.084[/C][C]100.607[/C][C]1.00474[/C][C]1.00312[/C][/ROW]
[ROW][C]33[/C][C]101.7[/C][C]101.325[/C][C]100.962[/C][C]1.0036[/C][C]1.0037[/C][/ROW]
[ROW][C]34[/C][C]101.65[/C][C]101.104[/C][C]101.295[/C][C]0.998111[/C][C]1.0054[/C][/ROW]
[ROW][C]35[/C][C]102.33[/C][C]101.606[/C][C]101.613[/C][C]0.999928[/C][C]1.00713[/C][/ROW]
[ROW][C]36[/C][C]101.56[/C][C]100.97[/C][C]101.903[/C][C]0.990845[/C][C]1.00584[/C][/ROW]
[ROW][C]37[/C][C]101.91[/C][C]101.719[/C][C]102.175[/C][C]0.995546[/C][C]1.00187[/C][/ROW]
[ROW][C]38[/C][C]102.29[/C][C]102.285[/C][C]102.389[/C][C]0.998984[/C][C]1.00005[/C][/ROW]
[ROW][C]39[/C][C]102.44[/C][C]102.586[/C][C]102.524[/C][C]1.0006[/C][C]0.998575[/C][/ROW]
[ROW][C]40[/C][C]102.84[/C][C]102.978[/C][C]102.618[/C][C]1.0035[/C][C]0.998662[/C][/ROW]
[ROW][C]41[/C][C]103.2[/C][C]102.934[/C][C]102.68[/C][C]1.00248[/C][C]1.00259[/C][/ROW]
[ROW][C]42[/C][C]103.23[/C][C]102.928[/C][C]102.717[/C][C]1.00205[/C][C]1.00294[/C][/ROW]
[ROW][C]43[/C][C]103.16[/C][C]102.72[/C][C]102.76[/C][C]0.999615[/C][C]1.00428[/C][/ROW]
[ROW][C]44[/C][C]103.31[/C][C]103.317[/C][C]102.829[/C][C]1.00474[/C][C]0.999935[/C][/ROW]
[ROW][C]45[/C][C]103.04[/C][C]103.288[/C][C]102.918[/C][C]1.0036[/C][C]0.997599[/C][/ROW]
[ROW][C]46[/C][C]102.57[/C][C]102.834[/C][C]103.029[/C][C]0.998111[/C][C]0.997432[/C][/ROW]
[ROW][C]47[/C][C]102.88[/C][C]103.143[/C][C]103.15[/C][C]0.999928[/C][C]0.997454[/C][/ROW]
[ROW][C]48[/C][C]101.91[/C][C]102.34[/C][C]103.285[/C][C]0.990845[/C][C]0.9958[/C][/ROW]
[ROW][C]49[/C][C]102.59[/C][C]102.976[/C][C]103.436[/C][C]0.995546[/C][C]0.996256[/C][/ROW]
[ROW][C]50[/C][C]103.27[/C][C]103.481[/C][C]103.587[/C][C]0.998984[/C][C]0.997957[/C][/ROW]
[ROW][C]51[/C][C]103.59[/C][C]103.794[/C][C]103.731[/C][C]1.0006[/C][C]0.998035[/C][/ROW]
[ROW][C]52[/C][C]104.35[/C][C]104.246[/C][C]103.882[/C][C]1.0035[/C][C]1.001[/C][/ROW]
[ROW][C]53[/C][C]104.6[/C][C]104.512[/C][C]104.253[/C][C]1.00248[/C][C]1.00085[/C][/ROW]
[ROW][C]54[/C][C]105.08[/C][C]105.063[/C][C]104.848[/C][C]1.00205[/C][C]1.00016[/C][/ROW]
[ROW][C]55[/C][C]104.93[/C][C]NA[/C][C]NA[/C][C]0.999615[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]105.15[/C][C]NA[/C][C]NA[/C][C]1.00474[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]104.67[/C][C]NA[/C][C]NA[/C][C]1.0036[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]104.55[/C][C]NA[/C][C]NA[/C][C]0.998111[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]109.82[/C][C]NA[/C][C]NA[/C][C]0.999928[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]109.25[/C][C]NA[/C][C]NA[/C][C]0.990845[/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
193.09NANA0.995546NA
293.02NANA0.998984NA
393.23NANA1.0006NA
492.7NANA1.0035NA
592.68NANA1.00248NA
693.11NANA1.00205NA
793.0292.968393.00420.9996151.00056
893.2993.462893.02171.004740.998152
993.293.405593.07081.00360.9978
1092.8693.001193.17710.9981110.998483
1193.0493.30293.30880.9999280.997192
1292.892.562293.41750.9908451.00257
1393.1193.110593.52710.9955460.999995
1493.4293.577393.67250.9989840.998319
1594.0193.925593.86881.00061.0009
1694.4794.416294.08671.00351.00057
1794.0794.551994.31831.002480.994903
1894.3394.741894.54791.002050.995654
1994.4394.773594.810.9996150.996376
2095.3795.601295.151.004740.997582
2195.8395.859795.51621.00360.99969
2295.4695.701895.88290.9981110.997474
239696.287296.29420.9999280.997017
2495.3595.869296.7550.9908450.994584
2596.8596.785397.21830.9955461.00067
2697.8497.599597.69870.9989841.00246
2798.3898.25498.19461.00061.00128
2898.999.042898.69711.00350.998558
2999.5199.464599.21881.002481.00046
3099.9599.945799.74131.002051.00004
3199.93100.172100.2110.9996150.997582
32101.4101.084100.6071.004741.00312
33101.7101.325100.9621.00361.0037
34101.65101.104101.2950.9981111.0054
35102.33101.606101.6130.9999281.00713
36101.56100.97101.9030.9908451.00584
37101.91101.719102.1750.9955461.00187
38102.29102.285102.3890.9989841.00005
39102.44102.586102.5241.00060.998575
40102.84102.978102.6181.00350.998662
41103.2102.934102.681.002481.00259
42103.23102.928102.7171.002051.00294
43103.16102.72102.760.9996151.00428
44103.31103.317102.8291.004740.999935
45103.04103.288102.9181.00360.997599
46102.57102.834103.0290.9981110.997432
47102.88103.143103.150.9999280.997454
48101.91102.34103.2850.9908450.9958
49102.59102.976103.4360.9955460.996256
50103.27103.481103.5870.9989840.997957
51103.59103.794103.7311.00060.998035
52104.35104.246103.8821.00351.001
53104.6104.512104.2531.002481.00085
54105.08105.063104.8481.002051.00016
55104.93NANA0.999615NA
56105.15NANA1.00474NA
57104.67NANA1.0036NA
58104.55NANA0.998111NA
59109.82NANA0.999928NA
60109.25NANA0.990845NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; 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')