Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationSat, 26 Nov 2016 21:11:22 +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/26/t14801947408eoq8v1yhmkf4bj.htm/, Retrieved Sun, 19 May 2024 05:46:22 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sun, 19 May 2024 05:46:22 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
829
721
19
311
264
120
135
435
1456
127
313
1104
585
295
4073
408
224
312
571
1336
586
2279
239
198
320
112
89
407
434
268
354
150
273
728
226
310
554
5725
303
360
129
2466
1042
456
335
866
1417
994
201
224
640
1043
293
2659
436
485
610
31127
2613
432
532




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
1829NANA-226.419NA
2721NANA943.925NA
319NANA639.466NA
4311NANA-396.388NA
5264NANA-1027.76NA
6120NANA111.529NA
7135-126.434476-602.434261.434
8435480.56448.08332.4769-45.5602
91456698.685599.2599.4352757.315
101271195.05772.208422.841-1068.05
11313738.248774.583-36.3356-425.248
121104820.581780.91739.6644283.419
13585580.664807.083-226.4194.33559
142951806.72862.792943.925-1511.72
1540731503.55864.083639.4662569.45
16408521.112917.5-396.388-113.112
17224-23.67931004.08-1027.76247.679
183121074.78963.25111.529-762.779
19571312.025914.458-602.434258.975
201336928.269895.79232.4769407.731
21586821.602722.16799.4352-235.602
222279978.966556.125422.8411300.03
23239528.498564.833-36.3356-289.498
24198611.414571.7539.6644-413.414
25320334.456560.875-226.419-14.4561
261121446.34502.417943.925-1334.34
27891079.42439.958639.466-990.425
28407-34.096362.292-396.388441.096
29434-730.638297.125-1027.761164.64
30268412.779301.25111.529-144.779
31354-286.767315.667-602.434640.767
32150591.769559.29232.4769-441.769
33273901.519802.08399.4352-628.519
347281231.88809.042422.841-503.883
35226758.039794.375-36.3356-532.039
36310912.914873.2539.6644-602.914
37554767.081993.5-226.419-213.081
3857251978.841034.92943.9253746.16
393031689.721050.25639.466-1386.72
40360662.1961058.58-396.388-302.196
4112986.19571113.96-1027.7642.8043
4224661303.611192.08111.5291162.39
431042603.4411205.87-602.434438.559
44456994.435961.95832.4769-538.435
45335846.227746.79299.4352-511.227
468661212.13789.292422.841-346.133
471417788.248824.583-36.3356628.752
48994879.123839.45839.6644114.877
49201595.831822.25-226.419-394.831
502241742.13798.208943.925-1518.13
516401450.34810.875639.466-810.341
5210431686.822083.21-396.388-643.821
532932366.153393.92-1027.76-2073.15
5426593531.863420.33111.529-872.862
554362808.273410.71-602.434-2372.27
56485NANA32.4769NA
57610NANA99.4352NA
5831127NANA422.841NA
592613NANA-36.3356NA
60432NANA39.6644NA
61532NANA-226.419NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 829 & NA & NA & -226.419 & NA \tabularnewline
2 & 721 & NA & NA & 943.925 & NA \tabularnewline
3 & 19 & NA & NA & 639.466 & NA \tabularnewline
4 & 311 & NA & NA & -396.388 & NA \tabularnewline
5 & 264 & NA & NA & -1027.76 & NA \tabularnewline
6 & 120 & NA & NA & 111.529 & NA \tabularnewline
7 & 135 & -126.434 & 476 & -602.434 & 261.434 \tabularnewline
8 & 435 & 480.56 & 448.083 & 32.4769 & -45.5602 \tabularnewline
9 & 1456 & 698.685 & 599.25 & 99.4352 & 757.315 \tabularnewline
10 & 127 & 1195.05 & 772.208 & 422.841 & -1068.05 \tabularnewline
11 & 313 & 738.248 & 774.583 & -36.3356 & -425.248 \tabularnewline
12 & 1104 & 820.581 & 780.917 & 39.6644 & 283.419 \tabularnewline
13 & 585 & 580.664 & 807.083 & -226.419 & 4.33559 \tabularnewline
14 & 295 & 1806.72 & 862.792 & 943.925 & -1511.72 \tabularnewline
15 & 4073 & 1503.55 & 864.083 & 639.466 & 2569.45 \tabularnewline
16 & 408 & 521.112 & 917.5 & -396.388 & -113.112 \tabularnewline
17 & 224 & -23.6793 & 1004.08 & -1027.76 & 247.679 \tabularnewline
18 & 312 & 1074.78 & 963.25 & 111.529 & -762.779 \tabularnewline
19 & 571 & 312.025 & 914.458 & -602.434 & 258.975 \tabularnewline
20 & 1336 & 928.269 & 895.792 & 32.4769 & 407.731 \tabularnewline
21 & 586 & 821.602 & 722.167 & 99.4352 & -235.602 \tabularnewline
22 & 2279 & 978.966 & 556.125 & 422.841 & 1300.03 \tabularnewline
23 & 239 & 528.498 & 564.833 & -36.3356 & -289.498 \tabularnewline
24 & 198 & 611.414 & 571.75 & 39.6644 & -413.414 \tabularnewline
25 & 320 & 334.456 & 560.875 & -226.419 & -14.4561 \tabularnewline
26 & 112 & 1446.34 & 502.417 & 943.925 & -1334.34 \tabularnewline
27 & 89 & 1079.42 & 439.958 & 639.466 & -990.425 \tabularnewline
28 & 407 & -34.096 & 362.292 & -396.388 & 441.096 \tabularnewline
29 & 434 & -730.638 & 297.125 & -1027.76 & 1164.64 \tabularnewline
30 & 268 & 412.779 & 301.25 & 111.529 & -144.779 \tabularnewline
31 & 354 & -286.767 & 315.667 & -602.434 & 640.767 \tabularnewline
32 & 150 & 591.769 & 559.292 & 32.4769 & -441.769 \tabularnewline
33 & 273 & 901.519 & 802.083 & 99.4352 & -628.519 \tabularnewline
34 & 728 & 1231.88 & 809.042 & 422.841 & -503.883 \tabularnewline
35 & 226 & 758.039 & 794.375 & -36.3356 & -532.039 \tabularnewline
36 & 310 & 912.914 & 873.25 & 39.6644 & -602.914 \tabularnewline
37 & 554 & 767.081 & 993.5 & -226.419 & -213.081 \tabularnewline
38 & 5725 & 1978.84 & 1034.92 & 943.925 & 3746.16 \tabularnewline
39 & 303 & 1689.72 & 1050.25 & 639.466 & -1386.72 \tabularnewline
40 & 360 & 662.196 & 1058.58 & -396.388 & -302.196 \tabularnewline
41 & 129 & 86.1957 & 1113.96 & -1027.76 & 42.8043 \tabularnewline
42 & 2466 & 1303.61 & 1192.08 & 111.529 & 1162.39 \tabularnewline
43 & 1042 & 603.441 & 1205.87 & -602.434 & 438.559 \tabularnewline
44 & 456 & 994.435 & 961.958 & 32.4769 & -538.435 \tabularnewline
45 & 335 & 846.227 & 746.792 & 99.4352 & -511.227 \tabularnewline
46 & 866 & 1212.13 & 789.292 & 422.841 & -346.133 \tabularnewline
47 & 1417 & 788.248 & 824.583 & -36.3356 & 628.752 \tabularnewline
48 & 994 & 879.123 & 839.458 & 39.6644 & 114.877 \tabularnewline
49 & 201 & 595.831 & 822.25 & -226.419 & -394.831 \tabularnewline
50 & 224 & 1742.13 & 798.208 & 943.925 & -1518.13 \tabularnewline
51 & 640 & 1450.34 & 810.875 & 639.466 & -810.341 \tabularnewline
52 & 1043 & 1686.82 & 2083.21 & -396.388 & -643.821 \tabularnewline
53 & 293 & 2366.15 & 3393.92 & -1027.76 & -2073.15 \tabularnewline
54 & 2659 & 3531.86 & 3420.33 & 111.529 & -872.862 \tabularnewline
55 & 436 & 2808.27 & 3410.71 & -602.434 & -2372.27 \tabularnewline
56 & 485 & NA & NA & 32.4769 & NA \tabularnewline
57 & 610 & NA & NA & 99.4352 & NA \tabularnewline
58 & 31127 & NA & NA & 422.841 & NA \tabularnewline
59 & 2613 & NA & NA & -36.3356 & NA \tabularnewline
60 & 432 & NA & NA & 39.6644 & NA \tabularnewline
61 & 532 & NA & NA & -226.419 & 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]829[/C][C]NA[/C][C]NA[/C][C]-226.419[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]721[/C][C]NA[/C][C]NA[/C][C]943.925[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]19[/C][C]NA[/C][C]NA[/C][C]639.466[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]311[/C][C]NA[/C][C]NA[/C][C]-396.388[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]264[/C][C]NA[/C][C]NA[/C][C]-1027.76[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]120[/C][C]NA[/C][C]NA[/C][C]111.529[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]135[/C][C]-126.434[/C][C]476[/C][C]-602.434[/C][C]261.434[/C][/ROW]
[ROW][C]8[/C][C]435[/C][C]480.56[/C][C]448.083[/C][C]32.4769[/C][C]-45.5602[/C][/ROW]
[ROW][C]9[/C][C]1456[/C][C]698.685[/C][C]599.25[/C][C]99.4352[/C][C]757.315[/C][/ROW]
[ROW][C]10[/C][C]127[/C][C]1195.05[/C][C]772.208[/C][C]422.841[/C][C]-1068.05[/C][/ROW]
[ROW][C]11[/C][C]313[/C][C]738.248[/C][C]774.583[/C][C]-36.3356[/C][C]-425.248[/C][/ROW]
[ROW][C]12[/C][C]1104[/C][C]820.581[/C][C]780.917[/C][C]39.6644[/C][C]283.419[/C][/ROW]
[ROW][C]13[/C][C]585[/C][C]580.664[/C][C]807.083[/C][C]-226.419[/C][C]4.33559[/C][/ROW]
[ROW][C]14[/C][C]295[/C][C]1806.72[/C][C]862.792[/C][C]943.925[/C][C]-1511.72[/C][/ROW]
[ROW][C]15[/C][C]4073[/C][C]1503.55[/C][C]864.083[/C][C]639.466[/C][C]2569.45[/C][/ROW]
[ROW][C]16[/C][C]408[/C][C]521.112[/C][C]917.5[/C][C]-396.388[/C][C]-113.112[/C][/ROW]
[ROW][C]17[/C][C]224[/C][C]-23.6793[/C][C]1004.08[/C][C]-1027.76[/C][C]247.679[/C][/ROW]
[ROW][C]18[/C][C]312[/C][C]1074.78[/C][C]963.25[/C][C]111.529[/C][C]-762.779[/C][/ROW]
[ROW][C]19[/C][C]571[/C][C]312.025[/C][C]914.458[/C][C]-602.434[/C][C]258.975[/C][/ROW]
[ROW][C]20[/C][C]1336[/C][C]928.269[/C][C]895.792[/C][C]32.4769[/C][C]407.731[/C][/ROW]
[ROW][C]21[/C][C]586[/C][C]821.602[/C][C]722.167[/C][C]99.4352[/C][C]-235.602[/C][/ROW]
[ROW][C]22[/C][C]2279[/C][C]978.966[/C][C]556.125[/C][C]422.841[/C][C]1300.03[/C][/ROW]
[ROW][C]23[/C][C]239[/C][C]528.498[/C][C]564.833[/C][C]-36.3356[/C][C]-289.498[/C][/ROW]
[ROW][C]24[/C][C]198[/C][C]611.414[/C][C]571.75[/C][C]39.6644[/C][C]-413.414[/C][/ROW]
[ROW][C]25[/C][C]320[/C][C]334.456[/C][C]560.875[/C][C]-226.419[/C][C]-14.4561[/C][/ROW]
[ROW][C]26[/C][C]112[/C][C]1446.34[/C][C]502.417[/C][C]943.925[/C][C]-1334.34[/C][/ROW]
[ROW][C]27[/C][C]89[/C][C]1079.42[/C][C]439.958[/C][C]639.466[/C][C]-990.425[/C][/ROW]
[ROW][C]28[/C][C]407[/C][C]-34.096[/C][C]362.292[/C][C]-396.388[/C][C]441.096[/C][/ROW]
[ROW][C]29[/C][C]434[/C][C]-730.638[/C][C]297.125[/C][C]-1027.76[/C][C]1164.64[/C][/ROW]
[ROW][C]30[/C][C]268[/C][C]412.779[/C][C]301.25[/C][C]111.529[/C][C]-144.779[/C][/ROW]
[ROW][C]31[/C][C]354[/C][C]-286.767[/C][C]315.667[/C][C]-602.434[/C][C]640.767[/C][/ROW]
[ROW][C]32[/C][C]150[/C][C]591.769[/C][C]559.292[/C][C]32.4769[/C][C]-441.769[/C][/ROW]
[ROW][C]33[/C][C]273[/C][C]901.519[/C][C]802.083[/C][C]99.4352[/C][C]-628.519[/C][/ROW]
[ROW][C]34[/C][C]728[/C][C]1231.88[/C][C]809.042[/C][C]422.841[/C][C]-503.883[/C][/ROW]
[ROW][C]35[/C][C]226[/C][C]758.039[/C][C]794.375[/C][C]-36.3356[/C][C]-532.039[/C][/ROW]
[ROW][C]36[/C][C]310[/C][C]912.914[/C][C]873.25[/C][C]39.6644[/C][C]-602.914[/C][/ROW]
[ROW][C]37[/C][C]554[/C][C]767.081[/C][C]993.5[/C][C]-226.419[/C][C]-213.081[/C][/ROW]
[ROW][C]38[/C][C]5725[/C][C]1978.84[/C][C]1034.92[/C][C]943.925[/C][C]3746.16[/C][/ROW]
[ROW][C]39[/C][C]303[/C][C]1689.72[/C][C]1050.25[/C][C]639.466[/C][C]-1386.72[/C][/ROW]
[ROW][C]40[/C][C]360[/C][C]662.196[/C][C]1058.58[/C][C]-396.388[/C][C]-302.196[/C][/ROW]
[ROW][C]41[/C][C]129[/C][C]86.1957[/C][C]1113.96[/C][C]-1027.76[/C][C]42.8043[/C][/ROW]
[ROW][C]42[/C][C]2466[/C][C]1303.61[/C][C]1192.08[/C][C]111.529[/C][C]1162.39[/C][/ROW]
[ROW][C]43[/C][C]1042[/C][C]603.441[/C][C]1205.87[/C][C]-602.434[/C][C]438.559[/C][/ROW]
[ROW][C]44[/C][C]456[/C][C]994.435[/C][C]961.958[/C][C]32.4769[/C][C]-538.435[/C][/ROW]
[ROW][C]45[/C][C]335[/C][C]846.227[/C][C]746.792[/C][C]99.4352[/C][C]-511.227[/C][/ROW]
[ROW][C]46[/C][C]866[/C][C]1212.13[/C][C]789.292[/C][C]422.841[/C][C]-346.133[/C][/ROW]
[ROW][C]47[/C][C]1417[/C][C]788.248[/C][C]824.583[/C][C]-36.3356[/C][C]628.752[/C][/ROW]
[ROW][C]48[/C][C]994[/C][C]879.123[/C][C]839.458[/C][C]39.6644[/C][C]114.877[/C][/ROW]
[ROW][C]49[/C][C]201[/C][C]595.831[/C][C]822.25[/C][C]-226.419[/C][C]-394.831[/C][/ROW]
[ROW][C]50[/C][C]224[/C][C]1742.13[/C][C]798.208[/C][C]943.925[/C][C]-1518.13[/C][/ROW]
[ROW][C]51[/C][C]640[/C][C]1450.34[/C][C]810.875[/C][C]639.466[/C][C]-810.341[/C][/ROW]
[ROW][C]52[/C][C]1043[/C][C]1686.82[/C][C]2083.21[/C][C]-396.388[/C][C]-643.821[/C][/ROW]
[ROW][C]53[/C][C]293[/C][C]2366.15[/C][C]3393.92[/C][C]-1027.76[/C][C]-2073.15[/C][/ROW]
[ROW][C]54[/C][C]2659[/C][C]3531.86[/C][C]3420.33[/C][C]111.529[/C][C]-872.862[/C][/ROW]
[ROW][C]55[/C][C]436[/C][C]2808.27[/C][C]3410.71[/C][C]-602.434[/C][C]-2372.27[/C][/ROW]
[ROW][C]56[/C][C]485[/C][C]NA[/C][C]NA[/C][C]32.4769[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]610[/C][C]NA[/C][C]NA[/C][C]99.4352[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]31127[/C][C]NA[/C][C]NA[/C][C]422.841[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]2613[/C][C]NA[/C][C]NA[/C][C]-36.3356[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]432[/C][C]NA[/C][C]NA[/C][C]39.6644[/C][C]NA[/C][/ROW]
[ROW][C]61[/C][C]532[/C][C]NA[/C][C]NA[/C][C]-226.419[/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
1829NANA-226.419NA
2721NANA943.925NA
319NANA639.466NA
4311NANA-396.388NA
5264NANA-1027.76NA
6120NANA111.529NA
7135-126.434476-602.434261.434
8435480.56448.08332.4769-45.5602
91456698.685599.2599.4352757.315
101271195.05772.208422.841-1068.05
11313738.248774.583-36.3356-425.248
121104820.581780.91739.6644283.419
13585580.664807.083-226.4194.33559
142951806.72862.792943.925-1511.72
1540731503.55864.083639.4662569.45
16408521.112917.5-396.388-113.112
17224-23.67931004.08-1027.76247.679
183121074.78963.25111.529-762.779
19571312.025914.458-602.434258.975
201336928.269895.79232.4769407.731
21586821.602722.16799.4352-235.602
222279978.966556.125422.8411300.03
23239528.498564.833-36.3356-289.498
24198611.414571.7539.6644-413.414
25320334.456560.875-226.419-14.4561
261121446.34502.417943.925-1334.34
27891079.42439.958639.466-990.425
28407-34.096362.292-396.388441.096
29434-730.638297.125-1027.761164.64
30268412.779301.25111.529-144.779
31354-286.767315.667-602.434640.767
32150591.769559.29232.4769-441.769
33273901.519802.08399.4352-628.519
347281231.88809.042422.841-503.883
35226758.039794.375-36.3356-532.039
36310912.914873.2539.6644-602.914
37554767.081993.5-226.419-213.081
3857251978.841034.92943.9253746.16
393031689.721050.25639.466-1386.72
40360662.1961058.58-396.388-302.196
4112986.19571113.96-1027.7642.8043
4224661303.611192.08111.5291162.39
431042603.4411205.87-602.434438.559
44456994.435961.95832.4769-538.435
45335846.227746.79299.4352-511.227
468661212.13789.292422.841-346.133
471417788.248824.583-36.3356628.752
48994879.123839.45839.6644114.877
49201595.831822.25-226.419-394.831
502241742.13798.208943.925-1518.13
516401450.34810.875639.466-810.341
5210431686.822083.21-396.388-643.821
532932366.153393.92-1027.76-2073.15
5426593531.863420.33111.529-872.862
554362808.273410.71-602.434-2372.27
56485NANA32.4769NA
57610NANA99.4352NA
5831127NANA422.841NA
592613NANA-36.3356NA
60432NANA39.6644NA
61532NANA-226.419NA



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