Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationFri, 13 May 2016 11:05:37 +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/13/t1463133967ad7ey7uhwa16hc4.htm/, Retrieved Fri, 03 May 2024 23:58:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=295355, Retrieved Fri, 03 May 2024 23:58:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact127
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [] [2016-05-13 10:05:37] [bfab382a4ab6d7836f6b75894769f754] [Current]
Feedback Forum

Post a new message
Dataseries X:
100
99
99,3
99,5
100,7
102,9
101,2
99,5
99,5
99,5
99,4
99,5
99,7
99,8
99,8
100,1
100
100
100,1
100,1
100
99,9
99,9
99,8
100,4
102,2
103,1
103
102,9
102,8
103
103,5
103,6
103,2
103
103
106,1
104,8
105,3
106,3
107,9
106,1
106,8
108,7
110,8
111,8
111,3
111,7
110,8
110,3
110,5
110,5
112,5
113
113,5
112,8
109,5
111,5
111,5
111,2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295355&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'Herman Ole Andreas Wold' @ wold.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1100NANA0.0569444NA
299NANA-0.184722NA
399.3NANA-0.0274306NA
499.5NANA0.0434028NA
5100.7NANA0.642361NA
6102.9NANA0.0444444NA
7101.299.964299.9875-0.02326391.23576
899.599.9299100.008-0.0784722-0.429861
999.5100.275100.0620.212153-0.774653
1099.5100.214100.1080.105903-0.714236
1199.499.7726100.104-0.331597-0.372569
1299.599.494499.9542-0.4597220.00555556
1399.799.844499.78750.0569444-0.144444
1499.899.581999.7667-0.1847220.218056
1599.899.785199.8125-0.02743060.0149306
16100.199.893499.850.04340280.206597
17100100.5399.88750.642361-0.529861
1810099.965399.92080.04444440.0347222
19100.199.939299.9625-0.02326390.160764
20100.1100.013100.092-0.07847220.0868056
21100100.541100.3290.212153-0.541319
2299.9100.693100.5870.105903-0.793403
2399.9100.498100.829-0.331597-0.597569
2499.8100.607101.067-0.459722-0.806944
25100.4101.361101.3040.0569444-0.961111
26102.2101.382101.567-0.1847220.818056
27103.1101.831101.858-0.02743061.2691
28103102.189102.1460.04340280.810764
29102.9103.055102.4120.642361-0.154861
30102.8102.719102.6750.04444440.0805556
31103103.023103.046-0.0232639-0.0225694
32103.5103.313103.392-0.07847220.186806
33103.6103.804103.5920.212153-0.203819
34103.2103.927103.8210.105903-0.726736
35103103.835104.167-0.331597-0.835069
36103104.053104.512-0.459722-1.05278
37106.1104.865104.8080.05694441.23472
38104.8104.999105.183-0.184722-0.198611
39105.3105.673105.7-0.0274306-0.372569
40106.3106.402106.3580.0434028-0.101736
41107.9107.705107.0620.6423610.195139
42106.1107.815107.7710.0444444-1.71528
43106.8108.306108.329-0.0232639-1.5059
44108.7108.676108.754-0.07847220.0243056
45110.8109.412109.20.2121531.38785
46111.8109.698109.5920.1059032.10243
47111.3109.627109.958-0.3315971.67326
48111.7109.978110.437-0.4597221.72222
49110.8111.061111.0040.0569444-0.261111
50110.3111.269111.454-0.184722-0.969444
51110.5111.543111.571-0.0274306-1.0434
52110.5111.548111.5040.0434028-1.04757
53112.5112.142111.50.6423610.357639
54113111.532111.4880.04444441.46806
55113.5NANA-0.0232639NA
56112.8NANA-0.0784722NA
57109.5NANA0.212153NA
58111.5NANA0.105903NA
59111.5NANA-0.331597NA
60111.2NANA-0.459722NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 100 & NA & NA & 0.0569444 & NA \tabularnewline
2 & 99 & NA & NA & -0.184722 & NA \tabularnewline
3 & 99.3 & NA & NA & -0.0274306 & NA \tabularnewline
4 & 99.5 & NA & NA & 0.0434028 & NA \tabularnewline
5 & 100.7 & NA & NA & 0.642361 & NA \tabularnewline
6 & 102.9 & NA & NA & 0.0444444 & NA \tabularnewline
7 & 101.2 & 99.9642 & 99.9875 & -0.0232639 & 1.23576 \tabularnewline
8 & 99.5 & 99.9299 & 100.008 & -0.0784722 & -0.429861 \tabularnewline
9 & 99.5 & 100.275 & 100.062 & 0.212153 & -0.774653 \tabularnewline
10 & 99.5 & 100.214 & 100.108 & 0.105903 & -0.714236 \tabularnewline
11 & 99.4 & 99.7726 & 100.104 & -0.331597 & -0.372569 \tabularnewline
12 & 99.5 & 99.4944 & 99.9542 & -0.459722 & 0.00555556 \tabularnewline
13 & 99.7 & 99.8444 & 99.7875 & 0.0569444 & -0.144444 \tabularnewline
14 & 99.8 & 99.5819 & 99.7667 & -0.184722 & 0.218056 \tabularnewline
15 & 99.8 & 99.7851 & 99.8125 & -0.0274306 & 0.0149306 \tabularnewline
16 & 100.1 & 99.8934 & 99.85 & 0.0434028 & 0.206597 \tabularnewline
17 & 100 & 100.53 & 99.8875 & 0.642361 & -0.529861 \tabularnewline
18 & 100 & 99.9653 & 99.9208 & 0.0444444 & 0.0347222 \tabularnewline
19 & 100.1 & 99.9392 & 99.9625 & -0.0232639 & 0.160764 \tabularnewline
20 & 100.1 & 100.013 & 100.092 & -0.0784722 & 0.0868056 \tabularnewline
21 & 100 & 100.541 & 100.329 & 0.212153 & -0.541319 \tabularnewline
22 & 99.9 & 100.693 & 100.587 & 0.105903 & -0.793403 \tabularnewline
23 & 99.9 & 100.498 & 100.829 & -0.331597 & -0.597569 \tabularnewline
24 & 99.8 & 100.607 & 101.067 & -0.459722 & -0.806944 \tabularnewline
25 & 100.4 & 101.361 & 101.304 & 0.0569444 & -0.961111 \tabularnewline
26 & 102.2 & 101.382 & 101.567 & -0.184722 & 0.818056 \tabularnewline
27 & 103.1 & 101.831 & 101.858 & -0.0274306 & 1.2691 \tabularnewline
28 & 103 & 102.189 & 102.146 & 0.0434028 & 0.810764 \tabularnewline
29 & 102.9 & 103.055 & 102.412 & 0.642361 & -0.154861 \tabularnewline
30 & 102.8 & 102.719 & 102.675 & 0.0444444 & 0.0805556 \tabularnewline
31 & 103 & 103.023 & 103.046 & -0.0232639 & -0.0225694 \tabularnewline
32 & 103.5 & 103.313 & 103.392 & -0.0784722 & 0.186806 \tabularnewline
33 & 103.6 & 103.804 & 103.592 & 0.212153 & -0.203819 \tabularnewline
34 & 103.2 & 103.927 & 103.821 & 0.105903 & -0.726736 \tabularnewline
35 & 103 & 103.835 & 104.167 & -0.331597 & -0.835069 \tabularnewline
36 & 103 & 104.053 & 104.512 & -0.459722 & -1.05278 \tabularnewline
37 & 106.1 & 104.865 & 104.808 & 0.0569444 & 1.23472 \tabularnewline
38 & 104.8 & 104.999 & 105.183 & -0.184722 & -0.198611 \tabularnewline
39 & 105.3 & 105.673 & 105.7 & -0.0274306 & -0.372569 \tabularnewline
40 & 106.3 & 106.402 & 106.358 & 0.0434028 & -0.101736 \tabularnewline
41 & 107.9 & 107.705 & 107.062 & 0.642361 & 0.195139 \tabularnewline
42 & 106.1 & 107.815 & 107.771 & 0.0444444 & -1.71528 \tabularnewline
43 & 106.8 & 108.306 & 108.329 & -0.0232639 & -1.5059 \tabularnewline
44 & 108.7 & 108.676 & 108.754 & -0.0784722 & 0.0243056 \tabularnewline
45 & 110.8 & 109.412 & 109.2 & 0.212153 & 1.38785 \tabularnewline
46 & 111.8 & 109.698 & 109.592 & 0.105903 & 2.10243 \tabularnewline
47 & 111.3 & 109.627 & 109.958 & -0.331597 & 1.67326 \tabularnewline
48 & 111.7 & 109.978 & 110.437 & -0.459722 & 1.72222 \tabularnewline
49 & 110.8 & 111.061 & 111.004 & 0.0569444 & -0.261111 \tabularnewline
50 & 110.3 & 111.269 & 111.454 & -0.184722 & -0.969444 \tabularnewline
51 & 110.5 & 111.543 & 111.571 & -0.0274306 & -1.0434 \tabularnewline
52 & 110.5 & 111.548 & 111.504 & 0.0434028 & -1.04757 \tabularnewline
53 & 112.5 & 112.142 & 111.5 & 0.642361 & 0.357639 \tabularnewline
54 & 113 & 111.532 & 111.488 & 0.0444444 & 1.46806 \tabularnewline
55 & 113.5 & NA & NA & -0.0232639 & NA \tabularnewline
56 & 112.8 & NA & NA & -0.0784722 & NA \tabularnewline
57 & 109.5 & NA & NA & 0.212153 & NA \tabularnewline
58 & 111.5 & NA & NA & 0.105903 & NA \tabularnewline
59 & 111.5 & NA & NA & -0.331597 & NA \tabularnewline
60 & 111.2 & NA & NA & -0.459722 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295355&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]100[/C][C]NA[/C][C]NA[/C][C]0.0569444[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]99[/C][C]NA[/C][C]NA[/C][C]-0.184722[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]99.3[/C][C]NA[/C][C]NA[/C][C]-0.0274306[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]99.5[/C][C]NA[/C][C]NA[/C][C]0.0434028[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]100.7[/C][C]NA[/C][C]NA[/C][C]0.642361[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]102.9[/C][C]NA[/C][C]NA[/C][C]0.0444444[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]101.2[/C][C]99.9642[/C][C]99.9875[/C][C]-0.0232639[/C][C]1.23576[/C][/ROW]
[ROW][C]8[/C][C]99.5[/C][C]99.9299[/C][C]100.008[/C][C]-0.0784722[/C][C]-0.429861[/C][/ROW]
[ROW][C]9[/C][C]99.5[/C][C]100.275[/C][C]100.062[/C][C]0.212153[/C][C]-0.774653[/C][/ROW]
[ROW][C]10[/C][C]99.5[/C][C]100.214[/C][C]100.108[/C][C]0.105903[/C][C]-0.714236[/C][/ROW]
[ROW][C]11[/C][C]99.4[/C][C]99.7726[/C][C]100.104[/C][C]-0.331597[/C][C]-0.372569[/C][/ROW]
[ROW][C]12[/C][C]99.5[/C][C]99.4944[/C][C]99.9542[/C][C]-0.459722[/C][C]0.00555556[/C][/ROW]
[ROW][C]13[/C][C]99.7[/C][C]99.8444[/C][C]99.7875[/C][C]0.0569444[/C][C]-0.144444[/C][/ROW]
[ROW][C]14[/C][C]99.8[/C][C]99.5819[/C][C]99.7667[/C][C]-0.184722[/C][C]0.218056[/C][/ROW]
[ROW][C]15[/C][C]99.8[/C][C]99.7851[/C][C]99.8125[/C][C]-0.0274306[/C][C]0.0149306[/C][/ROW]
[ROW][C]16[/C][C]100.1[/C][C]99.8934[/C][C]99.85[/C][C]0.0434028[/C][C]0.206597[/C][/ROW]
[ROW][C]17[/C][C]100[/C][C]100.53[/C][C]99.8875[/C][C]0.642361[/C][C]-0.529861[/C][/ROW]
[ROW][C]18[/C][C]100[/C][C]99.9653[/C][C]99.9208[/C][C]0.0444444[/C][C]0.0347222[/C][/ROW]
[ROW][C]19[/C][C]100.1[/C][C]99.9392[/C][C]99.9625[/C][C]-0.0232639[/C][C]0.160764[/C][/ROW]
[ROW][C]20[/C][C]100.1[/C][C]100.013[/C][C]100.092[/C][C]-0.0784722[/C][C]0.0868056[/C][/ROW]
[ROW][C]21[/C][C]100[/C][C]100.541[/C][C]100.329[/C][C]0.212153[/C][C]-0.541319[/C][/ROW]
[ROW][C]22[/C][C]99.9[/C][C]100.693[/C][C]100.587[/C][C]0.105903[/C][C]-0.793403[/C][/ROW]
[ROW][C]23[/C][C]99.9[/C][C]100.498[/C][C]100.829[/C][C]-0.331597[/C][C]-0.597569[/C][/ROW]
[ROW][C]24[/C][C]99.8[/C][C]100.607[/C][C]101.067[/C][C]-0.459722[/C][C]-0.806944[/C][/ROW]
[ROW][C]25[/C][C]100.4[/C][C]101.361[/C][C]101.304[/C][C]0.0569444[/C][C]-0.961111[/C][/ROW]
[ROW][C]26[/C][C]102.2[/C][C]101.382[/C][C]101.567[/C][C]-0.184722[/C][C]0.818056[/C][/ROW]
[ROW][C]27[/C][C]103.1[/C][C]101.831[/C][C]101.858[/C][C]-0.0274306[/C][C]1.2691[/C][/ROW]
[ROW][C]28[/C][C]103[/C][C]102.189[/C][C]102.146[/C][C]0.0434028[/C][C]0.810764[/C][/ROW]
[ROW][C]29[/C][C]102.9[/C][C]103.055[/C][C]102.412[/C][C]0.642361[/C][C]-0.154861[/C][/ROW]
[ROW][C]30[/C][C]102.8[/C][C]102.719[/C][C]102.675[/C][C]0.0444444[/C][C]0.0805556[/C][/ROW]
[ROW][C]31[/C][C]103[/C][C]103.023[/C][C]103.046[/C][C]-0.0232639[/C][C]-0.0225694[/C][/ROW]
[ROW][C]32[/C][C]103.5[/C][C]103.313[/C][C]103.392[/C][C]-0.0784722[/C][C]0.186806[/C][/ROW]
[ROW][C]33[/C][C]103.6[/C][C]103.804[/C][C]103.592[/C][C]0.212153[/C][C]-0.203819[/C][/ROW]
[ROW][C]34[/C][C]103.2[/C][C]103.927[/C][C]103.821[/C][C]0.105903[/C][C]-0.726736[/C][/ROW]
[ROW][C]35[/C][C]103[/C][C]103.835[/C][C]104.167[/C][C]-0.331597[/C][C]-0.835069[/C][/ROW]
[ROW][C]36[/C][C]103[/C][C]104.053[/C][C]104.512[/C][C]-0.459722[/C][C]-1.05278[/C][/ROW]
[ROW][C]37[/C][C]106.1[/C][C]104.865[/C][C]104.808[/C][C]0.0569444[/C][C]1.23472[/C][/ROW]
[ROW][C]38[/C][C]104.8[/C][C]104.999[/C][C]105.183[/C][C]-0.184722[/C][C]-0.198611[/C][/ROW]
[ROW][C]39[/C][C]105.3[/C][C]105.673[/C][C]105.7[/C][C]-0.0274306[/C][C]-0.372569[/C][/ROW]
[ROW][C]40[/C][C]106.3[/C][C]106.402[/C][C]106.358[/C][C]0.0434028[/C][C]-0.101736[/C][/ROW]
[ROW][C]41[/C][C]107.9[/C][C]107.705[/C][C]107.062[/C][C]0.642361[/C][C]0.195139[/C][/ROW]
[ROW][C]42[/C][C]106.1[/C][C]107.815[/C][C]107.771[/C][C]0.0444444[/C][C]-1.71528[/C][/ROW]
[ROW][C]43[/C][C]106.8[/C][C]108.306[/C][C]108.329[/C][C]-0.0232639[/C][C]-1.5059[/C][/ROW]
[ROW][C]44[/C][C]108.7[/C][C]108.676[/C][C]108.754[/C][C]-0.0784722[/C][C]0.0243056[/C][/ROW]
[ROW][C]45[/C][C]110.8[/C][C]109.412[/C][C]109.2[/C][C]0.212153[/C][C]1.38785[/C][/ROW]
[ROW][C]46[/C][C]111.8[/C][C]109.698[/C][C]109.592[/C][C]0.105903[/C][C]2.10243[/C][/ROW]
[ROW][C]47[/C][C]111.3[/C][C]109.627[/C][C]109.958[/C][C]-0.331597[/C][C]1.67326[/C][/ROW]
[ROW][C]48[/C][C]111.7[/C][C]109.978[/C][C]110.437[/C][C]-0.459722[/C][C]1.72222[/C][/ROW]
[ROW][C]49[/C][C]110.8[/C][C]111.061[/C][C]111.004[/C][C]0.0569444[/C][C]-0.261111[/C][/ROW]
[ROW][C]50[/C][C]110.3[/C][C]111.269[/C][C]111.454[/C][C]-0.184722[/C][C]-0.969444[/C][/ROW]
[ROW][C]51[/C][C]110.5[/C][C]111.543[/C][C]111.571[/C][C]-0.0274306[/C][C]-1.0434[/C][/ROW]
[ROW][C]52[/C][C]110.5[/C][C]111.548[/C][C]111.504[/C][C]0.0434028[/C][C]-1.04757[/C][/ROW]
[ROW][C]53[/C][C]112.5[/C][C]112.142[/C][C]111.5[/C][C]0.642361[/C][C]0.357639[/C][/ROW]
[ROW][C]54[/C][C]113[/C][C]111.532[/C][C]111.488[/C][C]0.0444444[/C][C]1.46806[/C][/ROW]
[ROW][C]55[/C][C]113.5[/C][C]NA[/C][C]NA[/C][C]-0.0232639[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]112.8[/C][C]NA[/C][C]NA[/C][C]-0.0784722[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]109.5[/C][C]NA[/C][C]NA[/C][C]0.212153[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]111.5[/C][C]NA[/C][C]NA[/C][C]0.105903[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]111.5[/C][C]NA[/C][C]NA[/C][C]-0.331597[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]111.2[/C][C]NA[/C][C]NA[/C][C]-0.459722[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295355&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295355&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
1100NANA0.0569444NA
299NANA-0.184722NA
399.3NANA-0.0274306NA
499.5NANA0.0434028NA
5100.7NANA0.642361NA
6102.9NANA0.0444444NA
7101.299.964299.9875-0.02326391.23576
899.599.9299100.008-0.0784722-0.429861
999.5100.275100.0620.212153-0.774653
1099.5100.214100.1080.105903-0.714236
1199.499.7726100.104-0.331597-0.372569
1299.599.494499.9542-0.4597220.00555556
1399.799.844499.78750.0569444-0.144444
1499.899.581999.7667-0.1847220.218056
1599.899.785199.8125-0.02743060.0149306
16100.199.893499.850.04340280.206597
17100100.5399.88750.642361-0.529861
1810099.965399.92080.04444440.0347222
19100.199.939299.9625-0.02326390.160764
20100.1100.013100.092-0.07847220.0868056
21100100.541100.3290.212153-0.541319
2299.9100.693100.5870.105903-0.793403
2399.9100.498100.829-0.331597-0.597569
2499.8100.607101.067-0.459722-0.806944
25100.4101.361101.3040.0569444-0.961111
26102.2101.382101.567-0.1847220.818056
27103.1101.831101.858-0.02743061.2691
28103102.189102.1460.04340280.810764
29102.9103.055102.4120.642361-0.154861
30102.8102.719102.6750.04444440.0805556
31103103.023103.046-0.0232639-0.0225694
32103.5103.313103.392-0.07847220.186806
33103.6103.804103.5920.212153-0.203819
34103.2103.927103.8210.105903-0.726736
35103103.835104.167-0.331597-0.835069
36103104.053104.512-0.459722-1.05278
37106.1104.865104.8080.05694441.23472
38104.8104.999105.183-0.184722-0.198611
39105.3105.673105.7-0.0274306-0.372569
40106.3106.402106.3580.0434028-0.101736
41107.9107.705107.0620.6423610.195139
42106.1107.815107.7710.0444444-1.71528
43106.8108.306108.329-0.0232639-1.5059
44108.7108.676108.754-0.07847220.0243056
45110.8109.412109.20.2121531.38785
46111.8109.698109.5920.1059032.10243
47111.3109.627109.958-0.3315971.67326
48111.7109.978110.437-0.4597221.72222
49110.8111.061111.0040.0569444-0.261111
50110.3111.269111.454-0.184722-0.969444
51110.5111.543111.571-0.0274306-1.0434
52110.5111.548111.5040.0434028-1.04757
53112.5112.142111.50.6423610.357639
54113111.532111.4880.04444441.46806
55113.5NANA-0.0232639NA
56112.8NANA-0.0784722NA
57109.5NANA0.212153NA
58111.5NANA0.105903NA
59111.5NANA-0.331597NA
60111.2NANA-0.459722NA



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