Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 02 Jun 2009 09:33:58 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Jun/02/t1243956850mdpssc0x4z38fol.htm/, Retrieved Fri, 10 May 2024 19:19:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=41280, Retrieved Fri, 10 May 2024 19:19:40 +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)
-     [Standard Deviation Plot] [] [2009-06-01 15:27:11] [5c738c8b19699587b9bfe8605ebf60ee]
- RMPD    [Classical Decomposition] [] [2009-06-02 15:33:58] [738a25b0d97c8f3fa6714f905e8e3fd3] [Current]
Feedback Forum

Post a new message
Dataseries X:
98.8
100.5
110.4
96.4
101.9
106.2
81.0
94.7
101.0
109.4
102.3
90.7
96.2
96.1
106.0
103.1
102.0
104.7
86.0
92.1
106.9
112.6
101.7
92.0
97.4
97.0
105.4
102.7
98.1
104.5
87.4
89.9
109.8
111.7
98.6
96.9
95.1
97.0
112.7
102.9
97.4
111.4
87.4
96.8
114.1
110.3
103.9
101.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=41280&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=41280&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=41280&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'Gwilym Jenkins' @ 72.249.127.135







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
198.8NANA-3.53599537037038NA
2100.5NANA-3.18738425925927NA
3110.4NANA7.93483796296295NA
496.4NANA2.60706018518519NA
5101.9NANA-1.16099537037037NA
6106.2NANA6.36539351851853NA
78184.568171296296399.3333333333333-14.7651620370370-3.5681712962963
894.791.80983796296399.0416666666667-7.23182870370372.89016203703703
9101105.12650462963098.6756.45150462962964-4.12650462962962
10109.4110.43344907407498.770833333333311.6626157407407-1.03344907407406
11102.3100.32233796296399.05416666666671.268171296296291.97766203703705
1290.792.587615740740798.9958333333333-6.40821759259259-1.88761574074074
1396.295.605671296296399.1416666666667-3.535995370370380.59432870370371
1496.196.054282407407499.2416666666667-3.187384259259270.045717592592581
15106107.31400462963099.37916666666677.93483796296295-1.31400462962964
16103.1102.36539351851999.75833333333332.607060185185190.734606481481478
1710298.705671296296399.8666666666667-1.160995370370373.2943287037037
18104.7106.26122685185299.89583333333336.36539351851853-1.56122685185186
198685.234837962963100-14.76516203703700.76516203703703
2092.192.8556712962963100.0875-7.2318287037037-0.755671296296285
21106.9106.551504629630100.16.451504629629640.348495370370372
22112.6111.720949074074100.05833333333311.66261574074070.879050925925924
23101.7101.14733796296399.87916666666671.268171296296290.552662037037052
249293.300115740740799.7083333333333-6.40821759259259-1.30011574074074
2597.496.22233796296399.7583333333333-3.535995370370381.17766203703707
269796.537615740740799.725-3.187384259259270.462384259259267
27105.4107.68900462963099.75416666666677.93483796296295-2.28900462962963
28102.7102.44456018518599.83752.607060185185190.255439814814821
2998.198.50983796296399.6708333333333-1.16099537037037-0.409837962962953
30104.5106.11122685185299.74583333333336.36539351851853-1.61122685185185
3187.485.089004629629699.8541666666667-14.76516203703702.31099537037038
3289.992.526504629629699.7583333333333-7.2318287037037-2.62650462962962
33109.8106.514004629630100.06256.451504629629643.28599537037037
34111.7112.037615740741100.37511.6626157407407-0.337615740740731
3598.6101.622337962963100.3541666666671.26817129629629-3.02233796296296
3696.994.2042824074074100.6125-6.408217592592592.6957175925926
3795.197.3640046296296100.9-3.53599537037038-2.26400462962964
389798.0001157407407101.1875-3.18738425925927-1.00011574074074
39112.7109.589004629630101.6541666666677.934837962962953.11099537037038
40102.9104.382060185185101.7752.60706018518519-1.48206018518518
4197.4100.776504629630101.9375-1.16099537037037-3.37650462962961
42111.4108.719560185185102.3541666666676.365393518518532.68043981481482
4387.4NANA-14.7651620370370NA
4496.8NANA-7.2318287037037NA
45114.1NANA6.45150462962964NA
46110.3NANA11.6626157407407NA
47103.9NANA1.26817129629629NA
48101.6NANA-6.40821759259259NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 98.8 & NA & NA & -3.53599537037038 & NA \tabularnewline
2 & 100.5 & NA & NA & -3.18738425925927 & NA \tabularnewline
3 & 110.4 & NA & NA & 7.93483796296295 & NA \tabularnewline
4 & 96.4 & NA & NA & 2.60706018518519 & NA \tabularnewline
5 & 101.9 & NA & NA & -1.16099537037037 & NA \tabularnewline
6 & 106.2 & NA & NA & 6.36539351851853 & NA \tabularnewline
7 & 81 & 84.5681712962963 & 99.3333333333333 & -14.7651620370370 & -3.5681712962963 \tabularnewline
8 & 94.7 & 91.809837962963 & 99.0416666666667 & -7.2318287037037 & 2.89016203703703 \tabularnewline
9 & 101 & 105.126504629630 & 98.675 & 6.45150462962964 & -4.12650462962962 \tabularnewline
10 & 109.4 & 110.433449074074 & 98.7708333333333 & 11.6626157407407 & -1.03344907407406 \tabularnewline
11 & 102.3 & 100.322337962963 & 99.0541666666667 & 1.26817129629629 & 1.97766203703705 \tabularnewline
12 & 90.7 & 92.5876157407407 & 98.9958333333333 & -6.40821759259259 & -1.88761574074074 \tabularnewline
13 & 96.2 & 95.6056712962963 & 99.1416666666667 & -3.53599537037038 & 0.59432870370371 \tabularnewline
14 & 96.1 & 96.0542824074074 & 99.2416666666667 & -3.18738425925927 & 0.045717592592581 \tabularnewline
15 & 106 & 107.314004629630 & 99.3791666666667 & 7.93483796296295 & -1.31400462962964 \tabularnewline
16 & 103.1 & 102.365393518519 & 99.7583333333333 & 2.60706018518519 & 0.734606481481478 \tabularnewline
17 & 102 & 98.7056712962963 & 99.8666666666667 & -1.16099537037037 & 3.2943287037037 \tabularnewline
18 & 104.7 & 106.261226851852 & 99.8958333333333 & 6.36539351851853 & -1.56122685185186 \tabularnewline
19 & 86 & 85.234837962963 & 100 & -14.7651620370370 & 0.76516203703703 \tabularnewline
20 & 92.1 & 92.8556712962963 & 100.0875 & -7.2318287037037 & -0.755671296296285 \tabularnewline
21 & 106.9 & 106.551504629630 & 100.1 & 6.45150462962964 & 0.348495370370372 \tabularnewline
22 & 112.6 & 111.720949074074 & 100.058333333333 & 11.6626157407407 & 0.879050925925924 \tabularnewline
23 & 101.7 & 101.147337962963 & 99.8791666666667 & 1.26817129629629 & 0.552662037037052 \tabularnewline
24 & 92 & 93.3001157407407 & 99.7083333333333 & -6.40821759259259 & -1.30011574074074 \tabularnewline
25 & 97.4 & 96.222337962963 & 99.7583333333333 & -3.53599537037038 & 1.17766203703707 \tabularnewline
26 & 97 & 96.5376157407407 & 99.725 & -3.18738425925927 & 0.462384259259267 \tabularnewline
27 & 105.4 & 107.689004629630 & 99.7541666666667 & 7.93483796296295 & -2.28900462962963 \tabularnewline
28 & 102.7 & 102.444560185185 & 99.8375 & 2.60706018518519 & 0.255439814814821 \tabularnewline
29 & 98.1 & 98.509837962963 & 99.6708333333333 & -1.16099537037037 & -0.409837962962953 \tabularnewline
30 & 104.5 & 106.111226851852 & 99.7458333333333 & 6.36539351851853 & -1.61122685185185 \tabularnewline
31 & 87.4 & 85.0890046296296 & 99.8541666666667 & -14.7651620370370 & 2.31099537037038 \tabularnewline
32 & 89.9 & 92.5265046296296 & 99.7583333333333 & -7.2318287037037 & -2.62650462962962 \tabularnewline
33 & 109.8 & 106.514004629630 & 100.0625 & 6.45150462962964 & 3.28599537037037 \tabularnewline
34 & 111.7 & 112.037615740741 & 100.375 & 11.6626157407407 & -0.337615740740731 \tabularnewline
35 & 98.6 & 101.622337962963 & 100.354166666667 & 1.26817129629629 & -3.02233796296296 \tabularnewline
36 & 96.9 & 94.2042824074074 & 100.6125 & -6.40821759259259 & 2.6957175925926 \tabularnewline
37 & 95.1 & 97.3640046296296 & 100.9 & -3.53599537037038 & -2.26400462962964 \tabularnewline
38 & 97 & 98.0001157407407 & 101.1875 & -3.18738425925927 & -1.00011574074074 \tabularnewline
39 & 112.7 & 109.589004629630 & 101.654166666667 & 7.93483796296295 & 3.11099537037038 \tabularnewline
40 & 102.9 & 104.382060185185 & 101.775 & 2.60706018518519 & -1.48206018518518 \tabularnewline
41 & 97.4 & 100.776504629630 & 101.9375 & -1.16099537037037 & -3.37650462962961 \tabularnewline
42 & 111.4 & 108.719560185185 & 102.354166666667 & 6.36539351851853 & 2.68043981481482 \tabularnewline
43 & 87.4 & NA & NA & -14.7651620370370 & NA \tabularnewline
44 & 96.8 & NA & NA & -7.2318287037037 & NA \tabularnewline
45 & 114.1 & NA & NA & 6.45150462962964 & NA \tabularnewline
46 & 110.3 & NA & NA & 11.6626157407407 & NA \tabularnewline
47 & 103.9 & NA & NA & 1.26817129629629 & NA \tabularnewline
48 & 101.6 & NA & NA & -6.40821759259259 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=41280&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]98.8[/C][C]NA[/C][C]NA[/C][C]-3.53599537037038[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]100.5[/C][C]NA[/C][C]NA[/C][C]-3.18738425925927[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]110.4[/C][C]NA[/C][C]NA[/C][C]7.93483796296295[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]96.4[/C][C]NA[/C][C]NA[/C][C]2.60706018518519[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]101.9[/C][C]NA[/C][C]NA[/C][C]-1.16099537037037[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]106.2[/C][C]NA[/C][C]NA[/C][C]6.36539351851853[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]81[/C][C]84.5681712962963[/C][C]99.3333333333333[/C][C]-14.7651620370370[/C][C]-3.5681712962963[/C][/ROW]
[ROW][C]8[/C][C]94.7[/C][C]91.809837962963[/C][C]99.0416666666667[/C][C]-7.2318287037037[/C][C]2.89016203703703[/C][/ROW]
[ROW][C]9[/C][C]101[/C][C]105.126504629630[/C][C]98.675[/C][C]6.45150462962964[/C][C]-4.12650462962962[/C][/ROW]
[ROW][C]10[/C][C]109.4[/C][C]110.433449074074[/C][C]98.7708333333333[/C][C]11.6626157407407[/C][C]-1.03344907407406[/C][/ROW]
[ROW][C]11[/C][C]102.3[/C][C]100.322337962963[/C][C]99.0541666666667[/C][C]1.26817129629629[/C][C]1.97766203703705[/C][/ROW]
[ROW][C]12[/C][C]90.7[/C][C]92.5876157407407[/C][C]98.9958333333333[/C][C]-6.40821759259259[/C][C]-1.88761574074074[/C][/ROW]
[ROW][C]13[/C][C]96.2[/C][C]95.6056712962963[/C][C]99.1416666666667[/C][C]-3.53599537037038[/C][C]0.59432870370371[/C][/ROW]
[ROW][C]14[/C][C]96.1[/C][C]96.0542824074074[/C][C]99.2416666666667[/C][C]-3.18738425925927[/C][C]0.045717592592581[/C][/ROW]
[ROW][C]15[/C][C]106[/C][C]107.314004629630[/C][C]99.3791666666667[/C][C]7.93483796296295[/C][C]-1.31400462962964[/C][/ROW]
[ROW][C]16[/C][C]103.1[/C][C]102.365393518519[/C][C]99.7583333333333[/C][C]2.60706018518519[/C][C]0.734606481481478[/C][/ROW]
[ROW][C]17[/C][C]102[/C][C]98.7056712962963[/C][C]99.8666666666667[/C][C]-1.16099537037037[/C][C]3.2943287037037[/C][/ROW]
[ROW][C]18[/C][C]104.7[/C][C]106.261226851852[/C][C]99.8958333333333[/C][C]6.36539351851853[/C][C]-1.56122685185186[/C][/ROW]
[ROW][C]19[/C][C]86[/C][C]85.234837962963[/C][C]100[/C][C]-14.7651620370370[/C][C]0.76516203703703[/C][/ROW]
[ROW][C]20[/C][C]92.1[/C][C]92.8556712962963[/C][C]100.0875[/C][C]-7.2318287037037[/C][C]-0.755671296296285[/C][/ROW]
[ROW][C]21[/C][C]106.9[/C][C]106.551504629630[/C][C]100.1[/C][C]6.45150462962964[/C][C]0.348495370370372[/C][/ROW]
[ROW][C]22[/C][C]112.6[/C][C]111.720949074074[/C][C]100.058333333333[/C][C]11.6626157407407[/C][C]0.879050925925924[/C][/ROW]
[ROW][C]23[/C][C]101.7[/C][C]101.147337962963[/C][C]99.8791666666667[/C][C]1.26817129629629[/C][C]0.552662037037052[/C][/ROW]
[ROW][C]24[/C][C]92[/C][C]93.3001157407407[/C][C]99.7083333333333[/C][C]-6.40821759259259[/C][C]-1.30011574074074[/C][/ROW]
[ROW][C]25[/C][C]97.4[/C][C]96.222337962963[/C][C]99.7583333333333[/C][C]-3.53599537037038[/C][C]1.17766203703707[/C][/ROW]
[ROW][C]26[/C][C]97[/C][C]96.5376157407407[/C][C]99.725[/C][C]-3.18738425925927[/C][C]0.462384259259267[/C][/ROW]
[ROW][C]27[/C][C]105.4[/C][C]107.689004629630[/C][C]99.7541666666667[/C][C]7.93483796296295[/C][C]-2.28900462962963[/C][/ROW]
[ROW][C]28[/C][C]102.7[/C][C]102.444560185185[/C][C]99.8375[/C][C]2.60706018518519[/C][C]0.255439814814821[/C][/ROW]
[ROW][C]29[/C][C]98.1[/C][C]98.509837962963[/C][C]99.6708333333333[/C][C]-1.16099537037037[/C][C]-0.409837962962953[/C][/ROW]
[ROW][C]30[/C][C]104.5[/C][C]106.111226851852[/C][C]99.7458333333333[/C][C]6.36539351851853[/C][C]-1.61122685185185[/C][/ROW]
[ROW][C]31[/C][C]87.4[/C][C]85.0890046296296[/C][C]99.8541666666667[/C][C]-14.7651620370370[/C][C]2.31099537037038[/C][/ROW]
[ROW][C]32[/C][C]89.9[/C][C]92.5265046296296[/C][C]99.7583333333333[/C][C]-7.2318287037037[/C][C]-2.62650462962962[/C][/ROW]
[ROW][C]33[/C][C]109.8[/C][C]106.514004629630[/C][C]100.0625[/C][C]6.45150462962964[/C][C]3.28599537037037[/C][/ROW]
[ROW][C]34[/C][C]111.7[/C][C]112.037615740741[/C][C]100.375[/C][C]11.6626157407407[/C][C]-0.337615740740731[/C][/ROW]
[ROW][C]35[/C][C]98.6[/C][C]101.622337962963[/C][C]100.354166666667[/C][C]1.26817129629629[/C][C]-3.02233796296296[/C][/ROW]
[ROW][C]36[/C][C]96.9[/C][C]94.2042824074074[/C][C]100.6125[/C][C]-6.40821759259259[/C][C]2.6957175925926[/C][/ROW]
[ROW][C]37[/C][C]95.1[/C][C]97.3640046296296[/C][C]100.9[/C][C]-3.53599537037038[/C][C]-2.26400462962964[/C][/ROW]
[ROW][C]38[/C][C]97[/C][C]98.0001157407407[/C][C]101.1875[/C][C]-3.18738425925927[/C][C]-1.00011574074074[/C][/ROW]
[ROW][C]39[/C][C]112.7[/C][C]109.589004629630[/C][C]101.654166666667[/C][C]7.93483796296295[/C][C]3.11099537037038[/C][/ROW]
[ROW][C]40[/C][C]102.9[/C][C]104.382060185185[/C][C]101.775[/C][C]2.60706018518519[/C][C]-1.48206018518518[/C][/ROW]
[ROW][C]41[/C][C]97.4[/C][C]100.776504629630[/C][C]101.9375[/C][C]-1.16099537037037[/C][C]-3.37650462962961[/C][/ROW]
[ROW][C]42[/C][C]111.4[/C][C]108.719560185185[/C][C]102.354166666667[/C][C]6.36539351851853[/C][C]2.68043981481482[/C][/ROW]
[ROW][C]43[/C][C]87.4[/C][C]NA[/C][C]NA[/C][C]-14.7651620370370[/C][C]NA[/C][/ROW]
[ROW][C]44[/C][C]96.8[/C][C]NA[/C][C]NA[/C][C]-7.2318287037037[/C][C]NA[/C][/ROW]
[ROW][C]45[/C][C]114.1[/C][C]NA[/C][C]NA[/C][C]6.45150462962964[/C][C]NA[/C][/ROW]
[ROW][C]46[/C][C]110.3[/C][C]NA[/C][C]NA[/C][C]11.6626157407407[/C][C]NA[/C][/ROW]
[ROW][C]47[/C][C]103.9[/C][C]NA[/C][C]NA[/C][C]1.26817129629629[/C][C]NA[/C][/ROW]
[ROW][C]48[/C][C]101.6[/C][C]NA[/C][C]NA[/C][C]-6.40821759259259[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=41280&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=41280&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
198.8NANA-3.53599537037038NA
2100.5NANA-3.18738425925927NA
3110.4NANA7.93483796296295NA
496.4NANA2.60706018518519NA
5101.9NANA-1.16099537037037NA
6106.2NANA6.36539351851853NA
78184.568171296296399.3333333333333-14.7651620370370-3.5681712962963
894.791.80983796296399.0416666666667-7.23182870370372.89016203703703
9101105.12650462963098.6756.45150462962964-4.12650462962962
10109.4110.43344907407498.770833333333311.6626157407407-1.03344907407406
11102.3100.32233796296399.05416666666671.268171296296291.97766203703705
1290.792.587615740740798.9958333333333-6.40821759259259-1.88761574074074
1396.295.605671296296399.1416666666667-3.535995370370380.59432870370371
1496.196.054282407407499.2416666666667-3.187384259259270.045717592592581
15106107.31400462963099.37916666666677.93483796296295-1.31400462962964
16103.1102.36539351851999.75833333333332.607060185185190.734606481481478
1710298.705671296296399.8666666666667-1.160995370370373.2943287037037
18104.7106.26122685185299.89583333333336.36539351851853-1.56122685185186
198685.234837962963100-14.76516203703700.76516203703703
2092.192.8556712962963100.0875-7.2318287037037-0.755671296296285
21106.9106.551504629630100.16.451504629629640.348495370370372
22112.6111.720949074074100.05833333333311.66261574074070.879050925925924
23101.7101.14733796296399.87916666666671.268171296296290.552662037037052
249293.300115740740799.7083333333333-6.40821759259259-1.30011574074074
2597.496.22233796296399.7583333333333-3.535995370370381.17766203703707
269796.537615740740799.725-3.187384259259270.462384259259267
27105.4107.68900462963099.75416666666677.93483796296295-2.28900462962963
28102.7102.44456018518599.83752.607060185185190.255439814814821
2998.198.50983796296399.6708333333333-1.16099537037037-0.409837962962953
30104.5106.11122685185299.74583333333336.36539351851853-1.61122685185185
3187.485.089004629629699.8541666666667-14.76516203703702.31099537037038
3289.992.526504629629699.7583333333333-7.2318287037037-2.62650462962962
33109.8106.514004629630100.06256.451504629629643.28599537037037
34111.7112.037615740741100.37511.6626157407407-0.337615740740731
3598.6101.622337962963100.3541666666671.26817129629629-3.02233796296296
3696.994.2042824074074100.6125-6.408217592592592.6957175925926
3795.197.3640046296296100.9-3.53599537037038-2.26400462962964
389798.0001157407407101.1875-3.18738425925927-1.00011574074074
39112.7109.589004629630101.6541666666677.934837962962953.11099537037038
40102.9104.382060185185101.7752.60706018518519-1.48206018518518
4197.4100.776504629630101.9375-1.16099537037037-3.37650462962961
42111.4108.719560185185102.3541666666676.365393518518532.68043981481482
4387.4NANA-14.7651620370370NA
4496.8NANA-7.2318287037037NA
45114.1NANA6.45150462962964NA
46110.3NANA11.6626157407407NA
47103.9NANA1.26817129629629NA
48101.6NANA-6.40821759259259NA



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,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')