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 computationWed, 27 Nov 2013 16:07:27 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Nov/27/t1385586507autvdkq0lo8ecti.htm/, Retrieved Mon, 29 Apr 2024 13:03:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=229155, Retrieved Mon, 29 Apr 2024 13:03:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact81
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [W8] [2013-11-27 21:07:27] [6ca235be63c25d1ede0161784935ca53] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.969 
6.980 
6.927 
6.954 
6.999 
6.935 
6.972 
6.998 
6.950 
6.982 
7.010 
6.962 
6.934 
6.952 
6.983 
7.020 
6.998 
6.991 
6.985 
6.986 
6.961 
6.939 
6.969 
6.994 
6.969 
6.944 
6.989 
6.984 
6.993 
7.000 
7.044 
7.019 
7.036 
7.016 
7.012 
6.986 
7.008 
7.057 
7.038 
7.040 
6.975 
7.004 
7.007 
7.035 
7.056 
6.985 
7.020 
7.074 
7.067 
7.067 
7.090 
7.071 
7.067 
7.078 
7.057 
7.059 
7.109 
7.090 
7.054 
7.067 




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=229155&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 time4 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16.969NANA0.998037NA
26.98NANA0.999315NA
36.927NANA1.00185NA
46.954NANA1.002NA
56.999NANA0.99885NA
66.935NANA1.00005NA
76.9726.976136.968381.001110.999408
86.9986.979066.965751.001911.00271
96.956.968826.966921.000270.997299
106.9826.950956.9720.9969811.00447
117.016.973916.974710.9998861.00517
126.9626.975186.9770.9997390.99811
136.9346.966176.979870.9980370.995381
146.9526.975146.979920.9993150.996683
156.9836.992776.979881.001850.998603
167.026.992486.978541.0021.00394
176.9986.967026.975040.998851.00445
186.9916.975026.974671.000051.00229
196.9856.985236.977461.001110.999968
206.9866.991926.978581.001910.999154
216.9616.980416.97851.000270.99722
226.9396.956186.977250.9969810.99753
236.9696.974756.975540.9998860.999176
246.9946.973896.975710.9997391.00288
256.9696.964846.978540.9980371.0006
266.9446.977596.982370.9993150.995185
276.9896.999786.986881.001850.99846
286.9847.007176.993211.0020.996693
296.9936.990166.998210.998851.00041
3077.000026.999671.000050.999997
317.0447.008757.000961.001111.00503
327.0197.020687.007291.001910.999761
337.0367.015967.014041.000271.00286
347.0166.997237.018420.9969811.00268
357.0127.01927.020.9998860.998974
366.9867.017597.019420.9997390.995499
377.0087.004277.018040.9980371.00053
387.0577.012367.017170.9993151.00637
397.0387.031637.018671.001851.00091
407.047.032227.018211.0021.00111
416.9757.009187.017250.998850.995123
427.0047.02167.021251.000050.997493
437.0077.03527.027381.001110.995992
447.0357.043687.030251.001910.998767
457.0567.034757.032831.000271.00302
466.9857.015057.036290.9969810.995717
477.027.040627.041420.9998860.997072
487.0747.04657.048330.9997391.0039
497.0677.039657.05350.9980371.00388
507.0677.051757.056580.9993151.00216
517.097.072837.059791.001851.00243
527.0717.080487.066381.0020.998661
537.0677.064037.072170.998851.00042
547.0787.073657.073291.000051.00062
557.057NANA1.00111NA
567.059NANA1.00191NA
577.109NANA1.00027NA
587.09NANA0.996981NA
597.054NANA0.999886NA
607.067NANA0.999739NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 6.969 & NA & NA & 0.998037 & NA \tabularnewline
2 & 6.98 & NA & NA & 0.999315 & NA \tabularnewline
3 & 6.927 & NA & NA & 1.00185 & NA \tabularnewline
4 & 6.954 & NA & NA & 1.002 & NA \tabularnewline
5 & 6.999 & NA & NA & 0.99885 & NA \tabularnewline
6 & 6.935 & NA & NA & 1.00005 & NA \tabularnewline
7 & 6.972 & 6.97613 & 6.96838 & 1.00111 & 0.999408 \tabularnewline
8 & 6.998 & 6.97906 & 6.96575 & 1.00191 & 1.00271 \tabularnewline
9 & 6.95 & 6.96882 & 6.96692 & 1.00027 & 0.997299 \tabularnewline
10 & 6.982 & 6.95095 & 6.972 & 0.996981 & 1.00447 \tabularnewline
11 & 7.01 & 6.97391 & 6.97471 & 0.999886 & 1.00517 \tabularnewline
12 & 6.962 & 6.97518 & 6.977 & 0.999739 & 0.99811 \tabularnewline
13 & 6.934 & 6.96617 & 6.97987 & 0.998037 & 0.995381 \tabularnewline
14 & 6.952 & 6.97514 & 6.97992 & 0.999315 & 0.996683 \tabularnewline
15 & 6.983 & 6.99277 & 6.97988 & 1.00185 & 0.998603 \tabularnewline
16 & 7.02 & 6.99248 & 6.97854 & 1.002 & 1.00394 \tabularnewline
17 & 6.998 & 6.96702 & 6.97504 & 0.99885 & 1.00445 \tabularnewline
18 & 6.991 & 6.97502 & 6.97467 & 1.00005 & 1.00229 \tabularnewline
19 & 6.985 & 6.98523 & 6.97746 & 1.00111 & 0.999968 \tabularnewline
20 & 6.986 & 6.99192 & 6.97858 & 1.00191 & 0.999154 \tabularnewline
21 & 6.961 & 6.98041 & 6.9785 & 1.00027 & 0.99722 \tabularnewline
22 & 6.939 & 6.95618 & 6.97725 & 0.996981 & 0.99753 \tabularnewline
23 & 6.969 & 6.97475 & 6.97554 & 0.999886 & 0.999176 \tabularnewline
24 & 6.994 & 6.97389 & 6.97571 & 0.999739 & 1.00288 \tabularnewline
25 & 6.969 & 6.96484 & 6.97854 & 0.998037 & 1.0006 \tabularnewline
26 & 6.944 & 6.97759 & 6.98237 & 0.999315 & 0.995185 \tabularnewline
27 & 6.989 & 6.99978 & 6.98688 & 1.00185 & 0.99846 \tabularnewline
28 & 6.984 & 7.00717 & 6.99321 & 1.002 & 0.996693 \tabularnewline
29 & 6.993 & 6.99016 & 6.99821 & 0.99885 & 1.00041 \tabularnewline
30 & 7 & 7.00002 & 6.99967 & 1.00005 & 0.999997 \tabularnewline
31 & 7.044 & 7.00875 & 7.00096 & 1.00111 & 1.00503 \tabularnewline
32 & 7.019 & 7.02068 & 7.00729 & 1.00191 & 0.999761 \tabularnewline
33 & 7.036 & 7.01596 & 7.01404 & 1.00027 & 1.00286 \tabularnewline
34 & 7.016 & 6.99723 & 7.01842 & 0.996981 & 1.00268 \tabularnewline
35 & 7.012 & 7.0192 & 7.02 & 0.999886 & 0.998974 \tabularnewline
36 & 6.986 & 7.01759 & 7.01942 & 0.999739 & 0.995499 \tabularnewline
37 & 7.008 & 7.00427 & 7.01804 & 0.998037 & 1.00053 \tabularnewline
38 & 7.057 & 7.01236 & 7.01717 & 0.999315 & 1.00637 \tabularnewline
39 & 7.038 & 7.03163 & 7.01867 & 1.00185 & 1.00091 \tabularnewline
40 & 7.04 & 7.03222 & 7.01821 & 1.002 & 1.00111 \tabularnewline
41 & 6.975 & 7.00918 & 7.01725 & 0.99885 & 0.995123 \tabularnewline
42 & 7.004 & 7.0216 & 7.02125 & 1.00005 & 0.997493 \tabularnewline
43 & 7.007 & 7.0352 & 7.02738 & 1.00111 & 0.995992 \tabularnewline
44 & 7.035 & 7.04368 & 7.03025 & 1.00191 & 0.998767 \tabularnewline
45 & 7.056 & 7.03475 & 7.03283 & 1.00027 & 1.00302 \tabularnewline
46 & 6.985 & 7.01505 & 7.03629 & 0.996981 & 0.995717 \tabularnewline
47 & 7.02 & 7.04062 & 7.04142 & 0.999886 & 0.997072 \tabularnewline
48 & 7.074 & 7.0465 & 7.04833 & 0.999739 & 1.0039 \tabularnewline
49 & 7.067 & 7.03965 & 7.0535 & 0.998037 & 1.00388 \tabularnewline
50 & 7.067 & 7.05175 & 7.05658 & 0.999315 & 1.00216 \tabularnewline
51 & 7.09 & 7.07283 & 7.05979 & 1.00185 & 1.00243 \tabularnewline
52 & 7.071 & 7.08048 & 7.06638 & 1.002 & 0.998661 \tabularnewline
53 & 7.067 & 7.06403 & 7.07217 & 0.99885 & 1.00042 \tabularnewline
54 & 7.078 & 7.07365 & 7.07329 & 1.00005 & 1.00062 \tabularnewline
55 & 7.057 & NA & NA & 1.00111 & NA \tabularnewline
56 & 7.059 & NA & NA & 1.00191 & NA \tabularnewline
57 & 7.109 & NA & NA & 1.00027 & NA \tabularnewline
58 & 7.09 & NA & NA & 0.996981 & NA \tabularnewline
59 & 7.054 & NA & NA & 0.999886 & NA \tabularnewline
60 & 7.067 & NA & NA & 0.999739 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=229155&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]6.969[/C][C]NA[/C][C]NA[/C][C]0.998037[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]6.98[/C][C]NA[/C][C]NA[/C][C]0.999315[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]6.927[/C][C]NA[/C][C]NA[/C][C]1.00185[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]6.954[/C][C]NA[/C][C]NA[/C][C]1.002[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]6.999[/C][C]NA[/C][C]NA[/C][C]0.99885[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]6.935[/C][C]NA[/C][C]NA[/C][C]1.00005[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]6.972[/C][C]6.97613[/C][C]6.96838[/C][C]1.00111[/C][C]0.999408[/C][/ROW]
[ROW][C]8[/C][C]6.998[/C][C]6.97906[/C][C]6.96575[/C][C]1.00191[/C][C]1.00271[/C][/ROW]
[ROW][C]9[/C][C]6.95[/C][C]6.96882[/C][C]6.96692[/C][C]1.00027[/C][C]0.997299[/C][/ROW]
[ROW][C]10[/C][C]6.982[/C][C]6.95095[/C][C]6.972[/C][C]0.996981[/C][C]1.00447[/C][/ROW]
[ROW][C]11[/C][C]7.01[/C][C]6.97391[/C][C]6.97471[/C][C]0.999886[/C][C]1.00517[/C][/ROW]
[ROW][C]12[/C][C]6.962[/C][C]6.97518[/C][C]6.977[/C][C]0.999739[/C][C]0.99811[/C][/ROW]
[ROW][C]13[/C][C]6.934[/C][C]6.96617[/C][C]6.97987[/C][C]0.998037[/C][C]0.995381[/C][/ROW]
[ROW][C]14[/C][C]6.952[/C][C]6.97514[/C][C]6.97992[/C][C]0.999315[/C][C]0.996683[/C][/ROW]
[ROW][C]15[/C][C]6.983[/C][C]6.99277[/C][C]6.97988[/C][C]1.00185[/C][C]0.998603[/C][/ROW]
[ROW][C]16[/C][C]7.02[/C][C]6.99248[/C][C]6.97854[/C][C]1.002[/C][C]1.00394[/C][/ROW]
[ROW][C]17[/C][C]6.998[/C][C]6.96702[/C][C]6.97504[/C][C]0.99885[/C][C]1.00445[/C][/ROW]
[ROW][C]18[/C][C]6.991[/C][C]6.97502[/C][C]6.97467[/C][C]1.00005[/C][C]1.00229[/C][/ROW]
[ROW][C]19[/C][C]6.985[/C][C]6.98523[/C][C]6.97746[/C][C]1.00111[/C][C]0.999968[/C][/ROW]
[ROW][C]20[/C][C]6.986[/C][C]6.99192[/C][C]6.97858[/C][C]1.00191[/C][C]0.999154[/C][/ROW]
[ROW][C]21[/C][C]6.961[/C][C]6.98041[/C][C]6.9785[/C][C]1.00027[/C][C]0.99722[/C][/ROW]
[ROW][C]22[/C][C]6.939[/C][C]6.95618[/C][C]6.97725[/C][C]0.996981[/C][C]0.99753[/C][/ROW]
[ROW][C]23[/C][C]6.969[/C][C]6.97475[/C][C]6.97554[/C][C]0.999886[/C][C]0.999176[/C][/ROW]
[ROW][C]24[/C][C]6.994[/C][C]6.97389[/C][C]6.97571[/C][C]0.999739[/C][C]1.00288[/C][/ROW]
[ROW][C]25[/C][C]6.969[/C][C]6.96484[/C][C]6.97854[/C][C]0.998037[/C][C]1.0006[/C][/ROW]
[ROW][C]26[/C][C]6.944[/C][C]6.97759[/C][C]6.98237[/C][C]0.999315[/C][C]0.995185[/C][/ROW]
[ROW][C]27[/C][C]6.989[/C][C]6.99978[/C][C]6.98688[/C][C]1.00185[/C][C]0.99846[/C][/ROW]
[ROW][C]28[/C][C]6.984[/C][C]7.00717[/C][C]6.99321[/C][C]1.002[/C][C]0.996693[/C][/ROW]
[ROW][C]29[/C][C]6.993[/C][C]6.99016[/C][C]6.99821[/C][C]0.99885[/C][C]1.00041[/C][/ROW]
[ROW][C]30[/C][C]7[/C][C]7.00002[/C][C]6.99967[/C][C]1.00005[/C][C]0.999997[/C][/ROW]
[ROW][C]31[/C][C]7.044[/C][C]7.00875[/C][C]7.00096[/C][C]1.00111[/C][C]1.00503[/C][/ROW]
[ROW][C]32[/C][C]7.019[/C][C]7.02068[/C][C]7.00729[/C][C]1.00191[/C][C]0.999761[/C][/ROW]
[ROW][C]33[/C][C]7.036[/C][C]7.01596[/C][C]7.01404[/C][C]1.00027[/C][C]1.00286[/C][/ROW]
[ROW][C]34[/C][C]7.016[/C][C]6.99723[/C][C]7.01842[/C][C]0.996981[/C][C]1.00268[/C][/ROW]
[ROW][C]35[/C][C]7.012[/C][C]7.0192[/C][C]7.02[/C][C]0.999886[/C][C]0.998974[/C][/ROW]
[ROW][C]36[/C][C]6.986[/C][C]7.01759[/C][C]7.01942[/C][C]0.999739[/C][C]0.995499[/C][/ROW]
[ROW][C]37[/C][C]7.008[/C][C]7.00427[/C][C]7.01804[/C][C]0.998037[/C][C]1.00053[/C][/ROW]
[ROW][C]38[/C][C]7.057[/C][C]7.01236[/C][C]7.01717[/C][C]0.999315[/C][C]1.00637[/C][/ROW]
[ROW][C]39[/C][C]7.038[/C][C]7.03163[/C][C]7.01867[/C][C]1.00185[/C][C]1.00091[/C][/ROW]
[ROW][C]40[/C][C]7.04[/C][C]7.03222[/C][C]7.01821[/C][C]1.002[/C][C]1.00111[/C][/ROW]
[ROW][C]41[/C][C]6.975[/C][C]7.00918[/C][C]7.01725[/C][C]0.99885[/C][C]0.995123[/C][/ROW]
[ROW][C]42[/C][C]7.004[/C][C]7.0216[/C][C]7.02125[/C][C]1.00005[/C][C]0.997493[/C][/ROW]
[ROW][C]43[/C][C]7.007[/C][C]7.0352[/C][C]7.02738[/C][C]1.00111[/C][C]0.995992[/C][/ROW]
[ROW][C]44[/C][C]7.035[/C][C]7.04368[/C][C]7.03025[/C][C]1.00191[/C][C]0.998767[/C][/ROW]
[ROW][C]45[/C][C]7.056[/C][C]7.03475[/C][C]7.03283[/C][C]1.00027[/C][C]1.00302[/C][/ROW]
[ROW][C]46[/C][C]6.985[/C][C]7.01505[/C][C]7.03629[/C][C]0.996981[/C][C]0.995717[/C][/ROW]
[ROW][C]47[/C][C]7.02[/C][C]7.04062[/C][C]7.04142[/C][C]0.999886[/C][C]0.997072[/C][/ROW]
[ROW][C]48[/C][C]7.074[/C][C]7.0465[/C][C]7.04833[/C][C]0.999739[/C][C]1.0039[/C][/ROW]
[ROW][C]49[/C][C]7.067[/C][C]7.03965[/C][C]7.0535[/C][C]0.998037[/C][C]1.00388[/C][/ROW]
[ROW][C]50[/C][C]7.067[/C][C]7.05175[/C][C]7.05658[/C][C]0.999315[/C][C]1.00216[/C][/ROW]
[ROW][C]51[/C][C]7.09[/C][C]7.07283[/C][C]7.05979[/C][C]1.00185[/C][C]1.00243[/C][/ROW]
[ROW][C]52[/C][C]7.071[/C][C]7.08048[/C][C]7.06638[/C][C]1.002[/C][C]0.998661[/C][/ROW]
[ROW][C]53[/C][C]7.067[/C][C]7.06403[/C][C]7.07217[/C][C]0.99885[/C][C]1.00042[/C][/ROW]
[ROW][C]54[/C][C]7.078[/C][C]7.07365[/C][C]7.07329[/C][C]1.00005[/C][C]1.00062[/C][/ROW]
[ROW][C]55[/C][C]7.057[/C][C]NA[/C][C]NA[/C][C]1.00111[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]7.059[/C][C]NA[/C][C]NA[/C][C]1.00191[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]7.109[/C][C]NA[/C][C]NA[/C][C]1.00027[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]7.09[/C][C]NA[/C][C]NA[/C][C]0.996981[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]7.054[/C][C]NA[/C][C]NA[/C][C]0.999886[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]7.067[/C][C]NA[/C][C]NA[/C][C]0.999739[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=229155&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=229155&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
16.969NANA0.998037NA
26.98NANA0.999315NA
36.927NANA1.00185NA
46.954NANA1.002NA
56.999NANA0.99885NA
66.935NANA1.00005NA
76.9726.976136.968381.001110.999408
86.9986.979066.965751.001911.00271
96.956.968826.966921.000270.997299
106.9826.950956.9720.9969811.00447
117.016.973916.974710.9998861.00517
126.9626.975186.9770.9997390.99811
136.9346.966176.979870.9980370.995381
146.9526.975146.979920.9993150.996683
156.9836.992776.979881.001850.998603
167.026.992486.978541.0021.00394
176.9986.967026.975040.998851.00445
186.9916.975026.974671.000051.00229
196.9856.985236.977461.001110.999968
206.9866.991926.978581.001910.999154
216.9616.980416.97851.000270.99722
226.9396.956186.977250.9969810.99753
236.9696.974756.975540.9998860.999176
246.9946.973896.975710.9997391.00288
256.9696.964846.978540.9980371.0006
266.9446.977596.982370.9993150.995185
276.9896.999786.986881.001850.99846
286.9847.007176.993211.0020.996693
296.9936.990166.998210.998851.00041
3077.000026.999671.000050.999997
317.0447.008757.000961.001111.00503
327.0197.020687.007291.001910.999761
337.0367.015967.014041.000271.00286
347.0166.997237.018420.9969811.00268
357.0127.01927.020.9998860.998974
366.9867.017597.019420.9997390.995499
377.0087.004277.018040.9980371.00053
387.0577.012367.017170.9993151.00637
397.0387.031637.018671.001851.00091
407.047.032227.018211.0021.00111
416.9757.009187.017250.998850.995123
427.0047.02167.021251.000050.997493
437.0077.03527.027381.001110.995992
447.0357.043687.030251.001910.998767
457.0567.034757.032831.000271.00302
466.9857.015057.036290.9969810.995717
477.027.040627.041420.9998860.997072
487.0747.04657.048330.9997391.0039
497.0677.039657.05350.9980371.00388
507.0677.051757.056580.9993151.00216
517.097.072837.059791.001851.00243
527.0717.080487.066381.0020.998661
537.0677.064037.072170.998851.00042
547.0787.073657.073291.000051.00062
557.057NANA1.00111NA
567.059NANA1.00191NA
577.109NANA1.00027NA
587.09NANA0.996981NA
597.054NANA0.999886NA
607.067NANA0.999739NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '1'
par1 <- 'multiplicative'
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')