Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSat, 26 Nov 2016 18:23:35 +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/26/t1480184677yn68z1vrvdonusg.htm/, Retrieved Sun, 19 May 2024 04:17:34 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sun, 19 May 2024 04:17:34 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
18347.7
19372.7
22263.8
19422.9
21268.6
20310
19256
17535.9
19857.4
19628.4
19727.5
18112.2
18889.3
20516.1
22317
19768.8
20015.8
20260.5
19434.3
17910
19134.4
20880.1
19680
17493.4
19155.9
19151
21318.2
20601.3
20496.8
19834.4
20997.6
17111.1
20752.3
21600.7
19939.5
18854.1
19697.4
19865
20930.3
20873.8
20007.5
20584.9
20604.1
16956.2
21731.2
21784.8
19280.6
17912.3
17904.8
19507.1
21188.7
20405.9
19214.4
21839.1
20030.6
16596.6
19996.3
20776.6
19003.1
18620.8




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







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
118347.7NANA0.954836NA
219372.7NANA0.997811NA
322263.8NANA1.08321NA
419422.9NANA1.03042NA
521268.6NANA1.00601NA
620310NANA1.04164NA
71925619867.719614.51.012910.969211
817535.917272.519684.70.8774561.01525
919857.420297.419734.61.028520.978321
1019628.420921.519751.21.059250.938191
1119727.51958419713.40.9934351.00733
1218112.217978.219659.10.9144981.00745
1318889.318776.419664.50.9548361.00601
1420516.119644.419687.50.9978111.04437
152231721309.9196731.083211.04726
1619768.820294196951.030420.974119
1720015.819863.919745.21.006011.00765
1820260.520538.519717.41.041640.986466
1919434.319957.119702.71.012910.973803
201791017248.1196570.8774561.03837
2119134.420116.319558.51.028520.951187
2220880.120710.119551.61.059251.00821
231968019477.619606.30.9934351.01039
2417493.41793219608.60.9144980.975541
2519155.918768.2196560.9548361.02066
261915119644.719687.80.9978110.974868
2721318.22136319721.91.083210.997905
2820601.320422.219819.41.030421.00877
2920496.819979.619860.21.006011.02588
3019834.420757.519927.71.041640.955529
3120997.620265.3200071.012911.03614
3217111.117601.120059.30.8774560.972158
3320752.320645.420072.91.028521.00518
3421600.721257.220068.11.059251.01616
3519939.519927.3200590.9934351.00061
3618854.118353.920069.90.9144981.02725
3719697.419177.720084.80.9548361.0271
38198652001820061.90.9978110.992356
3920930.321768.520096.31.083210.961497
4020873.820757.420144.71.030421.00561
4120007.52024620124.91.006010.988221
4220584.920893.520058.31.041640.985231
4320604.120201.819944.31.012911.01991
4416956.217421.619854.70.8774560.973284
4521731.220416.819850.61.028521.06438
4621784.821017.619841.81.059251.0365
4719280.619659.419789.30.9934350.980733
4817912.318114.819808.50.9144980.988819
4917904.81894119836.90.9548360.945295
5019507.119754.6197980.9978110.987469
5121188.721350.819710.71.083210.992407
5220405.920192.519596.41.030421.01057
5319214.419660.419542.91.006010.977316
5421839.120375.319560.81.041641.07184
5520030.6NANA1.01291NA
5616596.6NANA0.877456NA
5719996.3NANA1.02852NA
5820776.6NANA1.05925NA
5919003.1NANA0.993435NA
6018620.8NANA0.914498NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 18347.7 & NA & NA & 0.954836 & NA \tabularnewline
2 & 19372.7 & NA & NA & 0.997811 & NA \tabularnewline
3 & 22263.8 & NA & NA & 1.08321 & NA \tabularnewline
4 & 19422.9 & NA & NA & 1.03042 & NA \tabularnewline
5 & 21268.6 & NA & NA & 1.00601 & NA \tabularnewline
6 & 20310 & NA & NA & 1.04164 & NA \tabularnewline
7 & 19256 & 19867.7 & 19614.5 & 1.01291 & 0.969211 \tabularnewline
8 & 17535.9 & 17272.5 & 19684.7 & 0.877456 & 1.01525 \tabularnewline
9 & 19857.4 & 20297.4 & 19734.6 & 1.02852 & 0.978321 \tabularnewline
10 & 19628.4 & 20921.5 & 19751.2 & 1.05925 & 0.938191 \tabularnewline
11 & 19727.5 & 19584 & 19713.4 & 0.993435 & 1.00733 \tabularnewline
12 & 18112.2 & 17978.2 & 19659.1 & 0.914498 & 1.00745 \tabularnewline
13 & 18889.3 & 18776.4 & 19664.5 & 0.954836 & 1.00601 \tabularnewline
14 & 20516.1 & 19644.4 & 19687.5 & 0.997811 & 1.04437 \tabularnewline
15 & 22317 & 21309.9 & 19673 & 1.08321 & 1.04726 \tabularnewline
16 & 19768.8 & 20294 & 19695 & 1.03042 & 0.974119 \tabularnewline
17 & 20015.8 & 19863.9 & 19745.2 & 1.00601 & 1.00765 \tabularnewline
18 & 20260.5 & 20538.5 & 19717.4 & 1.04164 & 0.986466 \tabularnewline
19 & 19434.3 & 19957.1 & 19702.7 & 1.01291 & 0.973803 \tabularnewline
20 & 17910 & 17248.1 & 19657 & 0.877456 & 1.03837 \tabularnewline
21 & 19134.4 & 20116.3 & 19558.5 & 1.02852 & 0.951187 \tabularnewline
22 & 20880.1 & 20710.1 & 19551.6 & 1.05925 & 1.00821 \tabularnewline
23 & 19680 & 19477.6 & 19606.3 & 0.993435 & 1.01039 \tabularnewline
24 & 17493.4 & 17932 & 19608.6 & 0.914498 & 0.975541 \tabularnewline
25 & 19155.9 & 18768.2 & 19656 & 0.954836 & 1.02066 \tabularnewline
26 & 19151 & 19644.7 & 19687.8 & 0.997811 & 0.974868 \tabularnewline
27 & 21318.2 & 21363 & 19721.9 & 1.08321 & 0.997905 \tabularnewline
28 & 20601.3 & 20422.2 & 19819.4 & 1.03042 & 1.00877 \tabularnewline
29 & 20496.8 & 19979.6 & 19860.2 & 1.00601 & 1.02588 \tabularnewline
30 & 19834.4 & 20757.5 & 19927.7 & 1.04164 & 0.955529 \tabularnewline
31 & 20997.6 & 20265.3 & 20007 & 1.01291 & 1.03614 \tabularnewline
32 & 17111.1 & 17601.1 & 20059.3 & 0.877456 & 0.972158 \tabularnewline
33 & 20752.3 & 20645.4 & 20072.9 & 1.02852 & 1.00518 \tabularnewline
34 & 21600.7 & 21257.2 & 20068.1 & 1.05925 & 1.01616 \tabularnewline
35 & 19939.5 & 19927.3 & 20059 & 0.993435 & 1.00061 \tabularnewline
36 & 18854.1 & 18353.9 & 20069.9 & 0.914498 & 1.02725 \tabularnewline
37 & 19697.4 & 19177.7 & 20084.8 & 0.954836 & 1.0271 \tabularnewline
38 & 19865 & 20018 & 20061.9 & 0.997811 & 0.992356 \tabularnewline
39 & 20930.3 & 21768.5 & 20096.3 & 1.08321 & 0.961497 \tabularnewline
40 & 20873.8 & 20757.4 & 20144.7 & 1.03042 & 1.00561 \tabularnewline
41 & 20007.5 & 20246 & 20124.9 & 1.00601 & 0.988221 \tabularnewline
42 & 20584.9 & 20893.5 & 20058.3 & 1.04164 & 0.985231 \tabularnewline
43 & 20604.1 & 20201.8 & 19944.3 & 1.01291 & 1.01991 \tabularnewline
44 & 16956.2 & 17421.6 & 19854.7 & 0.877456 & 0.973284 \tabularnewline
45 & 21731.2 & 20416.8 & 19850.6 & 1.02852 & 1.06438 \tabularnewline
46 & 21784.8 & 21017.6 & 19841.8 & 1.05925 & 1.0365 \tabularnewline
47 & 19280.6 & 19659.4 & 19789.3 & 0.993435 & 0.980733 \tabularnewline
48 & 17912.3 & 18114.8 & 19808.5 & 0.914498 & 0.988819 \tabularnewline
49 & 17904.8 & 18941 & 19836.9 & 0.954836 & 0.945295 \tabularnewline
50 & 19507.1 & 19754.6 & 19798 & 0.997811 & 0.987469 \tabularnewline
51 & 21188.7 & 21350.8 & 19710.7 & 1.08321 & 0.992407 \tabularnewline
52 & 20405.9 & 20192.5 & 19596.4 & 1.03042 & 1.01057 \tabularnewline
53 & 19214.4 & 19660.4 & 19542.9 & 1.00601 & 0.977316 \tabularnewline
54 & 21839.1 & 20375.3 & 19560.8 & 1.04164 & 1.07184 \tabularnewline
55 & 20030.6 & NA & NA & 1.01291 & NA \tabularnewline
56 & 16596.6 & NA & NA & 0.877456 & NA \tabularnewline
57 & 19996.3 & NA & NA & 1.02852 & NA \tabularnewline
58 & 20776.6 & NA & NA & 1.05925 & NA \tabularnewline
59 & 19003.1 & NA & NA & 0.993435 & NA \tabularnewline
60 & 18620.8 & NA & NA & 0.914498 & 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]18347.7[/C][C]NA[/C][C]NA[/C][C]0.954836[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]19372.7[/C][C]NA[/C][C]NA[/C][C]0.997811[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]22263.8[/C][C]NA[/C][C]NA[/C][C]1.08321[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]19422.9[/C][C]NA[/C][C]NA[/C][C]1.03042[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]21268.6[/C][C]NA[/C][C]NA[/C][C]1.00601[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]20310[/C][C]NA[/C][C]NA[/C][C]1.04164[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]19256[/C][C]19867.7[/C][C]19614.5[/C][C]1.01291[/C][C]0.969211[/C][/ROW]
[ROW][C]8[/C][C]17535.9[/C][C]17272.5[/C][C]19684.7[/C][C]0.877456[/C][C]1.01525[/C][/ROW]
[ROW][C]9[/C][C]19857.4[/C][C]20297.4[/C][C]19734.6[/C][C]1.02852[/C][C]0.978321[/C][/ROW]
[ROW][C]10[/C][C]19628.4[/C][C]20921.5[/C][C]19751.2[/C][C]1.05925[/C][C]0.938191[/C][/ROW]
[ROW][C]11[/C][C]19727.5[/C][C]19584[/C][C]19713.4[/C][C]0.993435[/C][C]1.00733[/C][/ROW]
[ROW][C]12[/C][C]18112.2[/C][C]17978.2[/C][C]19659.1[/C][C]0.914498[/C][C]1.00745[/C][/ROW]
[ROW][C]13[/C][C]18889.3[/C][C]18776.4[/C][C]19664.5[/C][C]0.954836[/C][C]1.00601[/C][/ROW]
[ROW][C]14[/C][C]20516.1[/C][C]19644.4[/C][C]19687.5[/C][C]0.997811[/C][C]1.04437[/C][/ROW]
[ROW][C]15[/C][C]22317[/C][C]21309.9[/C][C]19673[/C][C]1.08321[/C][C]1.04726[/C][/ROW]
[ROW][C]16[/C][C]19768.8[/C][C]20294[/C][C]19695[/C][C]1.03042[/C][C]0.974119[/C][/ROW]
[ROW][C]17[/C][C]20015.8[/C][C]19863.9[/C][C]19745.2[/C][C]1.00601[/C][C]1.00765[/C][/ROW]
[ROW][C]18[/C][C]20260.5[/C][C]20538.5[/C][C]19717.4[/C][C]1.04164[/C][C]0.986466[/C][/ROW]
[ROW][C]19[/C][C]19434.3[/C][C]19957.1[/C][C]19702.7[/C][C]1.01291[/C][C]0.973803[/C][/ROW]
[ROW][C]20[/C][C]17910[/C][C]17248.1[/C][C]19657[/C][C]0.877456[/C][C]1.03837[/C][/ROW]
[ROW][C]21[/C][C]19134.4[/C][C]20116.3[/C][C]19558.5[/C][C]1.02852[/C][C]0.951187[/C][/ROW]
[ROW][C]22[/C][C]20880.1[/C][C]20710.1[/C][C]19551.6[/C][C]1.05925[/C][C]1.00821[/C][/ROW]
[ROW][C]23[/C][C]19680[/C][C]19477.6[/C][C]19606.3[/C][C]0.993435[/C][C]1.01039[/C][/ROW]
[ROW][C]24[/C][C]17493.4[/C][C]17932[/C][C]19608.6[/C][C]0.914498[/C][C]0.975541[/C][/ROW]
[ROW][C]25[/C][C]19155.9[/C][C]18768.2[/C][C]19656[/C][C]0.954836[/C][C]1.02066[/C][/ROW]
[ROW][C]26[/C][C]19151[/C][C]19644.7[/C][C]19687.8[/C][C]0.997811[/C][C]0.974868[/C][/ROW]
[ROW][C]27[/C][C]21318.2[/C][C]21363[/C][C]19721.9[/C][C]1.08321[/C][C]0.997905[/C][/ROW]
[ROW][C]28[/C][C]20601.3[/C][C]20422.2[/C][C]19819.4[/C][C]1.03042[/C][C]1.00877[/C][/ROW]
[ROW][C]29[/C][C]20496.8[/C][C]19979.6[/C][C]19860.2[/C][C]1.00601[/C][C]1.02588[/C][/ROW]
[ROW][C]30[/C][C]19834.4[/C][C]20757.5[/C][C]19927.7[/C][C]1.04164[/C][C]0.955529[/C][/ROW]
[ROW][C]31[/C][C]20997.6[/C][C]20265.3[/C][C]20007[/C][C]1.01291[/C][C]1.03614[/C][/ROW]
[ROW][C]32[/C][C]17111.1[/C][C]17601.1[/C][C]20059.3[/C][C]0.877456[/C][C]0.972158[/C][/ROW]
[ROW][C]33[/C][C]20752.3[/C][C]20645.4[/C][C]20072.9[/C][C]1.02852[/C][C]1.00518[/C][/ROW]
[ROW][C]34[/C][C]21600.7[/C][C]21257.2[/C][C]20068.1[/C][C]1.05925[/C][C]1.01616[/C][/ROW]
[ROW][C]35[/C][C]19939.5[/C][C]19927.3[/C][C]20059[/C][C]0.993435[/C][C]1.00061[/C][/ROW]
[ROW][C]36[/C][C]18854.1[/C][C]18353.9[/C][C]20069.9[/C][C]0.914498[/C][C]1.02725[/C][/ROW]
[ROW][C]37[/C][C]19697.4[/C][C]19177.7[/C][C]20084.8[/C][C]0.954836[/C][C]1.0271[/C][/ROW]
[ROW][C]38[/C][C]19865[/C][C]20018[/C][C]20061.9[/C][C]0.997811[/C][C]0.992356[/C][/ROW]
[ROW][C]39[/C][C]20930.3[/C][C]21768.5[/C][C]20096.3[/C][C]1.08321[/C][C]0.961497[/C][/ROW]
[ROW][C]40[/C][C]20873.8[/C][C]20757.4[/C][C]20144.7[/C][C]1.03042[/C][C]1.00561[/C][/ROW]
[ROW][C]41[/C][C]20007.5[/C][C]20246[/C][C]20124.9[/C][C]1.00601[/C][C]0.988221[/C][/ROW]
[ROW][C]42[/C][C]20584.9[/C][C]20893.5[/C][C]20058.3[/C][C]1.04164[/C][C]0.985231[/C][/ROW]
[ROW][C]43[/C][C]20604.1[/C][C]20201.8[/C][C]19944.3[/C][C]1.01291[/C][C]1.01991[/C][/ROW]
[ROW][C]44[/C][C]16956.2[/C][C]17421.6[/C][C]19854.7[/C][C]0.877456[/C][C]0.973284[/C][/ROW]
[ROW][C]45[/C][C]21731.2[/C][C]20416.8[/C][C]19850.6[/C][C]1.02852[/C][C]1.06438[/C][/ROW]
[ROW][C]46[/C][C]21784.8[/C][C]21017.6[/C][C]19841.8[/C][C]1.05925[/C][C]1.0365[/C][/ROW]
[ROW][C]47[/C][C]19280.6[/C][C]19659.4[/C][C]19789.3[/C][C]0.993435[/C][C]0.980733[/C][/ROW]
[ROW][C]48[/C][C]17912.3[/C][C]18114.8[/C][C]19808.5[/C][C]0.914498[/C][C]0.988819[/C][/ROW]
[ROW][C]49[/C][C]17904.8[/C][C]18941[/C][C]19836.9[/C][C]0.954836[/C][C]0.945295[/C][/ROW]
[ROW][C]50[/C][C]19507.1[/C][C]19754.6[/C][C]19798[/C][C]0.997811[/C][C]0.987469[/C][/ROW]
[ROW][C]51[/C][C]21188.7[/C][C]21350.8[/C][C]19710.7[/C][C]1.08321[/C][C]0.992407[/C][/ROW]
[ROW][C]52[/C][C]20405.9[/C][C]20192.5[/C][C]19596.4[/C][C]1.03042[/C][C]1.01057[/C][/ROW]
[ROW][C]53[/C][C]19214.4[/C][C]19660.4[/C][C]19542.9[/C][C]1.00601[/C][C]0.977316[/C][/ROW]
[ROW][C]54[/C][C]21839.1[/C][C]20375.3[/C][C]19560.8[/C][C]1.04164[/C][C]1.07184[/C][/ROW]
[ROW][C]55[/C][C]20030.6[/C][C]NA[/C][C]NA[/C][C]1.01291[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]16596.6[/C][C]NA[/C][C]NA[/C][C]0.877456[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]19996.3[/C][C]NA[/C][C]NA[/C][C]1.02852[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]20776.6[/C][C]NA[/C][C]NA[/C][C]1.05925[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]19003.1[/C][C]NA[/C][C]NA[/C][C]0.993435[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]18620.8[/C][C]NA[/C][C]NA[/C][C]0.914498[/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
118347.7NANA0.954836NA
219372.7NANA0.997811NA
322263.8NANA1.08321NA
419422.9NANA1.03042NA
521268.6NANA1.00601NA
620310NANA1.04164NA
71925619867.719614.51.012910.969211
817535.917272.519684.70.8774561.01525
919857.420297.419734.61.028520.978321
1019628.420921.519751.21.059250.938191
1119727.51958419713.40.9934351.00733
1218112.217978.219659.10.9144981.00745
1318889.318776.419664.50.9548361.00601
1420516.119644.419687.50.9978111.04437
152231721309.9196731.083211.04726
1619768.820294196951.030420.974119
1720015.819863.919745.21.006011.00765
1820260.520538.519717.41.041640.986466
1919434.319957.119702.71.012910.973803
201791017248.1196570.8774561.03837
2119134.420116.319558.51.028520.951187
2220880.120710.119551.61.059251.00821
231968019477.619606.30.9934351.01039
2417493.41793219608.60.9144980.975541
2519155.918768.2196560.9548361.02066
261915119644.719687.80.9978110.974868
2721318.22136319721.91.083210.997905
2820601.320422.219819.41.030421.00877
2920496.819979.619860.21.006011.02588
3019834.420757.519927.71.041640.955529
3120997.620265.3200071.012911.03614
3217111.117601.120059.30.8774560.972158
3320752.320645.420072.91.028521.00518
3421600.721257.220068.11.059251.01616
3519939.519927.3200590.9934351.00061
3618854.118353.920069.90.9144981.02725
3719697.419177.720084.80.9548361.0271
38198652001820061.90.9978110.992356
3920930.321768.520096.31.083210.961497
4020873.820757.420144.71.030421.00561
4120007.52024620124.91.006010.988221
4220584.920893.520058.31.041640.985231
4320604.120201.819944.31.012911.01991
4416956.217421.619854.70.8774560.973284
4521731.220416.819850.61.028521.06438
4621784.821017.619841.81.059251.0365
4719280.619659.419789.30.9934350.980733
4817912.318114.819808.50.9144980.988819
4917904.81894119836.90.9548360.945295
5019507.119754.6197980.9978110.987469
5121188.721350.819710.71.083210.992407
5220405.920192.519596.41.030421.01057
5319214.419660.419542.91.006010.977316
5421839.120375.319560.81.041641.07184
5520030.6NANA1.01291NA
5616596.6NANA0.877456NA
5719996.3NANA1.02852NA
5820776.6NANA1.05925NA
5919003.1NANA0.993435NA
6018620.8NANA0.914498NA



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