Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 15 Dec 2015 11:26:31 +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/Dec/15/t1450178810ehovd1sgwq4ctsx.htm/, Retrieved Sat, 18 May 2024 14:51:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286470, Retrieved Sat, 18 May 2024 14:51:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Classical decompo...] [2015-12-15 11:26:31] [6c9172abf40f1c7e1d0d83ef980264f4] [Current]
Feedback Forum

Post a new message
Dataseries X:
20.7
20.7
20.7
18
18
18
16.9
16.9
16.9
24.4
24.4
24.4
15.5
15.5
15.5
18.4
18.4
18.4
16.2
16.2
16.2
20.6
20.6
20.6
19.8
19.8
19.8
21.6
21.6
21.6
22.3
22.3
22.3
23.7
23.7
23.7
22.1
22.1
22.1
26.6
26.6
26.6
23.5
23.5
23.5
19.6
19.6
19.6
20
20
20
20.1
20.1
20.1
16
16
16
18.9
18.9
18.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286470&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
120.7NANA-1.45469NA
220.7NANA-1.43594NA
320.7NANA-1.41719NA
418NANA0.974479NA
518NANA1.08906NA
618NANA1.20365NA
716.918.789119.7833-0.994271-1.88906
816.918.370319.35-0.979688-1.47031
916.917.951618.9167-0.965104-1.05156
1024.420.08718.71671.370314.31302
1124.420.076618.751.326564.32344
1224.420.066118.78331.282814.33385
1315.517.316118.7708-1.45469-1.81615
1415.517.276618.7125-1.43594-1.77656
1515.517.23718.6542-1.41719-1.73698
1618.419.441118.46670.974479-1.04115
1718.419.239118.151.08906-0.839062
1818.419.03717.83331.20365-0.636979
1916.216.859917.8542-0.994271-0.659896
2016.217.232818.2125-0.979688-1.03281
2116.217.605718.5708-0.965104-1.40573
2220.620.253618.88331.370310.346354
2320.620.476619.151.326560.123438
2420.620.699519.41671.28281-0.0994792
2519.818.349519.8042-1.454691.45052
2619.818.876620.3125-1.435940.923437
2719.819.403620.8208-1.417190.396354
2821.622.178621.20420.974479-0.578646
2921.622.551621.46251.08906-0.951562
3021.622.924521.72081.20365-1.32448
3122.320.951621.9458-0.9942711.34844
3222.321.157822.1375-0.9796881.14219
3322.321.364122.3292-0.9651040.935937
3423.724.003622.63331.37031-0.303646
3523.724.376623.051.32656-0.676563
3623.724.749523.46671.28281-1.04948
3722.122.270323.725-1.45469-0.170313
3822.122.389123.825-1.43594-0.289063
3922.122.507823.925-1.41719-0.407813
4026.624.778623.80420.9744791.82135
4126.624.551623.46251.089062.04844
4226.624.324523.12081.203652.27552
4323.521.868222.8625-0.9942711.63177
4423.521.707822.6875-0.9796881.79219
4523.521.547422.5125-0.9651041.9526
4619.623.524522.15421.37031-3.92448
4719.622.939121.61251.32656-3.33906
4819.622.353621.07081.28281-2.75365
492019.032820.4875-1.454690.967188
502018.426619.8625-1.435941.57344
512017.820319.2375-1.417192.17969
5220.119.870318.89580.9744790.229688
5320.119.926618.83751.089060.173438
5420.119.982818.77921.203650.117188
5516NANA-0.994271NA
5616NANA-0.979688NA
5716NANA-0.965104NA
5818.9NANA1.37031NA
5918.9NANA1.32656NA
6018.9NANA1.28281NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 20.7 & NA & NA & -1.45469 & NA \tabularnewline
2 & 20.7 & NA & NA & -1.43594 & NA \tabularnewline
3 & 20.7 & NA & NA & -1.41719 & NA \tabularnewline
4 & 18 & NA & NA & 0.974479 & NA \tabularnewline
5 & 18 & NA & NA & 1.08906 & NA \tabularnewline
6 & 18 & NA & NA & 1.20365 & NA \tabularnewline
7 & 16.9 & 18.7891 & 19.7833 & -0.994271 & -1.88906 \tabularnewline
8 & 16.9 & 18.3703 & 19.35 & -0.979688 & -1.47031 \tabularnewline
9 & 16.9 & 17.9516 & 18.9167 & -0.965104 & -1.05156 \tabularnewline
10 & 24.4 & 20.087 & 18.7167 & 1.37031 & 4.31302 \tabularnewline
11 & 24.4 & 20.0766 & 18.75 & 1.32656 & 4.32344 \tabularnewline
12 & 24.4 & 20.0661 & 18.7833 & 1.28281 & 4.33385 \tabularnewline
13 & 15.5 & 17.3161 & 18.7708 & -1.45469 & -1.81615 \tabularnewline
14 & 15.5 & 17.2766 & 18.7125 & -1.43594 & -1.77656 \tabularnewline
15 & 15.5 & 17.237 & 18.6542 & -1.41719 & -1.73698 \tabularnewline
16 & 18.4 & 19.4411 & 18.4667 & 0.974479 & -1.04115 \tabularnewline
17 & 18.4 & 19.2391 & 18.15 & 1.08906 & -0.839062 \tabularnewline
18 & 18.4 & 19.037 & 17.8333 & 1.20365 & -0.636979 \tabularnewline
19 & 16.2 & 16.8599 & 17.8542 & -0.994271 & -0.659896 \tabularnewline
20 & 16.2 & 17.2328 & 18.2125 & -0.979688 & -1.03281 \tabularnewline
21 & 16.2 & 17.6057 & 18.5708 & -0.965104 & -1.40573 \tabularnewline
22 & 20.6 & 20.2536 & 18.8833 & 1.37031 & 0.346354 \tabularnewline
23 & 20.6 & 20.4766 & 19.15 & 1.32656 & 0.123438 \tabularnewline
24 & 20.6 & 20.6995 & 19.4167 & 1.28281 & -0.0994792 \tabularnewline
25 & 19.8 & 18.3495 & 19.8042 & -1.45469 & 1.45052 \tabularnewline
26 & 19.8 & 18.8766 & 20.3125 & -1.43594 & 0.923437 \tabularnewline
27 & 19.8 & 19.4036 & 20.8208 & -1.41719 & 0.396354 \tabularnewline
28 & 21.6 & 22.1786 & 21.2042 & 0.974479 & -0.578646 \tabularnewline
29 & 21.6 & 22.5516 & 21.4625 & 1.08906 & -0.951562 \tabularnewline
30 & 21.6 & 22.9245 & 21.7208 & 1.20365 & -1.32448 \tabularnewline
31 & 22.3 & 20.9516 & 21.9458 & -0.994271 & 1.34844 \tabularnewline
32 & 22.3 & 21.1578 & 22.1375 & -0.979688 & 1.14219 \tabularnewline
33 & 22.3 & 21.3641 & 22.3292 & -0.965104 & 0.935937 \tabularnewline
34 & 23.7 & 24.0036 & 22.6333 & 1.37031 & -0.303646 \tabularnewline
35 & 23.7 & 24.3766 & 23.05 & 1.32656 & -0.676563 \tabularnewline
36 & 23.7 & 24.7495 & 23.4667 & 1.28281 & -1.04948 \tabularnewline
37 & 22.1 & 22.2703 & 23.725 & -1.45469 & -0.170313 \tabularnewline
38 & 22.1 & 22.3891 & 23.825 & -1.43594 & -0.289063 \tabularnewline
39 & 22.1 & 22.5078 & 23.925 & -1.41719 & -0.407813 \tabularnewline
40 & 26.6 & 24.7786 & 23.8042 & 0.974479 & 1.82135 \tabularnewline
41 & 26.6 & 24.5516 & 23.4625 & 1.08906 & 2.04844 \tabularnewline
42 & 26.6 & 24.3245 & 23.1208 & 1.20365 & 2.27552 \tabularnewline
43 & 23.5 & 21.8682 & 22.8625 & -0.994271 & 1.63177 \tabularnewline
44 & 23.5 & 21.7078 & 22.6875 & -0.979688 & 1.79219 \tabularnewline
45 & 23.5 & 21.5474 & 22.5125 & -0.965104 & 1.9526 \tabularnewline
46 & 19.6 & 23.5245 & 22.1542 & 1.37031 & -3.92448 \tabularnewline
47 & 19.6 & 22.9391 & 21.6125 & 1.32656 & -3.33906 \tabularnewline
48 & 19.6 & 22.3536 & 21.0708 & 1.28281 & -2.75365 \tabularnewline
49 & 20 & 19.0328 & 20.4875 & -1.45469 & 0.967188 \tabularnewline
50 & 20 & 18.4266 & 19.8625 & -1.43594 & 1.57344 \tabularnewline
51 & 20 & 17.8203 & 19.2375 & -1.41719 & 2.17969 \tabularnewline
52 & 20.1 & 19.8703 & 18.8958 & 0.974479 & 0.229688 \tabularnewline
53 & 20.1 & 19.9266 & 18.8375 & 1.08906 & 0.173438 \tabularnewline
54 & 20.1 & 19.9828 & 18.7792 & 1.20365 & 0.117188 \tabularnewline
55 & 16 & NA & NA & -0.994271 & NA \tabularnewline
56 & 16 & NA & NA & -0.979688 & NA \tabularnewline
57 & 16 & NA & NA & -0.965104 & NA \tabularnewline
58 & 18.9 & NA & NA & 1.37031 & NA \tabularnewline
59 & 18.9 & NA & NA & 1.32656 & NA \tabularnewline
60 & 18.9 & NA & NA & 1.28281 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286470&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]20.7[/C][C]NA[/C][C]NA[/C][C]-1.45469[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]20.7[/C][C]NA[/C][C]NA[/C][C]-1.43594[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]20.7[/C][C]NA[/C][C]NA[/C][C]-1.41719[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]18[/C][C]NA[/C][C]NA[/C][C]0.974479[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]18[/C][C]NA[/C][C]NA[/C][C]1.08906[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]18[/C][C]NA[/C][C]NA[/C][C]1.20365[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]16.9[/C][C]18.7891[/C][C]19.7833[/C][C]-0.994271[/C][C]-1.88906[/C][/ROW]
[ROW][C]8[/C][C]16.9[/C][C]18.3703[/C][C]19.35[/C][C]-0.979688[/C][C]-1.47031[/C][/ROW]
[ROW][C]9[/C][C]16.9[/C][C]17.9516[/C][C]18.9167[/C][C]-0.965104[/C][C]-1.05156[/C][/ROW]
[ROW][C]10[/C][C]24.4[/C][C]20.087[/C][C]18.7167[/C][C]1.37031[/C][C]4.31302[/C][/ROW]
[ROW][C]11[/C][C]24.4[/C][C]20.0766[/C][C]18.75[/C][C]1.32656[/C][C]4.32344[/C][/ROW]
[ROW][C]12[/C][C]24.4[/C][C]20.0661[/C][C]18.7833[/C][C]1.28281[/C][C]4.33385[/C][/ROW]
[ROW][C]13[/C][C]15.5[/C][C]17.3161[/C][C]18.7708[/C][C]-1.45469[/C][C]-1.81615[/C][/ROW]
[ROW][C]14[/C][C]15.5[/C][C]17.2766[/C][C]18.7125[/C][C]-1.43594[/C][C]-1.77656[/C][/ROW]
[ROW][C]15[/C][C]15.5[/C][C]17.237[/C][C]18.6542[/C][C]-1.41719[/C][C]-1.73698[/C][/ROW]
[ROW][C]16[/C][C]18.4[/C][C]19.4411[/C][C]18.4667[/C][C]0.974479[/C][C]-1.04115[/C][/ROW]
[ROW][C]17[/C][C]18.4[/C][C]19.2391[/C][C]18.15[/C][C]1.08906[/C][C]-0.839062[/C][/ROW]
[ROW][C]18[/C][C]18.4[/C][C]19.037[/C][C]17.8333[/C][C]1.20365[/C][C]-0.636979[/C][/ROW]
[ROW][C]19[/C][C]16.2[/C][C]16.8599[/C][C]17.8542[/C][C]-0.994271[/C][C]-0.659896[/C][/ROW]
[ROW][C]20[/C][C]16.2[/C][C]17.2328[/C][C]18.2125[/C][C]-0.979688[/C][C]-1.03281[/C][/ROW]
[ROW][C]21[/C][C]16.2[/C][C]17.6057[/C][C]18.5708[/C][C]-0.965104[/C][C]-1.40573[/C][/ROW]
[ROW][C]22[/C][C]20.6[/C][C]20.2536[/C][C]18.8833[/C][C]1.37031[/C][C]0.346354[/C][/ROW]
[ROW][C]23[/C][C]20.6[/C][C]20.4766[/C][C]19.15[/C][C]1.32656[/C][C]0.123438[/C][/ROW]
[ROW][C]24[/C][C]20.6[/C][C]20.6995[/C][C]19.4167[/C][C]1.28281[/C][C]-0.0994792[/C][/ROW]
[ROW][C]25[/C][C]19.8[/C][C]18.3495[/C][C]19.8042[/C][C]-1.45469[/C][C]1.45052[/C][/ROW]
[ROW][C]26[/C][C]19.8[/C][C]18.8766[/C][C]20.3125[/C][C]-1.43594[/C][C]0.923437[/C][/ROW]
[ROW][C]27[/C][C]19.8[/C][C]19.4036[/C][C]20.8208[/C][C]-1.41719[/C][C]0.396354[/C][/ROW]
[ROW][C]28[/C][C]21.6[/C][C]22.1786[/C][C]21.2042[/C][C]0.974479[/C][C]-0.578646[/C][/ROW]
[ROW][C]29[/C][C]21.6[/C][C]22.5516[/C][C]21.4625[/C][C]1.08906[/C][C]-0.951562[/C][/ROW]
[ROW][C]30[/C][C]21.6[/C][C]22.9245[/C][C]21.7208[/C][C]1.20365[/C][C]-1.32448[/C][/ROW]
[ROW][C]31[/C][C]22.3[/C][C]20.9516[/C][C]21.9458[/C][C]-0.994271[/C][C]1.34844[/C][/ROW]
[ROW][C]32[/C][C]22.3[/C][C]21.1578[/C][C]22.1375[/C][C]-0.979688[/C][C]1.14219[/C][/ROW]
[ROW][C]33[/C][C]22.3[/C][C]21.3641[/C][C]22.3292[/C][C]-0.965104[/C][C]0.935937[/C][/ROW]
[ROW][C]34[/C][C]23.7[/C][C]24.0036[/C][C]22.6333[/C][C]1.37031[/C][C]-0.303646[/C][/ROW]
[ROW][C]35[/C][C]23.7[/C][C]24.3766[/C][C]23.05[/C][C]1.32656[/C][C]-0.676563[/C][/ROW]
[ROW][C]36[/C][C]23.7[/C][C]24.7495[/C][C]23.4667[/C][C]1.28281[/C][C]-1.04948[/C][/ROW]
[ROW][C]37[/C][C]22.1[/C][C]22.2703[/C][C]23.725[/C][C]-1.45469[/C][C]-0.170313[/C][/ROW]
[ROW][C]38[/C][C]22.1[/C][C]22.3891[/C][C]23.825[/C][C]-1.43594[/C][C]-0.289063[/C][/ROW]
[ROW][C]39[/C][C]22.1[/C][C]22.5078[/C][C]23.925[/C][C]-1.41719[/C][C]-0.407813[/C][/ROW]
[ROW][C]40[/C][C]26.6[/C][C]24.7786[/C][C]23.8042[/C][C]0.974479[/C][C]1.82135[/C][/ROW]
[ROW][C]41[/C][C]26.6[/C][C]24.5516[/C][C]23.4625[/C][C]1.08906[/C][C]2.04844[/C][/ROW]
[ROW][C]42[/C][C]26.6[/C][C]24.3245[/C][C]23.1208[/C][C]1.20365[/C][C]2.27552[/C][/ROW]
[ROW][C]43[/C][C]23.5[/C][C]21.8682[/C][C]22.8625[/C][C]-0.994271[/C][C]1.63177[/C][/ROW]
[ROW][C]44[/C][C]23.5[/C][C]21.7078[/C][C]22.6875[/C][C]-0.979688[/C][C]1.79219[/C][/ROW]
[ROW][C]45[/C][C]23.5[/C][C]21.5474[/C][C]22.5125[/C][C]-0.965104[/C][C]1.9526[/C][/ROW]
[ROW][C]46[/C][C]19.6[/C][C]23.5245[/C][C]22.1542[/C][C]1.37031[/C][C]-3.92448[/C][/ROW]
[ROW][C]47[/C][C]19.6[/C][C]22.9391[/C][C]21.6125[/C][C]1.32656[/C][C]-3.33906[/C][/ROW]
[ROW][C]48[/C][C]19.6[/C][C]22.3536[/C][C]21.0708[/C][C]1.28281[/C][C]-2.75365[/C][/ROW]
[ROW][C]49[/C][C]20[/C][C]19.0328[/C][C]20.4875[/C][C]-1.45469[/C][C]0.967188[/C][/ROW]
[ROW][C]50[/C][C]20[/C][C]18.4266[/C][C]19.8625[/C][C]-1.43594[/C][C]1.57344[/C][/ROW]
[ROW][C]51[/C][C]20[/C][C]17.8203[/C][C]19.2375[/C][C]-1.41719[/C][C]2.17969[/C][/ROW]
[ROW][C]52[/C][C]20.1[/C][C]19.8703[/C][C]18.8958[/C][C]0.974479[/C][C]0.229688[/C][/ROW]
[ROW][C]53[/C][C]20.1[/C][C]19.9266[/C][C]18.8375[/C][C]1.08906[/C][C]0.173438[/C][/ROW]
[ROW][C]54[/C][C]20.1[/C][C]19.9828[/C][C]18.7792[/C][C]1.20365[/C][C]0.117188[/C][/ROW]
[ROW][C]55[/C][C]16[/C][C]NA[/C][C]NA[/C][C]-0.994271[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]16[/C][C]NA[/C][C]NA[/C][C]-0.979688[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]16[/C][C]NA[/C][C]NA[/C][C]-0.965104[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]18.9[/C][C]NA[/C][C]NA[/C][C]1.37031[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]18.9[/C][C]NA[/C][C]NA[/C][C]1.32656[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]18.9[/C][C]NA[/C][C]NA[/C][C]1.28281[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286470&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286470&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
120.7NANA-1.45469NA
220.7NANA-1.43594NA
320.7NANA-1.41719NA
418NANA0.974479NA
518NANA1.08906NA
618NANA1.20365NA
716.918.789119.7833-0.994271-1.88906
816.918.370319.35-0.979688-1.47031
916.917.951618.9167-0.965104-1.05156
1024.420.08718.71671.370314.31302
1124.420.076618.751.326564.32344
1224.420.066118.78331.282814.33385
1315.517.316118.7708-1.45469-1.81615
1415.517.276618.7125-1.43594-1.77656
1515.517.23718.6542-1.41719-1.73698
1618.419.441118.46670.974479-1.04115
1718.419.239118.151.08906-0.839062
1818.419.03717.83331.20365-0.636979
1916.216.859917.8542-0.994271-0.659896
2016.217.232818.2125-0.979688-1.03281
2116.217.605718.5708-0.965104-1.40573
2220.620.253618.88331.370310.346354
2320.620.476619.151.326560.123438
2420.620.699519.41671.28281-0.0994792
2519.818.349519.8042-1.454691.45052
2619.818.876620.3125-1.435940.923437
2719.819.403620.8208-1.417190.396354
2821.622.178621.20420.974479-0.578646
2921.622.551621.46251.08906-0.951562
3021.622.924521.72081.20365-1.32448
3122.320.951621.9458-0.9942711.34844
3222.321.157822.1375-0.9796881.14219
3322.321.364122.3292-0.9651040.935937
3423.724.003622.63331.37031-0.303646
3523.724.376623.051.32656-0.676563
3623.724.749523.46671.28281-1.04948
3722.122.270323.725-1.45469-0.170313
3822.122.389123.825-1.43594-0.289063
3922.122.507823.925-1.41719-0.407813
4026.624.778623.80420.9744791.82135
4126.624.551623.46251.089062.04844
4226.624.324523.12081.203652.27552
4323.521.868222.8625-0.9942711.63177
4423.521.707822.6875-0.9796881.79219
4523.521.547422.5125-0.9651041.9526
4619.623.524522.15421.37031-3.92448
4719.622.939121.61251.32656-3.33906
4819.622.353621.07081.28281-2.75365
492019.032820.4875-1.454690.967188
502018.426619.8625-1.435941.57344
512017.820319.2375-1.417192.17969
5220.119.870318.89580.9744790.229688
5320.119.926618.83751.089060.173438
5420.119.982818.77921.203650.117188
5516NANA-0.994271NA
5616NANA-0.979688NA
5716NANA-0.965104NA
5818.9NANA1.37031NA
5918.9NANA1.32656NA
6018.9NANA1.28281NA



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