Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationThu, 26 Nov 2015 08:57: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/2015/Nov/26/t1448528295z09uh08tz5i0hyr.htm/, Retrieved Tue, 14 May 2024 21:18:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=284170, Retrieved Tue, 14 May 2024 21:18:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact122
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [OPDRACHT 9 OEF 2] [2015-11-26 08:57:35] [48da048a5e5e3f4e8c34faa6148f9354] [Current]
Feedback Forum

Post a new message
Dataseries X:
78,46
78,59
81,37
83,61
84,65
84,56
83,85
84,08
85,41
85,75
86,38
88,87
90,37
92,21
95,75
97,29
98,29
99,51
99,04
98,9
100,74
100,3
101,68
101,3
103,13
104,17
105,98
106,25
104,01
101,68
101,93
104,41
105,51
104,71
103,14
102,66
102,68
101,89
101,37
101,16
99,34
99,35
99,88
99,31
99,91
98,39
98,02
98,7
98,01
98,42
98,2
93,5
93,17
93,42
93,13
92,31
92,09
92,62
91,43
89,38




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284170&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 Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284170&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284170&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 Maurice George Kendall' @ kendall.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
178.46NANA1.00169NA
278.59NANA1.00634NA
381.37NANA1.01665NA
483.61NANA1.00698NA
584.65NANA0.997398NA
684.56NANA0.994964NA
783.8583.832884.29460.9945211.00021
884.0884.914685.35830.9948020.990171
985.4186.799386.5251.003170.983994
1085.7587.181387.69420.9941520.983582
1186.3888.157288.83250.9923980.97984
1288.8789.747690.02370.9969320.990222
1390.3791.434191.27961.001690.988362
1492.2193.116992.531.006340.990261
1595.7595.347893.78631.016651.00422
1697.2995.694295.03121.006981.01668
1798.2996.024596.2750.9973981.02359
1899.5196.939897.43040.9949641.02651
1999.0497.940598.480.9945211.01123
2098.998.992799.510.9948020.999063
21100.74100.753100.4351.003170.999871
22100.3100.642101.2340.9941520.9966
23101.68101.072101.8460.9923981.00602
24101.3101.861102.1750.9969320.994491
25103.13102.559102.3851.001691.00557
26104.17103.387102.7351.006341.00757
27105.98104.881103.1641.016651.01047
28106.25104.269103.5461.006981.019
29104.01103.521103.7910.9973981.00473
30101.68103.385103.9080.9949640.983508
31101.93103.377103.9460.9945210.986005
32104.41103.293103.8330.9948021.01082
33105.51103.874103.5451.003171.01575
34104.71102.538103.1410.9941521.02118
35103.14101.954102.7350.9923981.01164
36102.66102.129102.4430.9969321.0052
37102.68102.434102.261.001691.00241
38101.89102.609101.9621.006340.99299
39101.37103.207101.5171.016650.982202
40101.16101.725101.021.006980.994448
4199.34100.282100.5430.9973980.990609
4299.3599.6606100.1650.9949640.996884
4399.8899.258699.80540.9945211.00626
4499.3198.949299.46630.9948021.00365
4599.9199.504199.18961.003171.00408
4698.3998.160998.73830.9941521.00233
4798.0297.415998.16210.9923981.0062
4898.797.358397.65790.9969321.01378
4998.0197.29497.12961.001691.00736
5098.4297.169196.55671.006341.01287
5198.297.536595.93921.016651.0068
5293.596.038395.37291.006980.97357
5393.1794.611194.85790.9973980.984768
5493.4293.720694.1950.9949640.996792
5593.13NANA0.994521NA
5692.31NANA0.994802NA
5792.09NANA1.00317NA
5892.62NANA0.994152NA
5991.43NANA0.992398NA
6089.38NANA0.996932NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 78.46 & NA & NA & 1.00169 & NA \tabularnewline
2 & 78.59 & NA & NA & 1.00634 & NA \tabularnewline
3 & 81.37 & NA & NA & 1.01665 & NA \tabularnewline
4 & 83.61 & NA & NA & 1.00698 & NA \tabularnewline
5 & 84.65 & NA & NA & 0.997398 & NA \tabularnewline
6 & 84.56 & NA & NA & 0.994964 & NA \tabularnewline
7 & 83.85 & 83.8328 & 84.2946 & 0.994521 & 1.00021 \tabularnewline
8 & 84.08 & 84.9146 & 85.3583 & 0.994802 & 0.990171 \tabularnewline
9 & 85.41 & 86.7993 & 86.525 & 1.00317 & 0.983994 \tabularnewline
10 & 85.75 & 87.1813 & 87.6942 & 0.994152 & 0.983582 \tabularnewline
11 & 86.38 & 88.1572 & 88.8325 & 0.992398 & 0.97984 \tabularnewline
12 & 88.87 & 89.7476 & 90.0237 & 0.996932 & 0.990222 \tabularnewline
13 & 90.37 & 91.4341 & 91.2796 & 1.00169 & 0.988362 \tabularnewline
14 & 92.21 & 93.1169 & 92.53 & 1.00634 & 0.990261 \tabularnewline
15 & 95.75 & 95.3478 & 93.7863 & 1.01665 & 1.00422 \tabularnewline
16 & 97.29 & 95.6942 & 95.0312 & 1.00698 & 1.01668 \tabularnewline
17 & 98.29 & 96.0245 & 96.275 & 0.997398 & 1.02359 \tabularnewline
18 & 99.51 & 96.9398 & 97.4304 & 0.994964 & 1.02651 \tabularnewline
19 & 99.04 & 97.9405 & 98.48 & 0.994521 & 1.01123 \tabularnewline
20 & 98.9 & 98.9927 & 99.51 & 0.994802 & 0.999063 \tabularnewline
21 & 100.74 & 100.753 & 100.435 & 1.00317 & 0.999871 \tabularnewline
22 & 100.3 & 100.642 & 101.234 & 0.994152 & 0.9966 \tabularnewline
23 & 101.68 & 101.072 & 101.846 & 0.992398 & 1.00602 \tabularnewline
24 & 101.3 & 101.861 & 102.175 & 0.996932 & 0.994491 \tabularnewline
25 & 103.13 & 102.559 & 102.385 & 1.00169 & 1.00557 \tabularnewline
26 & 104.17 & 103.387 & 102.735 & 1.00634 & 1.00757 \tabularnewline
27 & 105.98 & 104.881 & 103.164 & 1.01665 & 1.01047 \tabularnewline
28 & 106.25 & 104.269 & 103.546 & 1.00698 & 1.019 \tabularnewline
29 & 104.01 & 103.521 & 103.791 & 0.997398 & 1.00473 \tabularnewline
30 & 101.68 & 103.385 & 103.908 & 0.994964 & 0.983508 \tabularnewline
31 & 101.93 & 103.377 & 103.946 & 0.994521 & 0.986005 \tabularnewline
32 & 104.41 & 103.293 & 103.833 & 0.994802 & 1.01082 \tabularnewline
33 & 105.51 & 103.874 & 103.545 & 1.00317 & 1.01575 \tabularnewline
34 & 104.71 & 102.538 & 103.141 & 0.994152 & 1.02118 \tabularnewline
35 & 103.14 & 101.954 & 102.735 & 0.992398 & 1.01164 \tabularnewline
36 & 102.66 & 102.129 & 102.443 & 0.996932 & 1.0052 \tabularnewline
37 & 102.68 & 102.434 & 102.26 & 1.00169 & 1.00241 \tabularnewline
38 & 101.89 & 102.609 & 101.962 & 1.00634 & 0.99299 \tabularnewline
39 & 101.37 & 103.207 & 101.517 & 1.01665 & 0.982202 \tabularnewline
40 & 101.16 & 101.725 & 101.02 & 1.00698 & 0.994448 \tabularnewline
41 & 99.34 & 100.282 & 100.543 & 0.997398 & 0.990609 \tabularnewline
42 & 99.35 & 99.6606 & 100.165 & 0.994964 & 0.996884 \tabularnewline
43 & 99.88 & 99.2586 & 99.8054 & 0.994521 & 1.00626 \tabularnewline
44 & 99.31 & 98.9492 & 99.4663 & 0.994802 & 1.00365 \tabularnewline
45 & 99.91 & 99.5041 & 99.1896 & 1.00317 & 1.00408 \tabularnewline
46 & 98.39 & 98.1609 & 98.7383 & 0.994152 & 1.00233 \tabularnewline
47 & 98.02 & 97.4159 & 98.1621 & 0.992398 & 1.0062 \tabularnewline
48 & 98.7 & 97.3583 & 97.6579 & 0.996932 & 1.01378 \tabularnewline
49 & 98.01 & 97.294 & 97.1296 & 1.00169 & 1.00736 \tabularnewline
50 & 98.42 & 97.1691 & 96.5567 & 1.00634 & 1.01287 \tabularnewline
51 & 98.2 & 97.5365 & 95.9392 & 1.01665 & 1.0068 \tabularnewline
52 & 93.5 & 96.0383 & 95.3729 & 1.00698 & 0.97357 \tabularnewline
53 & 93.17 & 94.6111 & 94.8579 & 0.997398 & 0.984768 \tabularnewline
54 & 93.42 & 93.7206 & 94.195 & 0.994964 & 0.996792 \tabularnewline
55 & 93.13 & NA & NA & 0.994521 & NA \tabularnewline
56 & 92.31 & NA & NA & 0.994802 & NA \tabularnewline
57 & 92.09 & NA & NA & 1.00317 & NA \tabularnewline
58 & 92.62 & NA & NA & 0.994152 & NA \tabularnewline
59 & 91.43 & NA & NA & 0.992398 & NA \tabularnewline
60 & 89.38 & NA & NA & 0.996932 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284170&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]78.46[/C][C]NA[/C][C]NA[/C][C]1.00169[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]78.59[/C][C]NA[/C][C]NA[/C][C]1.00634[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]81.37[/C][C]NA[/C][C]NA[/C][C]1.01665[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]83.61[/C][C]NA[/C][C]NA[/C][C]1.00698[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]84.65[/C][C]NA[/C][C]NA[/C][C]0.997398[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]84.56[/C][C]NA[/C][C]NA[/C][C]0.994964[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]83.85[/C][C]83.8328[/C][C]84.2946[/C][C]0.994521[/C][C]1.00021[/C][/ROW]
[ROW][C]8[/C][C]84.08[/C][C]84.9146[/C][C]85.3583[/C][C]0.994802[/C][C]0.990171[/C][/ROW]
[ROW][C]9[/C][C]85.41[/C][C]86.7993[/C][C]86.525[/C][C]1.00317[/C][C]0.983994[/C][/ROW]
[ROW][C]10[/C][C]85.75[/C][C]87.1813[/C][C]87.6942[/C][C]0.994152[/C][C]0.983582[/C][/ROW]
[ROW][C]11[/C][C]86.38[/C][C]88.1572[/C][C]88.8325[/C][C]0.992398[/C][C]0.97984[/C][/ROW]
[ROW][C]12[/C][C]88.87[/C][C]89.7476[/C][C]90.0237[/C][C]0.996932[/C][C]0.990222[/C][/ROW]
[ROW][C]13[/C][C]90.37[/C][C]91.4341[/C][C]91.2796[/C][C]1.00169[/C][C]0.988362[/C][/ROW]
[ROW][C]14[/C][C]92.21[/C][C]93.1169[/C][C]92.53[/C][C]1.00634[/C][C]0.990261[/C][/ROW]
[ROW][C]15[/C][C]95.75[/C][C]95.3478[/C][C]93.7863[/C][C]1.01665[/C][C]1.00422[/C][/ROW]
[ROW][C]16[/C][C]97.29[/C][C]95.6942[/C][C]95.0312[/C][C]1.00698[/C][C]1.01668[/C][/ROW]
[ROW][C]17[/C][C]98.29[/C][C]96.0245[/C][C]96.275[/C][C]0.997398[/C][C]1.02359[/C][/ROW]
[ROW][C]18[/C][C]99.51[/C][C]96.9398[/C][C]97.4304[/C][C]0.994964[/C][C]1.02651[/C][/ROW]
[ROW][C]19[/C][C]99.04[/C][C]97.9405[/C][C]98.48[/C][C]0.994521[/C][C]1.01123[/C][/ROW]
[ROW][C]20[/C][C]98.9[/C][C]98.9927[/C][C]99.51[/C][C]0.994802[/C][C]0.999063[/C][/ROW]
[ROW][C]21[/C][C]100.74[/C][C]100.753[/C][C]100.435[/C][C]1.00317[/C][C]0.999871[/C][/ROW]
[ROW][C]22[/C][C]100.3[/C][C]100.642[/C][C]101.234[/C][C]0.994152[/C][C]0.9966[/C][/ROW]
[ROW][C]23[/C][C]101.68[/C][C]101.072[/C][C]101.846[/C][C]0.992398[/C][C]1.00602[/C][/ROW]
[ROW][C]24[/C][C]101.3[/C][C]101.861[/C][C]102.175[/C][C]0.996932[/C][C]0.994491[/C][/ROW]
[ROW][C]25[/C][C]103.13[/C][C]102.559[/C][C]102.385[/C][C]1.00169[/C][C]1.00557[/C][/ROW]
[ROW][C]26[/C][C]104.17[/C][C]103.387[/C][C]102.735[/C][C]1.00634[/C][C]1.00757[/C][/ROW]
[ROW][C]27[/C][C]105.98[/C][C]104.881[/C][C]103.164[/C][C]1.01665[/C][C]1.01047[/C][/ROW]
[ROW][C]28[/C][C]106.25[/C][C]104.269[/C][C]103.546[/C][C]1.00698[/C][C]1.019[/C][/ROW]
[ROW][C]29[/C][C]104.01[/C][C]103.521[/C][C]103.791[/C][C]0.997398[/C][C]1.00473[/C][/ROW]
[ROW][C]30[/C][C]101.68[/C][C]103.385[/C][C]103.908[/C][C]0.994964[/C][C]0.983508[/C][/ROW]
[ROW][C]31[/C][C]101.93[/C][C]103.377[/C][C]103.946[/C][C]0.994521[/C][C]0.986005[/C][/ROW]
[ROW][C]32[/C][C]104.41[/C][C]103.293[/C][C]103.833[/C][C]0.994802[/C][C]1.01082[/C][/ROW]
[ROW][C]33[/C][C]105.51[/C][C]103.874[/C][C]103.545[/C][C]1.00317[/C][C]1.01575[/C][/ROW]
[ROW][C]34[/C][C]104.71[/C][C]102.538[/C][C]103.141[/C][C]0.994152[/C][C]1.02118[/C][/ROW]
[ROW][C]35[/C][C]103.14[/C][C]101.954[/C][C]102.735[/C][C]0.992398[/C][C]1.01164[/C][/ROW]
[ROW][C]36[/C][C]102.66[/C][C]102.129[/C][C]102.443[/C][C]0.996932[/C][C]1.0052[/C][/ROW]
[ROW][C]37[/C][C]102.68[/C][C]102.434[/C][C]102.26[/C][C]1.00169[/C][C]1.00241[/C][/ROW]
[ROW][C]38[/C][C]101.89[/C][C]102.609[/C][C]101.962[/C][C]1.00634[/C][C]0.99299[/C][/ROW]
[ROW][C]39[/C][C]101.37[/C][C]103.207[/C][C]101.517[/C][C]1.01665[/C][C]0.982202[/C][/ROW]
[ROW][C]40[/C][C]101.16[/C][C]101.725[/C][C]101.02[/C][C]1.00698[/C][C]0.994448[/C][/ROW]
[ROW][C]41[/C][C]99.34[/C][C]100.282[/C][C]100.543[/C][C]0.997398[/C][C]0.990609[/C][/ROW]
[ROW][C]42[/C][C]99.35[/C][C]99.6606[/C][C]100.165[/C][C]0.994964[/C][C]0.996884[/C][/ROW]
[ROW][C]43[/C][C]99.88[/C][C]99.2586[/C][C]99.8054[/C][C]0.994521[/C][C]1.00626[/C][/ROW]
[ROW][C]44[/C][C]99.31[/C][C]98.9492[/C][C]99.4663[/C][C]0.994802[/C][C]1.00365[/C][/ROW]
[ROW][C]45[/C][C]99.91[/C][C]99.5041[/C][C]99.1896[/C][C]1.00317[/C][C]1.00408[/C][/ROW]
[ROW][C]46[/C][C]98.39[/C][C]98.1609[/C][C]98.7383[/C][C]0.994152[/C][C]1.00233[/C][/ROW]
[ROW][C]47[/C][C]98.02[/C][C]97.4159[/C][C]98.1621[/C][C]0.992398[/C][C]1.0062[/C][/ROW]
[ROW][C]48[/C][C]98.7[/C][C]97.3583[/C][C]97.6579[/C][C]0.996932[/C][C]1.01378[/C][/ROW]
[ROW][C]49[/C][C]98.01[/C][C]97.294[/C][C]97.1296[/C][C]1.00169[/C][C]1.00736[/C][/ROW]
[ROW][C]50[/C][C]98.42[/C][C]97.1691[/C][C]96.5567[/C][C]1.00634[/C][C]1.01287[/C][/ROW]
[ROW][C]51[/C][C]98.2[/C][C]97.5365[/C][C]95.9392[/C][C]1.01665[/C][C]1.0068[/C][/ROW]
[ROW][C]52[/C][C]93.5[/C][C]96.0383[/C][C]95.3729[/C][C]1.00698[/C][C]0.97357[/C][/ROW]
[ROW][C]53[/C][C]93.17[/C][C]94.6111[/C][C]94.8579[/C][C]0.997398[/C][C]0.984768[/C][/ROW]
[ROW][C]54[/C][C]93.42[/C][C]93.7206[/C][C]94.195[/C][C]0.994964[/C][C]0.996792[/C][/ROW]
[ROW][C]55[/C][C]93.13[/C][C]NA[/C][C]NA[/C][C]0.994521[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]92.31[/C][C]NA[/C][C]NA[/C][C]0.994802[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]92.09[/C][C]NA[/C][C]NA[/C][C]1.00317[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]92.62[/C][C]NA[/C][C]NA[/C][C]0.994152[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]91.43[/C][C]NA[/C][C]NA[/C][C]0.992398[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]89.38[/C][C]NA[/C][C]NA[/C][C]0.996932[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284170&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284170&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
178.46NANA1.00169NA
278.59NANA1.00634NA
381.37NANA1.01665NA
483.61NANA1.00698NA
584.65NANA0.997398NA
684.56NANA0.994964NA
783.8583.832884.29460.9945211.00021
884.0884.914685.35830.9948020.990171
985.4186.799386.5251.003170.983994
1085.7587.181387.69420.9941520.983582
1186.3888.157288.83250.9923980.97984
1288.8789.747690.02370.9969320.990222
1390.3791.434191.27961.001690.988362
1492.2193.116992.531.006340.990261
1595.7595.347893.78631.016651.00422
1697.2995.694295.03121.006981.01668
1798.2996.024596.2750.9973981.02359
1899.5196.939897.43040.9949641.02651
1999.0497.940598.480.9945211.01123
2098.998.992799.510.9948020.999063
21100.74100.753100.4351.003170.999871
22100.3100.642101.2340.9941520.9966
23101.68101.072101.8460.9923981.00602
24101.3101.861102.1750.9969320.994491
25103.13102.559102.3851.001691.00557
26104.17103.387102.7351.006341.00757
27105.98104.881103.1641.016651.01047
28106.25104.269103.5461.006981.019
29104.01103.521103.7910.9973981.00473
30101.68103.385103.9080.9949640.983508
31101.93103.377103.9460.9945210.986005
32104.41103.293103.8330.9948021.01082
33105.51103.874103.5451.003171.01575
34104.71102.538103.1410.9941521.02118
35103.14101.954102.7350.9923981.01164
36102.66102.129102.4430.9969321.0052
37102.68102.434102.261.001691.00241
38101.89102.609101.9621.006340.99299
39101.37103.207101.5171.016650.982202
40101.16101.725101.021.006980.994448
4199.34100.282100.5430.9973980.990609
4299.3599.6606100.1650.9949640.996884
4399.8899.258699.80540.9945211.00626
4499.3198.949299.46630.9948021.00365
4599.9199.504199.18961.003171.00408
4698.3998.160998.73830.9941521.00233
4798.0297.415998.16210.9923981.0062
4898.797.358397.65790.9969321.01378
4998.0197.29497.12961.001691.00736
5098.4297.169196.55671.006341.01287
5198.297.536595.93921.016651.0068
5293.596.038395.37291.006980.97357
5393.1794.611194.85790.9973980.984768
5493.4293.720694.1950.9949640.996792
5593.13NANA0.994521NA
5692.31NANA0.994802NA
5792.09NANA1.00317NA
5892.62NANA0.994152NA
5991.43NANA0.992398NA
6089.38NANA0.996932NA



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