Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSun, 27 Nov 2016 14:29:07 +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/Nov/27/t1480257180y8p0cakhcvui5ve.htm/, Retrieved Mon, 29 Apr 2024 23:51:37 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Mon, 29 Apr 2024 23:51:37 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
100
100
100
100
100
100
100
100
100
100
100
100
100,4
100,4
100,4
100,4
100,4
100,4
100,4
100,4
100,4
100,4
101,4
101,4
102
102
102,6
102,6
102,6
102,6
102,6
102,6
102,3
102,4
102,4
102,4
102,9
102,9
102,9
104,9
104,9
105,5
105,5
105,5
105,5
105,5
105,5
105,5
105,5
106,8
106,8
106,8
106,9
107,5
107,6
107,6
107,6
107,8
107,8
107,8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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 Maurice George Kendall' @ kendall.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1100NANA0.998787NA
2100NANA1.00032NA
3100NANA1.00027NA
4100NANA1.00353NA
5100NANA1.0022NA
6100NANA1.00347NA
7100100.162100.0171.001450.998385
8100100.071100.051.000210.999295
910099.8937100.0830.9981051.00106
1010099.8143100.1170.9969791.00186
1110099.9565100.150.9980681.00044
1210099.8445100.1830.9966181.00156
13100.4100.095100.2170.9987871.00305
14100.4100.282100.251.000321.00118
15100.4100.31100.2831.000271.0009
16100.4100.671100.3171.003530.997309
17100.4100.612100.3921.00220.997888
18100.4100.857100.5081.003470.995466
19100.4100.779100.6331.001450.996236
20100.4100.787100.7671.000210.996156
21100.4100.734100.9250.9981050.996687
22100.4100.803101.1080.9969790.996003
23101.4101.096101.2920.9980681.00301
24101.4101.132101.4750.9966181.00265
25102101.535101.6580.9987871.00458
26102101.874101.8421.000321.00124
27102.6102.04102.0121.000271.00549
28102.6102.536102.1751.003531.00063
29102.6102.525102.31.00221.00073
30102.6102.739102.3831.003470.998649
31102.6102.611102.4621.001450.999892
32102.6102.559102.5371.000211.0004
33102.3102.393102.5870.9981050.999091
34102.4102.386102.6960.9969791.00014
35102.4102.689102.8880.9980680.997189
36102.4102.755103.1040.9966180.996541
37102.9103.22103.3460.9987870.996895
38102.9103.62103.5881.000320.993047
39102.9103.869103.8421.000270.990668
40104.9104.472104.1041.003531.0041
41104.9104.592104.3621.00221.00294
42105.5104.984104.6211.003471.00491
43105.5105.01104.8581.001451.00466
44105.5105.151105.1291.000211.00332
45105.5105.254105.4540.9981051.00233
46105.5105.377105.6960.9969791.00117
47105.5105.654105.8580.9980680.998544
48105.5105.666106.0250.9966180.998425
49105.5106.067106.1960.9987870.994654
50106.8106.405106.3711.000321.00372
51106.8106.574106.5461.000271.00212
52106.8107.106106.7291.003530.997142
53106.9107.156106.9211.00220.997611
54107.5107.484107.1121.003471.00015
55107.6NANA1.00145NA
56107.6NANA1.00021NA
57107.6NANA0.998105NA
58107.8NANA0.996979NA
59107.8NANA0.998068NA
60107.8NANA0.996618NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 100 & NA & NA & 0.998787 & NA \tabularnewline
2 & 100 & NA & NA & 1.00032 & NA \tabularnewline
3 & 100 & NA & NA & 1.00027 & NA \tabularnewline
4 & 100 & NA & NA & 1.00353 & NA \tabularnewline
5 & 100 & NA & NA & 1.0022 & NA \tabularnewline
6 & 100 & NA & NA & 1.00347 & NA \tabularnewline
7 & 100 & 100.162 & 100.017 & 1.00145 & 0.998385 \tabularnewline
8 & 100 & 100.071 & 100.05 & 1.00021 & 0.999295 \tabularnewline
9 & 100 & 99.8937 & 100.083 & 0.998105 & 1.00106 \tabularnewline
10 & 100 & 99.8143 & 100.117 & 0.996979 & 1.00186 \tabularnewline
11 & 100 & 99.9565 & 100.15 & 0.998068 & 1.00044 \tabularnewline
12 & 100 & 99.8445 & 100.183 & 0.996618 & 1.00156 \tabularnewline
13 & 100.4 & 100.095 & 100.217 & 0.998787 & 1.00305 \tabularnewline
14 & 100.4 & 100.282 & 100.25 & 1.00032 & 1.00118 \tabularnewline
15 & 100.4 & 100.31 & 100.283 & 1.00027 & 1.0009 \tabularnewline
16 & 100.4 & 100.671 & 100.317 & 1.00353 & 0.997309 \tabularnewline
17 & 100.4 & 100.612 & 100.392 & 1.0022 & 0.997888 \tabularnewline
18 & 100.4 & 100.857 & 100.508 & 1.00347 & 0.995466 \tabularnewline
19 & 100.4 & 100.779 & 100.633 & 1.00145 & 0.996236 \tabularnewline
20 & 100.4 & 100.787 & 100.767 & 1.00021 & 0.996156 \tabularnewline
21 & 100.4 & 100.734 & 100.925 & 0.998105 & 0.996687 \tabularnewline
22 & 100.4 & 100.803 & 101.108 & 0.996979 & 0.996003 \tabularnewline
23 & 101.4 & 101.096 & 101.292 & 0.998068 & 1.00301 \tabularnewline
24 & 101.4 & 101.132 & 101.475 & 0.996618 & 1.00265 \tabularnewline
25 & 102 & 101.535 & 101.658 & 0.998787 & 1.00458 \tabularnewline
26 & 102 & 101.874 & 101.842 & 1.00032 & 1.00124 \tabularnewline
27 & 102.6 & 102.04 & 102.012 & 1.00027 & 1.00549 \tabularnewline
28 & 102.6 & 102.536 & 102.175 & 1.00353 & 1.00063 \tabularnewline
29 & 102.6 & 102.525 & 102.3 & 1.0022 & 1.00073 \tabularnewline
30 & 102.6 & 102.739 & 102.383 & 1.00347 & 0.998649 \tabularnewline
31 & 102.6 & 102.611 & 102.462 & 1.00145 & 0.999892 \tabularnewline
32 & 102.6 & 102.559 & 102.537 & 1.00021 & 1.0004 \tabularnewline
33 & 102.3 & 102.393 & 102.587 & 0.998105 & 0.999091 \tabularnewline
34 & 102.4 & 102.386 & 102.696 & 0.996979 & 1.00014 \tabularnewline
35 & 102.4 & 102.689 & 102.888 & 0.998068 & 0.997189 \tabularnewline
36 & 102.4 & 102.755 & 103.104 & 0.996618 & 0.996541 \tabularnewline
37 & 102.9 & 103.22 & 103.346 & 0.998787 & 0.996895 \tabularnewline
38 & 102.9 & 103.62 & 103.588 & 1.00032 & 0.993047 \tabularnewline
39 & 102.9 & 103.869 & 103.842 & 1.00027 & 0.990668 \tabularnewline
40 & 104.9 & 104.472 & 104.104 & 1.00353 & 1.0041 \tabularnewline
41 & 104.9 & 104.592 & 104.362 & 1.0022 & 1.00294 \tabularnewline
42 & 105.5 & 104.984 & 104.621 & 1.00347 & 1.00491 \tabularnewline
43 & 105.5 & 105.01 & 104.858 & 1.00145 & 1.00466 \tabularnewline
44 & 105.5 & 105.151 & 105.129 & 1.00021 & 1.00332 \tabularnewline
45 & 105.5 & 105.254 & 105.454 & 0.998105 & 1.00233 \tabularnewline
46 & 105.5 & 105.377 & 105.696 & 0.996979 & 1.00117 \tabularnewline
47 & 105.5 & 105.654 & 105.858 & 0.998068 & 0.998544 \tabularnewline
48 & 105.5 & 105.666 & 106.025 & 0.996618 & 0.998425 \tabularnewline
49 & 105.5 & 106.067 & 106.196 & 0.998787 & 0.994654 \tabularnewline
50 & 106.8 & 106.405 & 106.371 & 1.00032 & 1.00372 \tabularnewline
51 & 106.8 & 106.574 & 106.546 & 1.00027 & 1.00212 \tabularnewline
52 & 106.8 & 107.106 & 106.729 & 1.00353 & 0.997142 \tabularnewline
53 & 106.9 & 107.156 & 106.921 & 1.0022 & 0.997611 \tabularnewline
54 & 107.5 & 107.484 & 107.112 & 1.00347 & 1.00015 \tabularnewline
55 & 107.6 & NA & NA & 1.00145 & NA \tabularnewline
56 & 107.6 & NA & NA & 1.00021 & NA \tabularnewline
57 & 107.6 & NA & NA & 0.998105 & NA \tabularnewline
58 & 107.8 & NA & NA & 0.996979 & NA \tabularnewline
59 & 107.8 & NA & NA & 0.998068 & NA \tabularnewline
60 & 107.8 & NA & NA & 0.996618 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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.998787[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]100[/C][C]NA[/C][C]NA[/C][C]1.00032[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]100[/C][C]NA[/C][C]NA[/C][C]1.00027[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]100[/C][C]NA[/C][C]NA[/C][C]1.00353[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]100[/C][C]NA[/C][C]NA[/C][C]1.0022[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]100[/C][C]NA[/C][C]NA[/C][C]1.00347[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]100[/C][C]100.162[/C][C]100.017[/C][C]1.00145[/C][C]0.998385[/C][/ROW]
[ROW][C]8[/C][C]100[/C][C]100.071[/C][C]100.05[/C][C]1.00021[/C][C]0.999295[/C][/ROW]
[ROW][C]9[/C][C]100[/C][C]99.8937[/C][C]100.083[/C][C]0.998105[/C][C]1.00106[/C][/ROW]
[ROW][C]10[/C][C]100[/C][C]99.8143[/C][C]100.117[/C][C]0.996979[/C][C]1.00186[/C][/ROW]
[ROW][C]11[/C][C]100[/C][C]99.9565[/C][C]100.15[/C][C]0.998068[/C][C]1.00044[/C][/ROW]
[ROW][C]12[/C][C]100[/C][C]99.8445[/C][C]100.183[/C][C]0.996618[/C][C]1.00156[/C][/ROW]
[ROW][C]13[/C][C]100.4[/C][C]100.095[/C][C]100.217[/C][C]0.998787[/C][C]1.00305[/C][/ROW]
[ROW][C]14[/C][C]100.4[/C][C]100.282[/C][C]100.25[/C][C]1.00032[/C][C]1.00118[/C][/ROW]
[ROW][C]15[/C][C]100.4[/C][C]100.31[/C][C]100.283[/C][C]1.00027[/C][C]1.0009[/C][/ROW]
[ROW][C]16[/C][C]100.4[/C][C]100.671[/C][C]100.317[/C][C]1.00353[/C][C]0.997309[/C][/ROW]
[ROW][C]17[/C][C]100.4[/C][C]100.612[/C][C]100.392[/C][C]1.0022[/C][C]0.997888[/C][/ROW]
[ROW][C]18[/C][C]100.4[/C][C]100.857[/C][C]100.508[/C][C]1.00347[/C][C]0.995466[/C][/ROW]
[ROW][C]19[/C][C]100.4[/C][C]100.779[/C][C]100.633[/C][C]1.00145[/C][C]0.996236[/C][/ROW]
[ROW][C]20[/C][C]100.4[/C][C]100.787[/C][C]100.767[/C][C]1.00021[/C][C]0.996156[/C][/ROW]
[ROW][C]21[/C][C]100.4[/C][C]100.734[/C][C]100.925[/C][C]0.998105[/C][C]0.996687[/C][/ROW]
[ROW][C]22[/C][C]100.4[/C][C]100.803[/C][C]101.108[/C][C]0.996979[/C][C]0.996003[/C][/ROW]
[ROW][C]23[/C][C]101.4[/C][C]101.096[/C][C]101.292[/C][C]0.998068[/C][C]1.00301[/C][/ROW]
[ROW][C]24[/C][C]101.4[/C][C]101.132[/C][C]101.475[/C][C]0.996618[/C][C]1.00265[/C][/ROW]
[ROW][C]25[/C][C]102[/C][C]101.535[/C][C]101.658[/C][C]0.998787[/C][C]1.00458[/C][/ROW]
[ROW][C]26[/C][C]102[/C][C]101.874[/C][C]101.842[/C][C]1.00032[/C][C]1.00124[/C][/ROW]
[ROW][C]27[/C][C]102.6[/C][C]102.04[/C][C]102.012[/C][C]1.00027[/C][C]1.00549[/C][/ROW]
[ROW][C]28[/C][C]102.6[/C][C]102.536[/C][C]102.175[/C][C]1.00353[/C][C]1.00063[/C][/ROW]
[ROW][C]29[/C][C]102.6[/C][C]102.525[/C][C]102.3[/C][C]1.0022[/C][C]1.00073[/C][/ROW]
[ROW][C]30[/C][C]102.6[/C][C]102.739[/C][C]102.383[/C][C]1.00347[/C][C]0.998649[/C][/ROW]
[ROW][C]31[/C][C]102.6[/C][C]102.611[/C][C]102.462[/C][C]1.00145[/C][C]0.999892[/C][/ROW]
[ROW][C]32[/C][C]102.6[/C][C]102.559[/C][C]102.537[/C][C]1.00021[/C][C]1.0004[/C][/ROW]
[ROW][C]33[/C][C]102.3[/C][C]102.393[/C][C]102.587[/C][C]0.998105[/C][C]0.999091[/C][/ROW]
[ROW][C]34[/C][C]102.4[/C][C]102.386[/C][C]102.696[/C][C]0.996979[/C][C]1.00014[/C][/ROW]
[ROW][C]35[/C][C]102.4[/C][C]102.689[/C][C]102.888[/C][C]0.998068[/C][C]0.997189[/C][/ROW]
[ROW][C]36[/C][C]102.4[/C][C]102.755[/C][C]103.104[/C][C]0.996618[/C][C]0.996541[/C][/ROW]
[ROW][C]37[/C][C]102.9[/C][C]103.22[/C][C]103.346[/C][C]0.998787[/C][C]0.996895[/C][/ROW]
[ROW][C]38[/C][C]102.9[/C][C]103.62[/C][C]103.588[/C][C]1.00032[/C][C]0.993047[/C][/ROW]
[ROW][C]39[/C][C]102.9[/C][C]103.869[/C][C]103.842[/C][C]1.00027[/C][C]0.990668[/C][/ROW]
[ROW][C]40[/C][C]104.9[/C][C]104.472[/C][C]104.104[/C][C]1.00353[/C][C]1.0041[/C][/ROW]
[ROW][C]41[/C][C]104.9[/C][C]104.592[/C][C]104.362[/C][C]1.0022[/C][C]1.00294[/C][/ROW]
[ROW][C]42[/C][C]105.5[/C][C]104.984[/C][C]104.621[/C][C]1.00347[/C][C]1.00491[/C][/ROW]
[ROW][C]43[/C][C]105.5[/C][C]105.01[/C][C]104.858[/C][C]1.00145[/C][C]1.00466[/C][/ROW]
[ROW][C]44[/C][C]105.5[/C][C]105.151[/C][C]105.129[/C][C]1.00021[/C][C]1.00332[/C][/ROW]
[ROW][C]45[/C][C]105.5[/C][C]105.254[/C][C]105.454[/C][C]0.998105[/C][C]1.00233[/C][/ROW]
[ROW][C]46[/C][C]105.5[/C][C]105.377[/C][C]105.696[/C][C]0.996979[/C][C]1.00117[/C][/ROW]
[ROW][C]47[/C][C]105.5[/C][C]105.654[/C][C]105.858[/C][C]0.998068[/C][C]0.998544[/C][/ROW]
[ROW][C]48[/C][C]105.5[/C][C]105.666[/C][C]106.025[/C][C]0.996618[/C][C]0.998425[/C][/ROW]
[ROW][C]49[/C][C]105.5[/C][C]106.067[/C][C]106.196[/C][C]0.998787[/C][C]0.994654[/C][/ROW]
[ROW][C]50[/C][C]106.8[/C][C]106.405[/C][C]106.371[/C][C]1.00032[/C][C]1.00372[/C][/ROW]
[ROW][C]51[/C][C]106.8[/C][C]106.574[/C][C]106.546[/C][C]1.00027[/C][C]1.00212[/C][/ROW]
[ROW][C]52[/C][C]106.8[/C][C]107.106[/C][C]106.729[/C][C]1.00353[/C][C]0.997142[/C][/ROW]
[ROW][C]53[/C][C]106.9[/C][C]107.156[/C][C]106.921[/C][C]1.0022[/C][C]0.997611[/C][/ROW]
[ROW][C]54[/C][C]107.5[/C][C]107.484[/C][C]107.112[/C][C]1.00347[/C][C]1.00015[/C][/ROW]
[ROW][C]55[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]1.00145[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]1.00021[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]107.6[/C][C]NA[/C][C]NA[/C][C]0.998105[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]107.8[/C][C]NA[/C][C]NA[/C][C]0.996979[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]107.8[/C][C]NA[/C][C]NA[/C][C]0.998068[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]107.8[/C][C]NA[/C][C]NA[/C][C]0.996618[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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.998787NA
2100NANA1.00032NA
3100NANA1.00027NA
4100NANA1.00353NA
5100NANA1.0022NA
6100NANA1.00347NA
7100100.162100.0171.001450.998385
8100100.071100.051.000210.999295
910099.8937100.0830.9981051.00106
1010099.8143100.1170.9969791.00186
1110099.9565100.150.9980681.00044
1210099.8445100.1830.9966181.00156
13100.4100.095100.2170.9987871.00305
14100.4100.282100.251.000321.00118
15100.4100.31100.2831.000271.0009
16100.4100.671100.3171.003530.997309
17100.4100.612100.3921.00220.997888
18100.4100.857100.5081.003470.995466
19100.4100.779100.6331.001450.996236
20100.4100.787100.7671.000210.996156
21100.4100.734100.9250.9981050.996687
22100.4100.803101.1080.9969790.996003
23101.4101.096101.2920.9980681.00301
24101.4101.132101.4750.9966181.00265
25102101.535101.6580.9987871.00458
26102101.874101.8421.000321.00124
27102.6102.04102.0121.000271.00549
28102.6102.536102.1751.003531.00063
29102.6102.525102.31.00221.00073
30102.6102.739102.3831.003470.998649
31102.6102.611102.4621.001450.999892
32102.6102.559102.5371.000211.0004
33102.3102.393102.5870.9981050.999091
34102.4102.386102.6960.9969791.00014
35102.4102.689102.8880.9980680.997189
36102.4102.755103.1040.9966180.996541
37102.9103.22103.3460.9987870.996895
38102.9103.62103.5881.000320.993047
39102.9103.869103.8421.000270.990668
40104.9104.472104.1041.003531.0041
41104.9104.592104.3621.00221.00294
42105.5104.984104.6211.003471.00491
43105.5105.01104.8581.001451.00466
44105.5105.151105.1291.000211.00332
45105.5105.254105.4540.9981051.00233
46105.5105.377105.6960.9969791.00117
47105.5105.654105.8580.9980680.998544
48105.5105.666106.0250.9966180.998425
49105.5106.067106.1960.9987870.994654
50106.8106.405106.3711.000321.00372
51106.8106.574106.5461.000271.00212
52106.8107.106106.7291.003530.997142
53106.9107.156106.9211.00220.997611
54107.5107.484107.1121.003471.00015
55107.6NANA1.00145NA
56107.6NANA1.00021NA
57107.6NANA0.998105NA
58107.8NANA0.996979NA
59107.8NANA0.998068NA
60107.8NANA0.996618NA



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