Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 29 Nov 2015 16:42:05 +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/Nov/29/t14488153571k8tl9fvsbug7kh.htm/, Retrieved Thu, 16 May 2024 01:32:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=284495, Retrieved Thu, 16 May 2024 01:32:15 +0000
QR Codes:

Original text written by user:
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] [Afzetprijsindex v...] [2015-11-29 16:42:05] [2d6a838730984919764007611a305b0c] [Current]
Feedback Forum

Post a new message
Dataseries X:
98.4
98.1
97.5
97.7
98.2
98.9
99.9
100.9
101.8
102.1
103.1
103.4
105.5
106.7
106.9
107.2
107.7
107.3
107.2
107.1
106.6
106.6
106.5
106.7
106.3
108.9
109.9
110.8
110.5
111.2
111.4
112.2
113.2
114
114.2
114.6
115.9
116.1
116.4
116.7
117.9
118.1
118.3
118.8
118.4
118
117.9
117.9
117.9
117.3
117.8
117.8
117.8
117.6
117.3
116.3
114.3
113.8
113.5
114.7




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=284495&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=284495&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284495&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
198.4NANA0.996986NA
298.1NANA1.00183NA
397.5NANA1.00361NA
497.7NANA1.00467NA
598.2NANA1.00559NA
698.9NANA1.00416NA
799.9100.186100.2960.9989020.997148
8100.9100.974100.951.000240.999263
9101.8101.579101.70.9988131.00217
10102.1102.133102.4870.9965430.999675
11103.1102.776103.2790.9951311.00315
12103.4103.35104.0250.9935151.00048
13105.5104.364104.6790.9969861.01089
14106.7105.435105.2421.001831.012
15106.9106.082105.71.003611.00771
16107.2106.583106.0881.004671.00579
17107.7107.012106.4171.005591.00643
18107.3107.14106.6961.004161.00149
19107.2106.749106.8670.9989021.00422
20107.1107.018106.9921.000241.00077
21106.6107.081107.2080.9988130.995507
22106.6107.112107.4830.9965430.995223
23106.5107.225107.750.9951310.993235
24106.7107.329108.0290.9935150.994143
25106.3108.04108.3670.9969860.983894
26108.9108.954108.7541.001830.999507
27109.9109.636109.2421.003611.00241
28110.8110.338109.8251.004671.00419
29110.5111.072110.4541.005590.994852
30111.2111.567111.1041.004160.996713
31111.4111.711111.8330.9989020.99722
32112.2112.561112.5331.000240.996797
33113.2112.97113.1040.9988131.00204
34114113.228113.6210.9965431.00682
35114.2113.619114.1750.9951311.00511
36114.6114.027114.7710.9935151.00503
37115.9114.998115.3460.9969861.00784
38116.1116.121115.9081.001830.999819
39116.4116.82116.41.003610.996402
40116.7117.328116.7831.004670.994644
41117.9117.759117.1041.005591.0012
42118.1117.885117.3961.004161.00183
43118.3117.488117.6170.9989021.00692
44118.8117.778117.751.000241.00867
45118.4117.718117.8580.9988131.00579
46118117.555117.9630.9965431.00379
47117.9117.43118.0040.9951311.00401
48117.9117.214117.9790.9935151.00585
49117.9117.561117.9170.9969861.00288
50117.3117.987117.7711.001830.994178
51117.8117.92117.4961.003610.998982
52117.8117.697117.151.004671.00088
53117.8117.445116.7921.005591.00302
54117.6116.96116.4751.004161.00547
55117.3NANA0.998902NA
56116.3NANA1.00024NA
57114.3NANA0.998813NA
58113.8NANA0.996543NA
59113.5NANA0.995131NA
60114.7NANA0.993515NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 98.4 & NA & NA & 0.996986 & NA \tabularnewline
2 & 98.1 & NA & NA & 1.00183 & NA \tabularnewline
3 & 97.5 & NA & NA & 1.00361 & NA \tabularnewline
4 & 97.7 & NA & NA & 1.00467 & NA \tabularnewline
5 & 98.2 & NA & NA & 1.00559 & NA \tabularnewline
6 & 98.9 & NA & NA & 1.00416 & NA \tabularnewline
7 & 99.9 & 100.186 & 100.296 & 0.998902 & 0.997148 \tabularnewline
8 & 100.9 & 100.974 & 100.95 & 1.00024 & 0.999263 \tabularnewline
9 & 101.8 & 101.579 & 101.7 & 0.998813 & 1.00217 \tabularnewline
10 & 102.1 & 102.133 & 102.487 & 0.996543 & 0.999675 \tabularnewline
11 & 103.1 & 102.776 & 103.279 & 0.995131 & 1.00315 \tabularnewline
12 & 103.4 & 103.35 & 104.025 & 0.993515 & 1.00048 \tabularnewline
13 & 105.5 & 104.364 & 104.679 & 0.996986 & 1.01089 \tabularnewline
14 & 106.7 & 105.435 & 105.242 & 1.00183 & 1.012 \tabularnewline
15 & 106.9 & 106.082 & 105.7 & 1.00361 & 1.00771 \tabularnewline
16 & 107.2 & 106.583 & 106.088 & 1.00467 & 1.00579 \tabularnewline
17 & 107.7 & 107.012 & 106.417 & 1.00559 & 1.00643 \tabularnewline
18 & 107.3 & 107.14 & 106.696 & 1.00416 & 1.00149 \tabularnewline
19 & 107.2 & 106.749 & 106.867 & 0.998902 & 1.00422 \tabularnewline
20 & 107.1 & 107.018 & 106.992 & 1.00024 & 1.00077 \tabularnewline
21 & 106.6 & 107.081 & 107.208 & 0.998813 & 0.995507 \tabularnewline
22 & 106.6 & 107.112 & 107.483 & 0.996543 & 0.995223 \tabularnewline
23 & 106.5 & 107.225 & 107.75 & 0.995131 & 0.993235 \tabularnewline
24 & 106.7 & 107.329 & 108.029 & 0.993515 & 0.994143 \tabularnewline
25 & 106.3 & 108.04 & 108.367 & 0.996986 & 0.983894 \tabularnewline
26 & 108.9 & 108.954 & 108.754 & 1.00183 & 0.999507 \tabularnewline
27 & 109.9 & 109.636 & 109.242 & 1.00361 & 1.00241 \tabularnewline
28 & 110.8 & 110.338 & 109.825 & 1.00467 & 1.00419 \tabularnewline
29 & 110.5 & 111.072 & 110.454 & 1.00559 & 0.994852 \tabularnewline
30 & 111.2 & 111.567 & 111.104 & 1.00416 & 0.996713 \tabularnewline
31 & 111.4 & 111.711 & 111.833 & 0.998902 & 0.99722 \tabularnewline
32 & 112.2 & 112.561 & 112.533 & 1.00024 & 0.996797 \tabularnewline
33 & 113.2 & 112.97 & 113.104 & 0.998813 & 1.00204 \tabularnewline
34 & 114 & 113.228 & 113.621 & 0.996543 & 1.00682 \tabularnewline
35 & 114.2 & 113.619 & 114.175 & 0.995131 & 1.00511 \tabularnewline
36 & 114.6 & 114.027 & 114.771 & 0.993515 & 1.00503 \tabularnewline
37 & 115.9 & 114.998 & 115.346 & 0.996986 & 1.00784 \tabularnewline
38 & 116.1 & 116.121 & 115.908 & 1.00183 & 0.999819 \tabularnewline
39 & 116.4 & 116.82 & 116.4 & 1.00361 & 0.996402 \tabularnewline
40 & 116.7 & 117.328 & 116.783 & 1.00467 & 0.994644 \tabularnewline
41 & 117.9 & 117.759 & 117.104 & 1.00559 & 1.0012 \tabularnewline
42 & 118.1 & 117.885 & 117.396 & 1.00416 & 1.00183 \tabularnewline
43 & 118.3 & 117.488 & 117.617 & 0.998902 & 1.00692 \tabularnewline
44 & 118.8 & 117.778 & 117.75 & 1.00024 & 1.00867 \tabularnewline
45 & 118.4 & 117.718 & 117.858 & 0.998813 & 1.00579 \tabularnewline
46 & 118 & 117.555 & 117.963 & 0.996543 & 1.00379 \tabularnewline
47 & 117.9 & 117.43 & 118.004 & 0.995131 & 1.00401 \tabularnewline
48 & 117.9 & 117.214 & 117.979 & 0.993515 & 1.00585 \tabularnewline
49 & 117.9 & 117.561 & 117.917 & 0.996986 & 1.00288 \tabularnewline
50 & 117.3 & 117.987 & 117.771 & 1.00183 & 0.994178 \tabularnewline
51 & 117.8 & 117.92 & 117.496 & 1.00361 & 0.998982 \tabularnewline
52 & 117.8 & 117.697 & 117.15 & 1.00467 & 1.00088 \tabularnewline
53 & 117.8 & 117.445 & 116.792 & 1.00559 & 1.00302 \tabularnewline
54 & 117.6 & 116.96 & 116.475 & 1.00416 & 1.00547 \tabularnewline
55 & 117.3 & NA & NA & 0.998902 & NA \tabularnewline
56 & 116.3 & NA & NA & 1.00024 & NA \tabularnewline
57 & 114.3 & NA & NA & 0.998813 & NA \tabularnewline
58 & 113.8 & NA & NA & 0.996543 & NA \tabularnewline
59 & 113.5 & NA & NA & 0.995131 & NA \tabularnewline
60 & 114.7 & NA & NA & 0.993515 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284495&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]98.4[/C][C]NA[/C][C]NA[/C][C]0.996986[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]98.1[/C][C]NA[/C][C]NA[/C][C]1.00183[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]97.5[/C][C]NA[/C][C]NA[/C][C]1.00361[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]97.7[/C][C]NA[/C][C]NA[/C][C]1.00467[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]98.2[/C][C]NA[/C][C]NA[/C][C]1.00559[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]98.9[/C][C]NA[/C][C]NA[/C][C]1.00416[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]99.9[/C][C]100.186[/C][C]100.296[/C][C]0.998902[/C][C]0.997148[/C][/ROW]
[ROW][C]8[/C][C]100.9[/C][C]100.974[/C][C]100.95[/C][C]1.00024[/C][C]0.999263[/C][/ROW]
[ROW][C]9[/C][C]101.8[/C][C]101.579[/C][C]101.7[/C][C]0.998813[/C][C]1.00217[/C][/ROW]
[ROW][C]10[/C][C]102.1[/C][C]102.133[/C][C]102.487[/C][C]0.996543[/C][C]0.999675[/C][/ROW]
[ROW][C]11[/C][C]103.1[/C][C]102.776[/C][C]103.279[/C][C]0.995131[/C][C]1.00315[/C][/ROW]
[ROW][C]12[/C][C]103.4[/C][C]103.35[/C][C]104.025[/C][C]0.993515[/C][C]1.00048[/C][/ROW]
[ROW][C]13[/C][C]105.5[/C][C]104.364[/C][C]104.679[/C][C]0.996986[/C][C]1.01089[/C][/ROW]
[ROW][C]14[/C][C]106.7[/C][C]105.435[/C][C]105.242[/C][C]1.00183[/C][C]1.012[/C][/ROW]
[ROW][C]15[/C][C]106.9[/C][C]106.082[/C][C]105.7[/C][C]1.00361[/C][C]1.00771[/C][/ROW]
[ROW][C]16[/C][C]107.2[/C][C]106.583[/C][C]106.088[/C][C]1.00467[/C][C]1.00579[/C][/ROW]
[ROW][C]17[/C][C]107.7[/C][C]107.012[/C][C]106.417[/C][C]1.00559[/C][C]1.00643[/C][/ROW]
[ROW][C]18[/C][C]107.3[/C][C]107.14[/C][C]106.696[/C][C]1.00416[/C][C]1.00149[/C][/ROW]
[ROW][C]19[/C][C]107.2[/C][C]106.749[/C][C]106.867[/C][C]0.998902[/C][C]1.00422[/C][/ROW]
[ROW][C]20[/C][C]107.1[/C][C]107.018[/C][C]106.992[/C][C]1.00024[/C][C]1.00077[/C][/ROW]
[ROW][C]21[/C][C]106.6[/C][C]107.081[/C][C]107.208[/C][C]0.998813[/C][C]0.995507[/C][/ROW]
[ROW][C]22[/C][C]106.6[/C][C]107.112[/C][C]107.483[/C][C]0.996543[/C][C]0.995223[/C][/ROW]
[ROW][C]23[/C][C]106.5[/C][C]107.225[/C][C]107.75[/C][C]0.995131[/C][C]0.993235[/C][/ROW]
[ROW][C]24[/C][C]106.7[/C][C]107.329[/C][C]108.029[/C][C]0.993515[/C][C]0.994143[/C][/ROW]
[ROW][C]25[/C][C]106.3[/C][C]108.04[/C][C]108.367[/C][C]0.996986[/C][C]0.983894[/C][/ROW]
[ROW][C]26[/C][C]108.9[/C][C]108.954[/C][C]108.754[/C][C]1.00183[/C][C]0.999507[/C][/ROW]
[ROW][C]27[/C][C]109.9[/C][C]109.636[/C][C]109.242[/C][C]1.00361[/C][C]1.00241[/C][/ROW]
[ROW][C]28[/C][C]110.8[/C][C]110.338[/C][C]109.825[/C][C]1.00467[/C][C]1.00419[/C][/ROW]
[ROW][C]29[/C][C]110.5[/C][C]111.072[/C][C]110.454[/C][C]1.00559[/C][C]0.994852[/C][/ROW]
[ROW][C]30[/C][C]111.2[/C][C]111.567[/C][C]111.104[/C][C]1.00416[/C][C]0.996713[/C][/ROW]
[ROW][C]31[/C][C]111.4[/C][C]111.711[/C][C]111.833[/C][C]0.998902[/C][C]0.99722[/C][/ROW]
[ROW][C]32[/C][C]112.2[/C][C]112.561[/C][C]112.533[/C][C]1.00024[/C][C]0.996797[/C][/ROW]
[ROW][C]33[/C][C]113.2[/C][C]112.97[/C][C]113.104[/C][C]0.998813[/C][C]1.00204[/C][/ROW]
[ROW][C]34[/C][C]114[/C][C]113.228[/C][C]113.621[/C][C]0.996543[/C][C]1.00682[/C][/ROW]
[ROW][C]35[/C][C]114.2[/C][C]113.619[/C][C]114.175[/C][C]0.995131[/C][C]1.00511[/C][/ROW]
[ROW][C]36[/C][C]114.6[/C][C]114.027[/C][C]114.771[/C][C]0.993515[/C][C]1.00503[/C][/ROW]
[ROW][C]37[/C][C]115.9[/C][C]114.998[/C][C]115.346[/C][C]0.996986[/C][C]1.00784[/C][/ROW]
[ROW][C]38[/C][C]116.1[/C][C]116.121[/C][C]115.908[/C][C]1.00183[/C][C]0.999819[/C][/ROW]
[ROW][C]39[/C][C]116.4[/C][C]116.82[/C][C]116.4[/C][C]1.00361[/C][C]0.996402[/C][/ROW]
[ROW][C]40[/C][C]116.7[/C][C]117.328[/C][C]116.783[/C][C]1.00467[/C][C]0.994644[/C][/ROW]
[ROW][C]41[/C][C]117.9[/C][C]117.759[/C][C]117.104[/C][C]1.00559[/C][C]1.0012[/C][/ROW]
[ROW][C]42[/C][C]118.1[/C][C]117.885[/C][C]117.396[/C][C]1.00416[/C][C]1.00183[/C][/ROW]
[ROW][C]43[/C][C]118.3[/C][C]117.488[/C][C]117.617[/C][C]0.998902[/C][C]1.00692[/C][/ROW]
[ROW][C]44[/C][C]118.8[/C][C]117.778[/C][C]117.75[/C][C]1.00024[/C][C]1.00867[/C][/ROW]
[ROW][C]45[/C][C]118.4[/C][C]117.718[/C][C]117.858[/C][C]0.998813[/C][C]1.00579[/C][/ROW]
[ROW][C]46[/C][C]118[/C][C]117.555[/C][C]117.963[/C][C]0.996543[/C][C]1.00379[/C][/ROW]
[ROW][C]47[/C][C]117.9[/C][C]117.43[/C][C]118.004[/C][C]0.995131[/C][C]1.00401[/C][/ROW]
[ROW][C]48[/C][C]117.9[/C][C]117.214[/C][C]117.979[/C][C]0.993515[/C][C]1.00585[/C][/ROW]
[ROW][C]49[/C][C]117.9[/C][C]117.561[/C][C]117.917[/C][C]0.996986[/C][C]1.00288[/C][/ROW]
[ROW][C]50[/C][C]117.3[/C][C]117.987[/C][C]117.771[/C][C]1.00183[/C][C]0.994178[/C][/ROW]
[ROW][C]51[/C][C]117.8[/C][C]117.92[/C][C]117.496[/C][C]1.00361[/C][C]0.998982[/C][/ROW]
[ROW][C]52[/C][C]117.8[/C][C]117.697[/C][C]117.15[/C][C]1.00467[/C][C]1.00088[/C][/ROW]
[ROW][C]53[/C][C]117.8[/C][C]117.445[/C][C]116.792[/C][C]1.00559[/C][C]1.00302[/C][/ROW]
[ROW][C]54[/C][C]117.6[/C][C]116.96[/C][C]116.475[/C][C]1.00416[/C][C]1.00547[/C][/ROW]
[ROW][C]55[/C][C]117.3[/C][C]NA[/C][C]NA[/C][C]0.998902[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]116.3[/C][C]NA[/C][C]NA[/C][C]1.00024[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]114.3[/C][C]NA[/C][C]NA[/C][C]0.998813[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]113.8[/C][C]NA[/C][C]NA[/C][C]0.996543[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]113.5[/C][C]NA[/C][C]NA[/C][C]0.995131[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]114.7[/C][C]NA[/C][C]NA[/C][C]0.993515[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284495&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284495&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
198.4NANA0.996986NA
298.1NANA1.00183NA
397.5NANA1.00361NA
497.7NANA1.00467NA
598.2NANA1.00559NA
698.9NANA1.00416NA
799.9100.186100.2960.9989020.997148
8100.9100.974100.951.000240.999263
9101.8101.579101.70.9988131.00217
10102.1102.133102.4870.9965430.999675
11103.1102.776103.2790.9951311.00315
12103.4103.35104.0250.9935151.00048
13105.5104.364104.6790.9969861.01089
14106.7105.435105.2421.001831.012
15106.9106.082105.71.003611.00771
16107.2106.583106.0881.004671.00579
17107.7107.012106.4171.005591.00643
18107.3107.14106.6961.004161.00149
19107.2106.749106.8670.9989021.00422
20107.1107.018106.9921.000241.00077
21106.6107.081107.2080.9988130.995507
22106.6107.112107.4830.9965430.995223
23106.5107.225107.750.9951310.993235
24106.7107.329108.0290.9935150.994143
25106.3108.04108.3670.9969860.983894
26108.9108.954108.7541.001830.999507
27109.9109.636109.2421.003611.00241
28110.8110.338109.8251.004671.00419
29110.5111.072110.4541.005590.994852
30111.2111.567111.1041.004160.996713
31111.4111.711111.8330.9989020.99722
32112.2112.561112.5331.000240.996797
33113.2112.97113.1040.9988131.00204
34114113.228113.6210.9965431.00682
35114.2113.619114.1750.9951311.00511
36114.6114.027114.7710.9935151.00503
37115.9114.998115.3460.9969861.00784
38116.1116.121115.9081.001830.999819
39116.4116.82116.41.003610.996402
40116.7117.328116.7831.004670.994644
41117.9117.759117.1041.005591.0012
42118.1117.885117.3961.004161.00183
43118.3117.488117.6170.9989021.00692
44118.8117.778117.751.000241.00867
45118.4117.718117.8580.9988131.00579
46118117.555117.9630.9965431.00379
47117.9117.43118.0040.9951311.00401
48117.9117.214117.9790.9935151.00585
49117.9117.561117.9170.9969861.00288
50117.3117.987117.7711.001830.994178
51117.8117.92117.4961.003610.998982
52117.8117.697117.151.004671.00088
53117.8117.445116.7921.005591.00302
54117.6116.96116.4751.004161.00547
55117.3NANA0.998902NA
56116.3NANA1.00024NA
57114.3NANA0.998813NA
58113.8NANA0.996543NA
59113.5NANA0.995131NA
60114.7NANA0.993515NA



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