Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationFri, 20 May 2016 13:23:36 +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/2016/May/20/t1463747047pjyu53tq2227lc4.htm/, Retrieved Sat, 18 May 2024 07:03:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=295415, Retrieved Sat, 18 May 2024 07:03:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2016-05-20 12:23:36] [73c24565f080d314e595da727a2003f4] [Current]
Feedback Forum

Post a new message
Dataseries X:
89,72
89.95
90.19
90.23
90.32
90.86
90.99
90.98
91.22
91.42
91.55
91.67
92.30
92.92
93.10
93.23
93.36
93.42
93.58
93.68
94.02
94.29
94.54
94.64
96.70
96.83
97.07
97.11
97.42
97.44
97.67
97.84
98.17
98.31
98.42
98.44
98.89
99.26
99.59
99.82
99.95
99.99
100.28
100.38
100.46
100.52
100.43
100.44
101.33
101.43
101.41
101.53
101.58
101.73
102.12
101.86
101.93
101.86
101.92
102.02




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295415&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
189.72NANA1.00285NA
289.95NANA1.00366NA
390.19NANA1.00322NA
490.23NANA1.00226NA
590.32NANA1.00162NA
690.86NANA1.00007NA
790.9990.871890.86581.000071.0013
890.9890.957191.09710.9984631.00025
991.2291.212991.34210.9985861.00008
1091.4291.395991.58830.9978991.00026
1191.5591.520291.840.9965181.00033
1291.6791.593892.07330.9947911.00083
1392.392.55192.28791.002850.997288
1492.9292.847192.50831.003661.00078
1593.193.035792.73751.003221.00069
1693.2393.183792.97381.002261.0005
1793.3693.368593.21791.001620.999909
1893.4293.473293.46621.000070.999431
1993.5893.779593.77331.000070.997873
2093.6893.974994.11960.9984630.996862
2194.0294.314494.44790.9985860.996879
2294.2994.575994.7750.9978990.996977
2394.5494.774795.10580.9965180.997524
2494.6494.945495.44250.9947910.996784
2596.796.053595.78041.002851.00673
2696.8396.476296.12421.003661.00367
2797.0796.780696.47041.003221.00299
2897.1197.029596.81081.002261.00083
2997.4297.296997.141.001621.00127
3097.4497.467297.461.000070.999721
3197.6797.71697.70961.000070.999529
3297.8497.751697.90210.9984631.0009
3398.1797.969698.10830.9985861.00205
3498.3198.119798.32620.9978991.00194
3598.4298.201598.54460.9965181.00223
3698.4498.241998.75630.9947911.00202
3798.8999.253498.97121.002850.996339
3899.2699.549199.18581.003660.997096
3999.5999.706699.38711.003220.99883
4099.8299.799599.57461.002261.00021
4199.9599.911599.75041.001621.00039
4299.9999.924999.91751.000071.00065
43100.28100.109100.1021.000071.00171
44100.38100.14100.2950.9984631.00239
45100.46100.319100.4610.9985861.00141
46100.52100.397100.6080.9978991.00123
47100.43100.396100.7470.9965181.00034
48100.44100.362100.8880.9947911.00078
49101.33101.325101.0371.002851.00005
50101.43101.546101.1751.003660.998862
51101.41101.624101.2981.003220.997898
52101.53101.644101.4151.002260.998878
53101.58101.697101.5331.001620.99885
54101.73101.668101.6611.000071.00061
55102.12NANA1.00007NA
56101.86NANA0.998463NA
57101.93NANA0.998586NA
58101.86NANA0.997899NA
59101.92NANA0.996518NA
60102.02NANA0.994791NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 89.72 & NA & NA & 1.00285 & NA \tabularnewline
2 & 89.95 & NA & NA & 1.00366 & NA \tabularnewline
3 & 90.19 & NA & NA & 1.00322 & NA \tabularnewline
4 & 90.23 & NA & NA & 1.00226 & NA \tabularnewline
5 & 90.32 & NA & NA & 1.00162 & NA \tabularnewline
6 & 90.86 & NA & NA & 1.00007 & NA \tabularnewline
7 & 90.99 & 90.8718 & 90.8658 & 1.00007 & 1.0013 \tabularnewline
8 & 90.98 & 90.9571 & 91.0971 & 0.998463 & 1.00025 \tabularnewline
9 & 91.22 & 91.2129 & 91.3421 & 0.998586 & 1.00008 \tabularnewline
10 & 91.42 & 91.3959 & 91.5883 & 0.997899 & 1.00026 \tabularnewline
11 & 91.55 & 91.5202 & 91.84 & 0.996518 & 1.00033 \tabularnewline
12 & 91.67 & 91.5938 & 92.0733 & 0.994791 & 1.00083 \tabularnewline
13 & 92.3 & 92.551 & 92.2879 & 1.00285 & 0.997288 \tabularnewline
14 & 92.92 & 92.8471 & 92.5083 & 1.00366 & 1.00078 \tabularnewline
15 & 93.1 & 93.0357 & 92.7375 & 1.00322 & 1.00069 \tabularnewline
16 & 93.23 & 93.1837 & 92.9738 & 1.00226 & 1.0005 \tabularnewline
17 & 93.36 & 93.3685 & 93.2179 & 1.00162 & 0.999909 \tabularnewline
18 & 93.42 & 93.4732 & 93.4662 & 1.00007 & 0.999431 \tabularnewline
19 & 93.58 & 93.7795 & 93.7733 & 1.00007 & 0.997873 \tabularnewline
20 & 93.68 & 93.9749 & 94.1196 & 0.998463 & 0.996862 \tabularnewline
21 & 94.02 & 94.3144 & 94.4479 & 0.998586 & 0.996879 \tabularnewline
22 & 94.29 & 94.5759 & 94.775 & 0.997899 & 0.996977 \tabularnewline
23 & 94.54 & 94.7747 & 95.1058 & 0.996518 & 0.997524 \tabularnewline
24 & 94.64 & 94.9454 & 95.4425 & 0.994791 & 0.996784 \tabularnewline
25 & 96.7 & 96.0535 & 95.7804 & 1.00285 & 1.00673 \tabularnewline
26 & 96.83 & 96.4762 & 96.1242 & 1.00366 & 1.00367 \tabularnewline
27 & 97.07 & 96.7806 & 96.4704 & 1.00322 & 1.00299 \tabularnewline
28 & 97.11 & 97.0295 & 96.8108 & 1.00226 & 1.00083 \tabularnewline
29 & 97.42 & 97.2969 & 97.14 & 1.00162 & 1.00127 \tabularnewline
30 & 97.44 & 97.4672 & 97.46 & 1.00007 & 0.999721 \tabularnewline
31 & 97.67 & 97.716 & 97.7096 & 1.00007 & 0.999529 \tabularnewline
32 & 97.84 & 97.7516 & 97.9021 & 0.998463 & 1.0009 \tabularnewline
33 & 98.17 & 97.9696 & 98.1083 & 0.998586 & 1.00205 \tabularnewline
34 & 98.31 & 98.1197 & 98.3262 & 0.997899 & 1.00194 \tabularnewline
35 & 98.42 & 98.2015 & 98.5446 & 0.996518 & 1.00223 \tabularnewline
36 & 98.44 & 98.2419 & 98.7563 & 0.994791 & 1.00202 \tabularnewline
37 & 98.89 & 99.2534 & 98.9712 & 1.00285 & 0.996339 \tabularnewline
38 & 99.26 & 99.5491 & 99.1858 & 1.00366 & 0.997096 \tabularnewline
39 & 99.59 & 99.7066 & 99.3871 & 1.00322 & 0.99883 \tabularnewline
40 & 99.82 & 99.7995 & 99.5746 & 1.00226 & 1.00021 \tabularnewline
41 & 99.95 & 99.9115 & 99.7504 & 1.00162 & 1.00039 \tabularnewline
42 & 99.99 & 99.9249 & 99.9175 & 1.00007 & 1.00065 \tabularnewline
43 & 100.28 & 100.109 & 100.102 & 1.00007 & 1.00171 \tabularnewline
44 & 100.38 & 100.14 & 100.295 & 0.998463 & 1.00239 \tabularnewline
45 & 100.46 & 100.319 & 100.461 & 0.998586 & 1.00141 \tabularnewline
46 & 100.52 & 100.397 & 100.608 & 0.997899 & 1.00123 \tabularnewline
47 & 100.43 & 100.396 & 100.747 & 0.996518 & 1.00034 \tabularnewline
48 & 100.44 & 100.362 & 100.888 & 0.994791 & 1.00078 \tabularnewline
49 & 101.33 & 101.325 & 101.037 & 1.00285 & 1.00005 \tabularnewline
50 & 101.43 & 101.546 & 101.175 & 1.00366 & 0.998862 \tabularnewline
51 & 101.41 & 101.624 & 101.298 & 1.00322 & 0.997898 \tabularnewline
52 & 101.53 & 101.644 & 101.415 & 1.00226 & 0.998878 \tabularnewline
53 & 101.58 & 101.697 & 101.533 & 1.00162 & 0.99885 \tabularnewline
54 & 101.73 & 101.668 & 101.661 & 1.00007 & 1.00061 \tabularnewline
55 & 102.12 & NA & NA & 1.00007 & NA \tabularnewline
56 & 101.86 & NA & NA & 0.998463 & NA \tabularnewline
57 & 101.93 & NA & NA & 0.998586 & NA \tabularnewline
58 & 101.86 & NA & NA & 0.997899 & NA \tabularnewline
59 & 101.92 & NA & NA & 0.996518 & NA \tabularnewline
60 & 102.02 & NA & NA & 0.994791 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295415&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]89.72[/C][C]NA[/C][C]NA[/C][C]1.00285[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]89.95[/C][C]NA[/C][C]NA[/C][C]1.00366[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]90.19[/C][C]NA[/C][C]NA[/C][C]1.00322[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]90.23[/C][C]NA[/C][C]NA[/C][C]1.00226[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]90.32[/C][C]NA[/C][C]NA[/C][C]1.00162[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]90.86[/C][C]NA[/C][C]NA[/C][C]1.00007[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]90.99[/C][C]90.8718[/C][C]90.8658[/C][C]1.00007[/C][C]1.0013[/C][/ROW]
[ROW][C]8[/C][C]90.98[/C][C]90.9571[/C][C]91.0971[/C][C]0.998463[/C][C]1.00025[/C][/ROW]
[ROW][C]9[/C][C]91.22[/C][C]91.2129[/C][C]91.3421[/C][C]0.998586[/C][C]1.00008[/C][/ROW]
[ROW][C]10[/C][C]91.42[/C][C]91.3959[/C][C]91.5883[/C][C]0.997899[/C][C]1.00026[/C][/ROW]
[ROW][C]11[/C][C]91.55[/C][C]91.5202[/C][C]91.84[/C][C]0.996518[/C][C]1.00033[/C][/ROW]
[ROW][C]12[/C][C]91.67[/C][C]91.5938[/C][C]92.0733[/C][C]0.994791[/C][C]1.00083[/C][/ROW]
[ROW][C]13[/C][C]92.3[/C][C]92.551[/C][C]92.2879[/C][C]1.00285[/C][C]0.997288[/C][/ROW]
[ROW][C]14[/C][C]92.92[/C][C]92.8471[/C][C]92.5083[/C][C]1.00366[/C][C]1.00078[/C][/ROW]
[ROW][C]15[/C][C]93.1[/C][C]93.0357[/C][C]92.7375[/C][C]1.00322[/C][C]1.00069[/C][/ROW]
[ROW][C]16[/C][C]93.23[/C][C]93.1837[/C][C]92.9738[/C][C]1.00226[/C][C]1.0005[/C][/ROW]
[ROW][C]17[/C][C]93.36[/C][C]93.3685[/C][C]93.2179[/C][C]1.00162[/C][C]0.999909[/C][/ROW]
[ROW][C]18[/C][C]93.42[/C][C]93.4732[/C][C]93.4662[/C][C]1.00007[/C][C]0.999431[/C][/ROW]
[ROW][C]19[/C][C]93.58[/C][C]93.7795[/C][C]93.7733[/C][C]1.00007[/C][C]0.997873[/C][/ROW]
[ROW][C]20[/C][C]93.68[/C][C]93.9749[/C][C]94.1196[/C][C]0.998463[/C][C]0.996862[/C][/ROW]
[ROW][C]21[/C][C]94.02[/C][C]94.3144[/C][C]94.4479[/C][C]0.998586[/C][C]0.996879[/C][/ROW]
[ROW][C]22[/C][C]94.29[/C][C]94.5759[/C][C]94.775[/C][C]0.997899[/C][C]0.996977[/C][/ROW]
[ROW][C]23[/C][C]94.54[/C][C]94.7747[/C][C]95.1058[/C][C]0.996518[/C][C]0.997524[/C][/ROW]
[ROW][C]24[/C][C]94.64[/C][C]94.9454[/C][C]95.4425[/C][C]0.994791[/C][C]0.996784[/C][/ROW]
[ROW][C]25[/C][C]96.7[/C][C]96.0535[/C][C]95.7804[/C][C]1.00285[/C][C]1.00673[/C][/ROW]
[ROW][C]26[/C][C]96.83[/C][C]96.4762[/C][C]96.1242[/C][C]1.00366[/C][C]1.00367[/C][/ROW]
[ROW][C]27[/C][C]97.07[/C][C]96.7806[/C][C]96.4704[/C][C]1.00322[/C][C]1.00299[/C][/ROW]
[ROW][C]28[/C][C]97.11[/C][C]97.0295[/C][C]96.8108[/C][C]1.00226[/C][C]1.00083[/C][/ROW]
[ROW][C]29[/C][C]97.42[/C][C]97.2969[/C][C]97.14[/C][C]1.00162[/C][C]1.00127[/C][/ROW]
[ROW][C]30[/C][C]97.44[/C][C]97.4672[/C][C]97.46[/C][C]1.00007[/C][C]0.999721[/C][/ROW]
[ROW][C]31[/C][C]97.67[/C][C]97.716[/C][C]97.7096[/C][C]1.00007[/C][C]0.999529[/C][/ROW]
[ROW][C]32[/C][C]97.84[/C][C]97.7516[/C][C]97.9021[/C][C]0.998463[/C][C]1.0009[/C][/ROW]
[ROW][C]33[/C][C]98.17[/C][C]97.9696[/C][C]98.1083[/C][C]0.998586[/C][C]1.00205[/C][/ROW]
[ROW][C]34[/C][C]98.31[/C][C]98.1197[/C][C]98.3262[/C][C]0.997899[/C][C]1.00194[/C][/ROW]
[ROW][C]35[/C][C]98.42[/C][C]98.2015[/C][C]98.5446[/C][C]0.996518[/C][C]1.00223[/C][/ROW]
[ROW][C]36[/C][C]98.44[/C][C]98.2419[/C][C]98.7563[/C][C]0.994791[/C][C]1.00202[/C][/ROW]
[ROW][C]37[/C][C]98.89[/C][C]99.2534[/C][C]98.9712[/C][C]1.00285[/C][C]0.996339[/C][/ROW]
[ROW][C]38[/C][C]99.26[/C][C]99.5491[/C][C]99.1858[/C][C]1.00366[/C][C]0.997096[/C][/ROW]
[ROW][C]39[/C][C]99.59[/C][C]99.7066[/C][C]99.3871[/C][C]1.00322[/C][C]0.99883[/C][/ROW]
[ROW][C]40[/C][C]99.82[/C][C]99.7995[/C][C]99.5746[/C][C]1.00226[/C][C]1.00021[/C][/ROW]
[ROW][C]41[/C][C]99.95[/C][C]99.9115[/C][C]99.7504[/C][C]1.00162[/C][C]1.00039[/C][/ROW]
[ROW][C]42[/C][C]99.99[/C][C]99.9249[/C][C]99.9175[/C][C]1.00007[/C][C]1.00065[/C][/ROW]
[ROW][C]43[/C][C]100.28[/C][C]100.109[/C][C]100.102[/C][C]1.00007[/C][C]1.00171[/C][/ROW]
[ROW][C]44[/C][C]100.38[/C][C]100.14[/C][C]100.295[/C][C]0.998463[/C][C]1.00239[/C][/ROW]
[ROW][C]45[/C][C]100.46[/C][C]100.319[/C][C]100.461[/C][C]0.998586[/C][C]1.00141[/C][/ROW]
[ROW][C]46[/C][C]100.52[/C][C]100.397[/C][C]100.608[/C][C]0.997899[/C][C]1.00123[/C][/ROW]
[ROW][C]47[/C][C]100.43[/C][C]100.396[/C][C]100.747[/C][C]0.996518[/C][C]1.00034[/C][/ROW]
[ROW][C]48[/C][C]100.44[/C][C]100.362[/C][C]100.888[/C][C]0.994791[/C][C]1.00078[/C][/ROW]
[ROW][C]49[/C][C]101.33[/C][C]101.325[/C][C]101.037[/C][C]1.00285[/C][C]1.00005[/C][/ROW]
[ROW][C]50[/C][C]101.43[/C][C]101.546[/C][C]101.175[/C][C]1.00366[/C][C]0.998862[/C][/ROW]
[ROW][C]51[/C][C]101.41[/C][C]101.624[/C][C]101.298[/C][C]1.00322[/C][C]0.997898[/C][/ROW]
[ROW][C]52[/C][C]101.53[/C][C]101.644[/C][C]101.415[/C][C]1.00226[/C][C]0.998878[/C][/ROW]
[ROW][C]53[/C][C]101.58[/C][C]101.697[/C][C]101.533[/C][C]1.00162[/C][C]0.99885[/C][/ROW]
[ROW][C]54[/C][C]101.73[/C][C]101.668[/C][C]101.661[/C][C]1.00007[/C][C]1.00061[/C][/ROW]
[ROW][C]55[/C][C]102.12[/C][C]NA[/C][C]NA[/C][C]1.00007[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]101.86[/C][C]NA[/C][C]NA[/C][C]0.998463[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]101.93[/C][C]NA[/C][C]NA[/C][C]0.998586[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]101.86[/C][C]NA[/C][C]NA[/C][C]0.997899[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]101.92[/C][C]NA[/C][C]NA[/C][C]0.996518[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]102.02[/C][C]NA[/C][C]NA[/C][C]0.994791[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295415&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295415&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
189.72NANA1.00285NA
289.95NANA1.00366NA
390.19NANA1.00322NA
490.23NANA1.00226NA
590.32NANA1.00162NA
690.86NANA1.00007NA
790.9990.871890.86581.000071.0013
890.9890.957191.09710.9984631.00025
991.2291.212991.34210.9985861.00008
1091.4291.395991.58830.9978991.00026
1191.5591.520291.840.9965181.00033
1291.6791.593892.07330.9947911.00083
1392.392.55192.28791.002850.997288
1492.9292.847192.50831.003661.00078
1593.193.035792.73751.003221.00069
1693.2393.183792.97381.002261.0005
1793.3693.368593.21791.001620.999909
1893.4293.473293.46621.000070.999431
1993.5893.779593.77331.000070.997873
2093.6893.974994.11960.9984630.996862
2194.0294.314494.44790.9985860.996879
2294.2994.575994.7750.9978990.996977
2394.5494.774795.10580.9965180.997524
2494.6494.945495.44250.9947910.996784
2596.796.053595.78041.002851.00673
2696.8396.476296.12421.003661.00367
2797.0796.780696.47041.003221.00299
2897.1197.029596.81081.002261.00083
2997.4297.296997.141.001621.00127
3097.4497.467297.461.000070.999721
3197.6797.71697.70961.000070.999529
3297.8497.751697.90210.9984631.0009
3398.1797.969698.10830.9985861.00205
3498.3198.119798.32620.9978991.00194
3598.4298.201598.54460.9965181.00223
3698.4498.241998.75630.9947911.00202
3798.8999.253498.97121.002850.996339
3899.2699.549199.18581.003660.997096
3999.5999.706699.38711.003220.99883
4099.8299.799599.57461.002261.00021
4199.9599.911599.75041.001621.00039
4299.9999.924999.91751.000071.00065
43100.28100.109100.1021.000071.00171
44100.38100.14100.2950.9984631.00239
45100.46100.319100.4610.9985861.00141
46100.52100.397100.6080.9978991.00123
47100.43100.396100.7470.9965181.00034
48100.44100.362100.8880.9947911.00078
49101.33101.325101.0371.002851.00005
50101.43101.546101.1751.003660.998862
51101.41101.624101.2981.003220.997898
52101.53101.644101.4151.002260.998878
53101.58101.697101.5331.001620.99885
54101.73101.668101.6611.000071.00061
55102.12NANA1.00007NA
56101.86NANA0.998463NA
57101.93NANA0.998586NA
58101.86NANA0.997899NA
59101.92NANA0.996518NA
60102.02NANA0.994791NA



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