Free Statistics

of Irreproducible Research!

Author's title

datareeks-aantal overlijdens nederland, Classical Decomposition - Jana Dehe...

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationMon, 28 Nov 2016 19:50:01 +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/28/t1480362944m8fm8gco3xnj17x.htm/, Retrieved Sat, 04 May 2024 18:27:53 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sat, 04 May 2024 18:27:53 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
12200
10644
12044
11338
11292
10612
10995
10686
10635
11285
11475
12535
12490
12511
12799
11876
11602
11062
11055
10855
10704
11510
11663
12686
13516
12539
13811
12354
11441
10814
11261
10788
10326
11490
11029
11876
12198
11142
12008
11258
11367
10596
11721
11199
10972
11635
11725
13402
14955
13183
13673
12195
11811
11138
11590
11174
11250
12235
11612
12318




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=&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=&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'Herman Ole Andreas Wold' @ wold.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
112200NANA1482.24NA
210644NANA524.956NA
312044NANA1242.47NA
411338NANA74.1641NA
511292NANA-302.659NA
610612NANA-954.576NA
71099510935.711323.8-388.15959.3255
81068610594.411413.7-819.30591.5964
91063510437.511523-1085.47197.513
101128511286.211576.8-290.617-1.21615
111147511300.211612.2-311.951174.784
121253512472.711643.8828.91462.2526
131249013147.311665.11482.24-657.32
141251112199.611674.6524.956311.419
15127991292711684.51242.47-128.008
16118761177111696.874.1641105.044
171160211411.311714-302.659190.659
181106210773.511728.1-954.576288.451
19110551138911777.2-388.159-334.008
201085511001.811821.1-819.305-146.779
211070410778.911864.4-1085.47-74.9453
221151011635.911926.5-290.617-125.883
231166311627.811939.7-311.95135.2422
241268612751.611922.7828.914-65.5807
251351613403.211920.91482.24112.846
261253912451.711926.7524.95687.3359
271381113150.611908.21242.47660.367
281235411965.711891.674.1641388.253
291144111561.711864.3-302.659-120.674
301081410849.611804.2-954.576-35.5911
311126111327.311715.5-388.159-66.3411
321078810783.111602.4-819.3054.92969
331032610383.611469-1085.47-57.5703
341149011057.611348.2-290.617432.367
351102910987.511299.5-311.95141.4505
361187612116.211287.3828.914-240.247
371219812779.711297.41482.24-581.654
381114211858.711333.7524.956-716.664
391200812620.211377.81242.47-612.216
401125811484.911410.774.1641-226.872
411136711143.111445.8-302.659223.909
421059610583.811538.3-954.57612.2422
431172111328.611716.8-388.159392.367
441119911097.411916.7-819.305101.596
451097210985.712071.1-1085.47-13.6536
461163511888.912179.5-290.617-253.924
471172511925.112237.1-311.951-200.133
481340213107.112278.2828.914294.919
491495513777.512295.31482.241177.47
501318312813.712288.8524.956369.253
511367313541.812299.31242.47131.201
521219512410.112335.974.1641-215.081
531181112053.512356.2-302.659-242.549
541113811351.812306.3-954.576-213.758
5511590NANA-388.159NA
5611174NANA-819.305NA
5711250NANA-1085.47NA
5812235NANA-290.617NA
5911612NANA-311.951NA
6012318NANA828.914NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 12200 & NA & NA & 1482.24 & NA \tabularnewline
2 & 10644 & NA & NA & 524.956 & NA \tabularnewline
3 & 12044 & NA & NA & 1242.47 & NA \tabularnewline
4 & 11338 & NA & NA & 74.1641 & NA \tabularnewline
5 & 11292 & NA & NA & -302.659 & NA \tabularnewline
6 & 10612 & NA & NA & -954.576 & NA \tabularnewline
7 & 10995 & 10935.7 & 11323.8 & -388.159 & 59.3255 \tabularnewline
8 & 10686 & 10594.4 & 11413.7 & -819.305 & 91.5964 \tabularnewline
9 & 10635 & 10437.5 & 11523 & -1085.47 & 197.513 \tabularnewline
10 & 11285 & 11286.2 & 11576.8 & -290.617 & -1.21615 \tabularnewline
11 & 11475 & 11300.2 & 11612.2 & -311.951 & 174.784 \tabularnewline
12 & 12535 & 12472.7 & 11643.8 & 828.914 & 62.2526 \tabularnewline
13 & 12490 & 13147.3 & 11665.1 & 1482.24 & -657.32 \tabularnewline
14 & 12511 & 12199.6 & 11674.6 & 524.956 & 311.419 \tabularnewline
15 & 12799 & 12927 & 11684.5 & 1242.47 & -128.008 \tabularnewline
16 & 11876 & 11771 & 11696.8 & 74.1641 & 105.044 \tabularnewline
17 & 11602 & 11411.3 & 11714 & -302.659 & 190.659 \tabularnewline
18 & 11062 & 10773.5 & 11728.1 & -954.576 & 288.451 \tabularnewline
19 & 11055 & 11389 & 11777.2 & -388.159 & -334.008 \tabularnewline
20 & 10855 & 11001.8 & 11821.1 & -819.305 & -146.779 \tabularnewline
21 & 10704 & 10778.9 & 11864.4 & -1085.47 & -74.9453 \tabularnewline
22 & 11510 & 11635.9 & 11926.5 & -290.617 & -125.883 \tabularnewline
23 & 11663 & 11627.8 & 11939.7 & -311.951 & 35.2422 \tabularnewline
24 & 12686 & 12751.6 & 11922.7 & 828.914 & -65.5807 \tabularnewline
25 & 13516 & 13403.2 & 11920.9 & 1482.24 & 112.846 \tabularnewline
26 & 12539 & 12451.7 & 11926.7 & 524.956 & 87.3359 \tabularnewline
27 & 13811 & 13150.6 & 11908.2 & 1242.47 & 660.367 \tabularnewline
28 & 12354 & 11965.7 & 11891.6 & 74.1641 & 388.253 \tabularnewline
29 & 11441 & 11561.7 & 11864.3 & -302.659 & -120.674 \tabularnewline
30 & 10814 & 10849.6 & 11804.2 & -954.576 & -35.5911 \tabularnewline
31 & 11261 & 11327.3 & 11715.5 & -388.159 & -66.3411 \tabularnewline
32 & 10788 & 10783.1 & 11602.4 & -819.305 & 4.92969 \tabularnewline
33 & 10326 & 10383.6 & 11469 & -1085.47 & -57.5703 \tabularnewline
34 & 11490 & 11057.6 & 11348.2 & -290.617 & 432.367 \tabularnewline
35 & 11029 & 10987.5 & 11299.5 & -311.951 & 41.4505 \tabularnewline
36 & 11876 & 12116.2 & 11287.3 & 828.914 & -240.247 \tabularnewline
37 & 12198 & 12779.7 & 11297.4 & 1482.24 & -581.654 \tabularnewline
38 & 11142 & 11858.7 & 11333.7 & 524.956 & -716.664 \tabularnewline
39 & 12008 & 12620.2 & 11377.8 & 1242.47 & -612.216 \tabularnewline
40 & 11258 & 11484.9 & 11410.7 & 74.1641 & -226.872 \tabularnewline
41 & 11367 & 11143.1 & 11445.8 & -302.659 & 223.909 \tabularnewline
42 & 10596 & 10583.8 & 11538.3 & -954.576 & 12.2422 \tabularnewline
43 & 11721 & 11328.6 & 11716.8 & -388.159 & 392.367 \tabularnewline
44 & 11199 & 11097.4 & 11916.7 & -819.305 & 101.596 \tabularnewline
45 & 10972 & 10985.7 & 12071.1 & -1085.47 & -13.6536 \tabularnewline
46 & 11635 & 11888.9 & 12179.5 & -290.617 & -253.924 \tabularnewline
47 & 11725 & 11925.1 & 12237.1 & -311.951 & -200.133 \tabularnewline
48 & 13402 & 13107.1 & 12278.2 & 828.914 & 294.919 \tabularnewline
49 & 14955 & 13777.5 & 12295.3 & 1482.24 & 1177.47 \tabularnewline
50 & 13183 & 12813.7 & 12288.8 & 524.956 & 369.253 \tabularnewline
51 & 13673 & 13541.8 & 12299.3 & 1242.47 & 131.201 \tabularnewline
52 & 12195 & 12410.1 & 12335.9 & 74.1641 & -215.081 \tabularnewline
53 & 11811 & 12053.5 & 12356.2 & -302.659 & -242.549 \tabularnewline
54 & 11138 & 11351.8 & 12306.3 & -954.576 & -213.758 \tabularnewline
55 & 11590 & NA & NA & -388.159 & NA \tabularnewline
56 & 11174 & NA & NA & -819.305 & NA \tabularnewline
57 & 11250 & NA & NA & -1085.47 & NA \tabularnewline
58 & 12235 & NA & NA & -290.617 & NA \tabularnewline
59 & 11612 & NA & NA & -311.951 & NA \tabularnewline
60 & 12318 & NA & NA & 828.914 & 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]12200[/C][C]NA[/C][C]NA[/C][C]1482.24[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]10644[/C][C]NA[/C][C]NA[/C][C]524.956[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]12044[/C][C]NA[/C][C]NA[/C][C]1242.47[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]11338[/C][C]NA[/C][C]NA[/C][C]74.1641[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]11292[/C][C]NA[/C][C]NA[/C][C]-302.659[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]10612[/C][C]NA[/C][C]NA[/C][C]-954.576[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]10995[/C][C]10935.7[/C][C]11323.8[/C][C]-388.159[/C][C]59.3255[/C][/ROW]
[ROW][C]8[/C][C]10686[/C][C]10594.4[/C][C]11413.7[/C][C]-819.305[/C][C]91.5964[/C][/ROW]
[ROW][C]9[/C][C]10635[/C][C]10437.5[/C][C]11523[/C][C]-1085.47[/C][C]197.513[/C][/ROW]
[ROW][C]10[/C][C]11285[/C][C]11286.2[/C][C]11576.8[/C][C]-290.617[/C][C]-1.21615[/C][/ROW]
[ROW][C]11[/C][C]11475[/C][C]11300.2[/C][C]11612.2[/C][C]-311.951[/C][C]174.784[/C][/ROW]
[ROW][C]12[/C][C]12535[/C][C]12472.7[/C][C]11643.8[/C][C]828.914[/C][C]62.2526[/C][/ROW]
[ROW][C]13[/C][C]12490[/C][C]13147.3[/C][C]11665.1[/C][C]1482.24[/C][C]-657.32[/C][/ROW]
[ROW][C]14[/C][C]12511[/C][C]12199.6[/C][C]11674.6[/C][C]524.956[/C][C]311.419[/C][/ROW]
[ROW][C]15[/C][C]12799[/C][C]12927[/C][C]11684.5[/C][C]1242.47[/C][C]-128.008[/C][/ROW]
[ROW][C]16[/C][C]11876[/C][C]11771[/C][C]11696.8[/C][C]74.1641[/C][C]105.044[/C][/ROW]
[ROW][C]17[/C][C]11602[/C][C]11411.3[/C][C]11714[/C][C]-302.659[/C][C]190.659[/C][/ROW]
[ROW][C]18[/C][C]11062[/C][C]10773.5[/C][C]11728.1[/C][C]-954.576[/C][C]288.451[/C][/ROW]
[ROW][C]19[/C][C]11055[/C][C]11389[/C][C]11777.2[/C][C]-388.159[/C][C]-334.008[/C][/ROW]
[ROW][C]20[/C][C]10855[/C][C]11001.8[/C][C]11821.1[/C][C]-819.305[/C][C]-146.779[/C][/ROW]
[ROW][C]21[/C][C]10704[/C][C]10778.9[/C][C]11864.4[/C][C]-1085.47[/C][C]-74.9453[/C][/ROW]
[ROW][C]22[/C][C]11510[/C][C]11635.9[/C][C]11926.5[/C][C]-290.617[/C][C]-125.883[/C][/ROW]
[ROW][C]23[/C][C]11663[/C][C]11627.8[/C][C]11939.7[/C][C]-311.951[/C][C]35.2422[/C][/ROW]
[ROW][C]24[/C][C]12686[/C][C]12751.6[/C][C]11922.7[/C][C]828.914[/C][C]-65.5807[/C][/ROW]
[ROW][C]25[/C][C]13516[/C][C]13403.2[/C][C]11920.9[/C][C]1482.24[/C][C]112.846[/C][/ROW]
[ROW][C]26[/C][C]12539[/C][C]12451.7[/C][C]11926.7[/C][C]524.956[/C][C]87.3359[/C][/ROW]
[ROW][C]27[/C][C]13811[/C][C]13150.6[/C][C]11908.2[/C][C]1242.47[/C][C]660.367[/C][/ROW]
[ROW][C]28[/C][C]12354[/C][C]11965.7[/C][C]11891.6[/C][C]74.1641[/C][C]388.253[/C][/ROW]
[ROW][C]29[/C][C]11441[/C][C]11561.7[/C][C]11864.3[/C][C]-302.659[/C][C]-120.674[/C][/ROW]
[ROW][C]30[/C][C]10814[/C][C]10849.6[/C][C]11804.2[/C][C]-954.576[/C][C]-35.5911[/C][/ROW]
[ROW][C]31[/C][C]11261[/C][C]11327.3[/C][C]11715.5[/C][C]-388.159[/C][C]-66.3411[/C][/ROW]
[ROW][C]32[/C][C]10788[/C][C]10783.1[/C][C]11602.4[/C][C]-819.305[/C][C]4.92969[/C][/ROW]
[ROW][C]33[/C][C]10326[/C][C]10383.6[/C][C]11469[/C][C]-1085.47[/C][C]-57.5703[/C][/ROW]
[ROW][C]34[/C][C]11490[/C][C]11057.6[/C][C]11348.2[/C][C]-290.617[/C][C]432.367[/C][/ROW]
[ROW][C]35[/C][C]11029[/C][C]10987.5[/C][C]11299.5[/C][C]-311.951[/C][C]41.4505[/C][/ROW]
[ROW][C]36[/C][C]11876[/C][C]12116.2[/C][C]11287.3[/C][C]828.914[/C][C]-240.247[/C][/ROW]
[ROW][C]37[/C][C]12198[/C][C]12779.7[/C][C]11297.4[/C][C]1482.24[/C][C]-581.654[/C][/ROW]
[ROW][C]38[/C][C]11142[/C][C]11858.7[/C][C]11333.7[/C][C]524.956[/C][C]-716.664[/C][/ROW]
[ROW][C]39[/C][C]12008[/C][C]12620.2[/C][C]11377.8[/C][C]1242.47[/C][C]-612.216[/C][/ROW]
[ROW][C]40[/C][C]11258[/C][C]11484.9[/C][C]11410.7[/C][C]74.1641[/C][C]-226.872[/C][/ROW]
[ROW][C]41[/C][C]11367[/C][C]11143.1[/C][C]11445.8[/C][C]-302.659[/C][C]223.909[/C][/ROW]
[ROW][C]42[/C][C]10596[/C][C]10583.8[/C][C]11538.3[/C][C]-954.576[/C][C]12.2422[/C][/ROW]
[ROW][C]43[/C][C]11721[/C][C]11328.6[/C][C]11716.8[/C][C]-388.159[/C][C]392.367[/C][/ROW]
[ROW][C]44[/C][C]11199[/C][C]11097.4[/C][C]11916.7[/C][C]-819.305[/C][C]101.596[/C][/ROW]
[ROW][C]45[/C][C]10972[/C][C]10985.7[/C][C]12071.1[/C][C]-1085.47[/C][C]-13.6536[/C][/ROW]
[ROW][C]46[/C][C]11635[/C][C]11888.9[/C][C]12179.5[/C][C]-290.617[/C][C]-253.924[/C][/ROW]
[ROW][C]47[/C][C]11725[/C][C]11925.1[/C][C]12237.1[/C][C]-311.951[/C][C]-200.133[/C][/ROW]
[ROW][C]48[/C][C]13402[/C][C]13107.1[/C][C]12278.2[/C][C]828.914[/C][C]294.919[/C][/ROW]
[ROW][C]49[/C][C]14955[/C][C]13777.5[/C][C]12295.3[/C][C]1482.24[/C][C]1177.47[/C][/ROW]
[ROW][C]50[/C][C]13183[/C][C]12813.7[/C][C]12288.8[/C][C]524.956[/C][C]369.253[/C][/ROW]
[ROW][C]51[/C][C]13673[/C][C]13541.8[/C][C]12299.3[/C][C]1242.47[/C][C]131.201[/C][/ROW]
[ROW][C]52[/C][C]12195[/C][C]12410.1[/C][C]12335.9[/C][C]74.1641[/C][C]-215.081[/C][/ROW]
[ROW][C]53[/C][C]11811[/C][C]12053.5[/C][C]12356.2[/C][C]-302.659[/C][C]-242.549[/C][/ROW]
[ROW][C]54[/C][C]11138[/C][C]11351.8[/C][C]12306.3[/C][C]-954.576[/C][C]-213.758[/C][/ROW]
[ROW][C]55[/C][C]11590[/C][C]NA[/C][C]NA[/C][C]-388.159[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]11174[/C][C]NA[/C][C]NA[/C][C]-819.305[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]11250[/C][C]NA[/C][C]NA[/C][C]-1085.47[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]12235[/C][C]NA[/C][C]NA[/C][C]-290.617[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]11612[/C][C]NA[/C][C]NA[/C][C]-311.951[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]12318[/C][C]NA[/C][C]NA[/C][C]828.914[/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
112200NANA1482.24NA
210644NANA524.956NA
312044NANA1242.47NA
411338NANA74.1641NA
511292NANA-302.659NA
610612NANA-954.576NA
71099510935.711323.8-388.15959.3255
81068610594.411413.7-819.30591.5964
91063510437.511523-1085.47197.513
101128511286.211576.8-290.617-1.21615
111147511300.211612.2-311.951174.784
121253512472.711643.8828.91462.2526
131249013147.311665.11482.24-657.32
141251112199.611674.6524.956311.419
15127991292711684.51242.47-128.008
16118761177111696.874.1641105.044
171160211411.311714-302.659190.659
181106210773.511728.1-954.576288.451
19110551138911777.2-388.159-334.008
201085511001.811821.1-819.305-146.779
211070410778.911864.4-1085.47-74.9453
221151011635.911926.5-290.617-125.883
231166311627.811939.7-311.95135.2422
241268612751.611922.7828.914-65.5807
251351613403.211920.91482.24112.846
261253912451.711926.7524.95687.3359
271381113150.611908.21242.47660.367
281235411965.711891.674.1641388.253
291144111561.711864.3-302.659-120.674
301081410849.611804.2-954.576-35.5911
311126111327.311715.5-388.159-66.3411
321078810783.111602.4-819.3054.92969
331032610383.611469-1085.47-57.5703
341149011057.611348.2-290.617432.367
351102910987.511299.5-311.95141.4505
361187612116.211287.3828.914-240.247
371219812779.711297.41482.24-581.654
381114211858.711333.7524.956-716.664
391200812620.211377.81242.47-612.216
401125811484.911410.774.1641-226.872
411136711143.111445.8-302.659223.909
421059610583.811538.3-954.57612.2422
431172111328.611716.8-388.159392.367
441119911097.411916.7-819.305101.596
451097210985.712071.1-1085.47-13.6536
461163511888.912179.5-290.617-253.924
471172511925.112237.1-311.951-200.133
481340213107.112278.2828.914294.919
491495513777.512295.31482.241177.47
501318312813.712288.8524.956369.253
511367313541.812299.31242.47131.201
521219512410.112335.974.1641-215.081
531181112053.512356.2-302.659-242.549
541113811351.812306.3-954.576-213.758
5511590NANA-388.159NA
5611174NANA-819.305NA
5711250NANA-1085.47NA
5812235NANA-290.617NA
5911612NANA-311.951NA
6012318NANA828.914NA



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