Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSat, 09 Jan 2016 11:18:40 +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/2016/Jan/09/t1452338555joci2vn1adc2m3b.htm/, Retrieved Sun, 05 May 2024 09:29:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=287504, Retrieved Sun, 05 May 2024 09:29:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Classical Decomposition] [] [2015-11-23 18:45:38] [a642a7d7b5f7c65c232df2d499025a08]
- R  D    [Classical Decomposition] [] [2016-01-09 11:18:40] [c6ba03d4d421ca9ab835e2907c34aa87] [Current]
-   PD      [Classical Decomposition] [] [2016-01-11 20:46:54] [bd4e4aa6178eab1df445b78d9e683708]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=287504&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 Ronald Aylmer Fisher' @ fisher.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
199.2NANA0.998006NA
299.1NANA1.00027NA
399.1NANA0.9999NA
499.1NANA1.0016NA
599.1NANA1.00126NA
699.1NANA1.00045NA
799.9100.092100.1250.9996670.998085
8100100.29100.4210.9986970.997109
9100100.562100.7460.9981730.994413
10101.3101.158101.0961.000611.0014
11102101.604101.4711.001311.0039
12102101.851101.8461.000051.00146
13102.4101.984102.1870.9980061.00408
14103102.519102.4921.000271.00469
15103102.794102.8040.99991.002
16103.6103.244103.0791.00161.00345
17103.6103.406103.2751.001261.00188
18103.6103.488103.4421.000451.00108
19103.6103.595103.6290.9996671.00005
20103.6103.686103.8210.9986970.999175
21103.9103.811040.9981731.00087
22104104.235104.1711.000610.997747
23104104.474104.3371.001310.995462
24104104.518104.5121.000050.995046
25104.9104.479104.6880.9980061.00403
26105.1104.891104.8631.000271.002
27105.2105.015105.0250.99991.00177
28105.5105.343105.1751.00161.00149
29105.7105.458105.3251.001261.00229
30105.7105.522105.4751.000451.00168
31105.7105.586105.6210.9996671.00108
32105.7105.633105.7710.9986971.00063
33105.7105.74105.9330.9981730.999623
34105.8106.157106.0921.000610.996639
35105.8106.372106.2331.001310.994618
36105.8106.372106.3671.000050.994622
37106.6106.292106.5040.9980061.0029
38107106.674106.6461.000271.00305
39107.2106.777106.7880.99991.00396
40107.3107.096106.9251.00161.0019
41107.3107.198107.0621.001261.00095
42107.3107.252107.2041.000451.00045
43107.4107.173107.2080.9996671.00212
44107.4106.927107.0670.9986971.00442
45107.4106.713106.9080.9981731.00644
46107.4106.807106.7421.000611.00555
47107.5106.715106.5751.001311.00736
48107.5106.414106.4081.000051.01021
49105106.026106.2370.9980060.990327
50105.2106.091106.0621.000270.991602
51105.2105.877105.8870.99990.993606
52105.3105.882105.7121.00160.994505
53105.3105.7105.5671.001260.996214
54105.3105.497105.451.000450.99813
55105.3NANA0.999667NA
56105.3NANA0.998697NA
57105.3NANA0.998173NA
58105.3NANA1.00061NA
59106.1NANA1.00131NA
60106.1NANA1.00005NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 99.2 & NA & NA & 0.998006 & NA \tabularnewline
2 & 99.1 & NA & NA & 1.00027 & NA \tabularnewline
3 & 99.1 & NA & NA & 0.9999 & NA \tabularnewline
4 & 99.1 & NA & NA & 1.0016 & NA \tabularnewline
5 & 99.1 & NA & NA & 1.00126 & NA \tabularnewline
6 & 99.1 & NA & NA & 1.00045 & NA \tabularnewline
7 & 99.9 & 100.092 & 100.125 & 0.999667 & 0.998085 \tabularnewline
8 & 100 & 100.29 & 100.421 & 0.998697 & 0.997109 \tabularnewline
9 & 100 & 100.562 & 100.746 & 0.998173 & 0.994413 \tabularnewline
10 & 101.3 & 101.158 & 101.096 & 1.00061 & 1.0014 \tabularnewline
11 & 102 & 101.604 & 101.471 & 1.00131 & 1.0039 \tabularnewline
12 & 102 & 101.851 & 101.846 & 1.00005 & 1.00146 \tabularnewline
13 & 102.4 & 101.984 & 102.187 & 0.998006 & 1.00408 \tabularnewline
14 & 103 & 102.519 & 102.492 & 1.00027 & 1.00469 \tabularnewline
15 & 103 & 102.794 & 102.804 & 0.9999 & 1.002 \tabularnewline
16 & 103.6 & 103.244 & 103.079 & 1.0016 & 1.00345 \tabularnewline
17 & 103.6 & 103.406 & 103.275 & 1.00126 & 1.00188 \tabularnewline
18 & 103.6 & 103.488 & 103.442 & 1.00045 & 1.00108 \tabularnewline
19 & 103.6 & 103.595 & 103.629 & 0.999667 & 1.00005 \tabularnewline
20 & 103.6 & 103.686 & 103.821 & 0.998697 & 0.999175 \tabularnewline
21 & 103.9 & 103.81 & 104 & 0.998173 & 1.00087 \tabularnewline
22 & 104 & 104.235 & 104.171 & 1.00061 & 0.997747 \tabularnewline
23 & 104 & 104.474 & 104.337 & 1.00131 & 0.995462 \tabularnewline
24 & 104 & 104.518 & 104.512 & 1.00005 & 0.995046 \tabularnewline
25 & 104.9 & 104.479 & 104.688 & 0.998006 & 1.00403 \tabularnewline
26 & 105.1 & 104.891 & 104.863 & 1.00027 & 1.002 \tabularnewline
27 & 105.2 & 105.015 & 105.025 & 0.9999 & 1.00177 \tabularnewline
28 & 105.5 & 105.343 & 105.175 & 1.0016 & 1.00149 \tabularnewline
29 & 105.7 & 105.458 & 105.325 & 1.00126 & 1.00229 \tabularnewline
30 & 105.7 & 105.522 & 105.475 & 1.00045 & 1.00168 \tabularnewline
31 & 105.7 & 105.586 & 105.621 & 0.999667 & 1.00108 \tabularnewline
32 & 105.7 & 105.633 & 105.771 & 0.998697 & 1.00063 \tabularnewline
33 & 105.7 & 105.74 & 105.933 & 0.998173 & 0.999623 \tabularnewline
34 & 105.8 & 106.157 & 106.092 & 1.00061 & 0.996639 \tabularnewline
35 & 105.8 & 106.372 & 106.233 & 1.00131 & 0.994618 \tabularnewline
36 & 105.8 & 106.372 & 106.367 & 1.00005 & 0.994622 \tabularnewline
37 & 106.6 & 106.292 & 106.504 & 0.998006 & 1.0029 \tabularnewline
38 & 107 & 106.674 & 106.646 & 1.00027 & 1.00305 \tabularnewline
39 & 107.2 & 106.777 & 106.788 & 0.9999 & 1.00396 \tabularnewline
40 & 107.3 & 107.096 & 106.925 & 1.0016 & 1.0019 \tabularnewline
41 & 107.3 & 107.198 & 107.062 & 1.00126 & 1.00095 \tabularnewline
42 & 107.3 & 107.252 & 107.204 & 1.00045 & 1.00045 \tabularnewline
43 & 107.4 & 107.173 & 107.208 & 0.999667 & 1.00212 \tabularnewline
44 & 107.4 & 106.927 & 107.067 & 0.998697 & 1.00442 \tabularnewline
45 & 107.4 & 106.713 & 106.908 & 0.998173 & 1.00644 \tabularnewline
46 & 107.4 & 106.807 & 106.742 & 1.00061 & 1.00555 \tabularnewline
47 & 107.5 & 106.715 & 106.575 & 1.00131 & 1.00736 \tabularnewline
48 & 107.5 & 106.414 & 106.408 & 1.00005 & 1.01021 \tabularnewline
49 & 105 & 106.026 & 106.237 & 0.998006 & 0.990327 \tabularnewline
50 & 105.2 & 106.091 & 106.062 & 1.00027 & 0.991602 \tabularnewline
51 & 105.2 & 105.877 & 105.887 & 0.9999 & 0.993606 \tabularnewline
52 & 105.3 & 105.882 & 105.712 & 1.0016 & 0.994505 \tabularnewline
53 & 105.3 & 105.7 & 105.567 & 1.00126 & 0.996214 \tabularnewline
54 & 105.3 & 105.497 & 105.45 & 1.00045 & 0.99813 \tabularnewline
55 & 105.3 & NA & NA & 0.999667 & NA \tabularnewline
56 & 105.3 & NA & NA & 0.998697 & NA \tabularnewline
57 & 105.3 & NA & NA & 0.998173 & NA \tabularnewline
58 & 105.3 & NA & NA & 1.00061 & NA \tabularnewline
59 & 106.1 & NA & NA & 1.00131 & NA \tabularnewline
60 & 106.1 & NA & NA & 1.00005 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=287504&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]99.2[/C][C]NA[/C][C]NA[/C][C]0.998006[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]99.1[/C][C]NA[/C][C]NA[/C][C]1.00027[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]99.1[/C][C]NA[/C][C]NA[/C][C]0.9999[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]99.1[/C][C]NA[/C][C]NA[/C][C]1.0016[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]99.1[/C][C]NA[/C][C]NA[/C][C]1.00126[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]99.1[/C][C]NA[/C][C]NA[/C][C]1.00045[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]99.9[/C][C]100.092[/C][C]100.125[/C][C]0.999667[/C][C]0.998085[/C][/ROW]
[ROW][C]8[/C][C]100[/C][C]100.29[/C][C]100.421[/C][C]0.998697[/C][C]0.997109[/C][/ROW]
[ROW][C]9[/C][C]100[/C][C]100.562[/C][C]100.746[/C][C]0.998173[/C][C]0.994413[/C][/ROW]
[ROW][C]10[/C][C]101.3[/C][C]101.158[/C][C]101.096[/C][C]1.00061[/C][C]1.0014[/C][/ROW]
[ROW][C]11[/C][C]102[/C][C]101.604[/C][C]101.471[/C][C]1.00131[/C][C]1.0039[/C][/ROW]
[ROW][C]12[/C][C]102[/C][C]101.851[/C][C]101.846[/C][C]1.00005[/C][C]1.00146[/C][/ROW]
[ROW][C]13[/C][C]102.4[/C][C]101.984[/C][C]102.187[/C][C]0.998006[/C][C]1.00408[/C][/ROW]
[ROW][C]14[/C][C]103[/C][C]102.519[/C][C]102.492[/C][C]1.00027[/C][C]1.00469[/C][/ROW]
[ROW][C]15[/C][C]103[/C][C]102.794[/C][C]102.804[/C][C]0.9999[/C][C]1.002[/C][/ROW]
[ROW][C]16[/C][C]103.6[/C][C]103.244[/C][C]103.079[/C][C]1.0016[/C][C]1.00345[/C][/ROW]
[ROW][C]17[/C][C]103.6[/C][C]103.406[/C][C]103.275[/C][C]1.00126[/C][C]1.00188[/C][/ROW]
[ROW][C]18[/C][C]103.6[/C][C]103.488[/C][C]103.442[/C][C]1.00045[/C][C]1.00108[/C][/ROW]
[ROW][C]19[/C][C]103.6[/C][C]103.595[/C][C]103.629[/C][C]0.999667[/C][C]1.00005[/C][/ROW]
[ROW][C]20[/C][C]103.6[/C][C]103.686[/C][C]103.821[/C][C]0.998697[/C][C]0.999175[/C][/ROW]
[ROW][C]21[/C][C]103.9[/C][C]103.81[/C][C]104[/C][C]0.998173[/C][C]1.00087[/C][/ROW]
[ROW][C]22[/C][C]104[/C][C]104.235[/C][C]104.171[/C][C]1.00061[/C][C]0.997747[/C][/ROW]
[ROW][C]23[/C][C]104[/C][C]104.474[/C][C]104.337[/C][C]1.00131[/C][C]0.995462[/C][/ROW]
[ROW][C]24[/C][C]104[/C][C]104.518[/C][C]104.512[/C][C]1.00005[/C][C]0.995046[/C][/ROW]
[ROW][C]25[/C][C]104.9[/C][C]104.479[/C][C]104.688[/C][C]0.998006[/C][C]1.00403[/C][/ROW]
[ROW][C]26[/C][C]105.1[/C][C]104.891[/C][C]104.863[/C][C]1.00027[/C][C]1.002[/C][/ROW]
[ROW][C]27[/C][C]105.2[/C][C]105.015[/C][C]105.025[/C][C]0.9999[/C][C]1.00177[/C][/ROW]
[ROW][C]28[/C][C]105.5[/C][C]105.343[/C][C]105.175[/C][C]1.0016[/C][C]1.00149[/C][/ROW]
[ROW][C]29[/C][C]105.7[/C][C]105.458[/C][C]105.325[/C][C]1.00126[/C][C]1.00229[/C][/ROW]
[ROW][C]30[/C][C]105.7[/C][C]105.522[/C][C]105.475[/C][C]1.00045[/C][C]1.00168[/C][/ROW]
[ROW][C]31[/C][C]105.7[/C][C]105.586[/C][C]105.621[/C][C]0.999667[/C][C]1.00108[/C][/ROW]
[ROW][C]32[/C][C]105.7[/C][C]105.633[/C][C]105.771[/C][C]0.998697[/C][C]1.00063[/C][/ROW]
[ROW][C]33[/C][C]105.7[/C][C]105.74[/C][C]105.933[/C][C]0.998173[/C][C]0.999623[/C][/ROW]
[ROW][C]34[/C][C]105.8[/C][C]106.157[/C][C]106.092[/C][C]1.00061[/C][C]0.996639[/C][/ROW]
[ROW][C]35[/C][C]105.8[/C][C]106.372[/C][C]106.233[/C][C]1.00131[/C][C]0.994618[/C][/ROW]
[ROW][C]36[/C][C]105.8[/C][C]106.372[/C][C]106.367[/C][C]1.00005[/C][C]0.994622[/C][/ROW]
[ROW][C]37[/C][C]106.6[/C][C]106.292[/C][C]106.504[/C][C]0.998006[/C][C]1.0029[/C][/ROW]
[ROW][C]38[/C][C]107[/C][C]106.674[/C][C]106.646[/C][C]1.00027[/C][C]1.00305[/C][/ROW]
[ROW][C]39[/C][C]107.2[/C][C]106.777[/C][C]106.788[/C][C]0.9999[/C][C]1.00396[/C][/ROW]
[ROW][C]40[/C][C]107.3[/C][C]107.096[/C][C]106.925[/C][C]1.0016[/C][C]1.0019[/C][/ROW]
[ROW][C]41[/C][C]107.3[/C][C]107.198[/C][C]107.062[/C][C]1.00126[/C][C]1.00095[/C][/ROW]
[ROW][C]42[/C][C]107.3[/C][C]107.252[/C][C]107.204[/C][C]1.00045[/C][C]1.00045[/C][/ROW]
[ROW][C]43[/C][C]107.4[/C][C]107.173[/C][C]107.208[/C][C]0.999667[/C][C]1.00212[/C][/ROW]
[ROW][C]44[/C][C]107.4[/C][C]106.927[/C][C]107.067[/C][C]0.998697[/C][C]1.00442[/C][/ROW]
[ROW][C]45[/C][C]107.4[/C][C]106.713[/C][C]106.908[/C][C]0.998173[/C][C]1.00644[/C][/ROW]
[ROW][C]46[/C][C]107.4[/C][C]106.807[/C][C]106.742[/C][C]1.00061[/C][C]1.00555[/C][/ROW]
[ROW][C]47[/C][C]107.5[/C][C]106.715[/C][C]106.575[/C][C]1.00131[/C][C]1.00736[/C][/ROW]
[ROW][C]48[/C][C]107.5[/C][C]106.414[/C][C]106.408[/C][C]1.00005[/C][C]1.01021[/C][/ROW]
[ROW][C]49[/C][C]105[/C][C]106.026[/C][C]106.237[/C][C]0.998006[/C][C]0.990327[/C][/ROW]
[ROW][C]50[/C][C]105.2[/C][C]106.091[/C][C]106.062[/C][C]1.00027[/C][C]0.991602[/C][/ROW]
[ROW][C]51[/C][C]105.2[/C][C]105.877[/C][C]105.887[/C][C]0.9999[/C][C]0.993606[/C][/ROW]
[ROW][C]52[/C][C]105.3[/C][C]105.882[/C][C]105.712[/C][C]1.0016[/C][C]0.994505[/C][/ROW]
[ROW][C]53[/C][C]105.3[/C][C]105.7[/C][C]105.567[/C][C]1.00126[/C][C]0.996214[/C][/ROW]
[ROW][C]54[/C][C]105.3[/C][C]105.497[/C][C]105.45[/C][C]1.00045[/C][C]0.99813[/C][/ROW]
[ROW][C]55[/C][C]105.3[/C][C]NA[/C][C]NA[/C][C]0.999667[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]105.3[/C][C]NA[/C][C]NA[/C][C]0.998697[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]105.3[/C][C]NA[/C][C]NA[/C][C]0.998173[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]105.3[/C][C]NA[/C][C]NA[/C][C]1.00061[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]106.1[/C][C]NA[/C][C]NA[/C][C]1.00131[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]106.1[/C][C]NA[/C][C]NA[/C][C]1.00005[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=287504&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=287504&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
199.2NANA0.998006NA
299.1NANA1.00027NA
399.1NANA0.9999NA
499.1NANA1.0016NA
599.1NANA1.00126NA
699.1NANA1.00045NA
799.9100.092100.1250.9996670.998085
8100100.29100.4210.9986970.997109
9100100.562100.7460.9981730.994413
10101.3101.158101.0961.000611.0014
11102101.604101.4711.001311.0039
12102101.851101.8461.000051.00146
13102.4101.984102.1870.9980061.00408
14103102.519102.4921.000271.00469
15103102.794102.8040.99991.002
16103.6103.244103.0791.00161.00345
17103.6103.406103.2751.001261.00188
18103.6103.488103.4421.000451.00108
19103.6103.595103.6290.9996671.00005
20103.6103.686103.8210.9986970.999175
21103.9103.811040.9981731.00087
22104104.235104.1711.000610.997747
23104104.474104.3371.001310.995462
24104104.518104.5121.000050.995046
25104.9104.479104.6880.9980061.00403
26105.1104.891104.8631.000271.002
27105.2105.015105.0250.99991.00177
28105.5105.343105.1751.00161.00149
29105.7105.458105.3251.001261.00229
30105.7105.522105.4751.000451.00168
31105.7105.586105.6210.9996671.00108
32105.7105.633105.7710.9986971.00063
33105.7105.74105.9330.9981730.999623
34105.8106.157106.0921.000610.996639
35105.8106.372106.2331.001310.994618
36105.8106.372106.3671.000050.994622
37106.6106.292106.5040.9980061.0029
38107106.674106.6461.000271.00305
39107.2106.777106.7880.99991.00396
40107.3107.096106.9251.00161.0019
41107.3107.198107.0621.001261.00095
42107.3107.252107.2041.000451.00045
43107.4107.173107.2080.9996671.00212
44107.4106.927107.0670.9986971.00442
45107.4106.713106.9080.9981731.00644
46107.4106.807106.7421.000611.00555
47107.5106.715106.5751.001311.00736
48107.5106.414106.4081.000051.01021
49105106.026106.2370.9980060.990327
50105.2106.091106.0621.000270.991602
51105.2105.877105.8870.99990.993606
52105.3105.882105.7121.00160.994505
53105.3105.7105.5671.001260.996214
54105.3105.497105.451.000450.99813
55105.3NANA0.999667NA
56105.3NANA0.998697NA
57105.3NANA0.998173NA
58105.3NANA1.00061NA
59106.1NANA1.00131NA
60106.1NANA1.00005NA



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