Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationFri, 18 Dec 2015 11:01:17 +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/2015/Dec/18/t1450436676x4ro1jc29viuzlf.htm/, Retrieved Thu, 16 May 2024 22:33:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286875, Retrieved Thu, 16 May 2024 22:33:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Hypothese 4: Clas...] [2015-12-18 11:01:17] [18c782d74737b748f6df91564ed160d2] [Current]
Feedback Forum

Post a new message
Dataseries X:
63966
60410
59440
59445
57614
55396
53030
50090
48764
61658
63943
64878
60634
57905
57224
60953
60621
57258
54903
53278
53042
63753
69210
71446
68408
65427
64630
66086
65058
62689
60841
57346
56222
68202
70745
73690
68992
65925
65546
67221
65315
62038
58774
55320
53900
65544
67906
70911
66544
63657
61720
62140
60837
58632
54642
51125
51000
60486
62685
66142
61895




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

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







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
163966NANA3925.11NA
260410NANA981.535NA
359440NANA-1.03785NA
459445NANA1807.88NA
557614NANA690.941NA
655396NANA-2112.62NA
7530305305658080.7-5024.63-26.0413
85009049915.457837.5-7922.07174.611
94876448634.657640.7-9006.14129.392
106165860360.557611.22749.291297.46
116394363648.857799.45849.39294.236
126487866064.658002.28062.36-1186.61
13606346208358157.93925.11-1448.98
145790559350.358368.7981.535-1445.29
155722458678.858679.8-1.03785-1454.8
166095360753.358945.41807.88199.746
176062159943.159252.1690.941677.934
185725857632.659745.2-2112.62-374.629
195490355318.260342.8-5024.63-415.208
205327853058.160980.2-7922.07219.902
21530425259661602.2-9006.14445.975
226375364873.962124.62749.29-1120.91
236921068372.862523.45849.39837.236
247144670996.962934.58062.36449.1
256840867333.463408.23925.111074.64
266542764806.763825.2981.535620.298
276463064126.164127.2-1.03785503.871
286608666252.9644451807.88-166.92
296505865385.364694.4690.941-327.316
306268962739.264851.8-2112.62-50.2122
31608415994564969.7-5024.63895.959
325734657092.765014.8-7922.07253.319
335622256067.565073.7-9006.14154.475
346820267908.465159.12749.29293.59
357074571066.565217.15849.39-321.514
367369073263.165200.78062.36426.934
376899269012.665087.53925.11-20.5663
386592565898.564916.9981.53526.5483
396554664734.764735.8-1.03785811.288
406722166336.164528.21807.88884.871
416531564990.164299.2690.941324.85
426203861952.564065.1-2112.6285.4962
435877458822.763847.3-5024.63-48.708
445532055728.863650.8-7922.07-408.764
455390054390.863396.9-9006.14-490.775
466554465775.163025.82749.29-231.077
476790668476.962627.55849.39-570.889
487091170361.4622998062.36549.642
49665446591061984.93925.11633.975
506365762619.561638981.5351037.51
516172061341.361342.3-1.03785378.705
526214062818.661010.81807.88-678.629
536083761273.460582.5690.941-436.4
545863258053.660166.2-2112.62578.413
555464254749.259773.8-5024.63-107.166
5651125NANA-7922.07NA
5751000NANA-9006.14NA
5860486NANA2749.29NA
5962685NANA5849.39NA
6066142NANA8062.36NA
6161895NANA3925.11NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 63966 & NA & NA & 3925.11 & NA \tabularnewline
2 & 60410 & NA & NA & 981.535 & NA \tabularnewline
3 & 59440 & NA & NA & -1.03785 & NA \tabularnewline
4 & 59445 & NA & NA & 1807.88 & NA \tabularnewline
5 & 57614 & NA & NA & 690.941 & NA \tabularnewline
6 & 55396 & NA & NA & -2112.62 & NA \tabularnewline
7 & 53030 & 53056 & 58080.7 & -5024.63 & -26.0413 \tabularnewline
8 & 50090 & 49915.4 & 57837.5 & -7922.07 & 174.611 \tabularnewline
9 & 48764 & 48634.6 & 57640.7 & -9006.14 & 129.392 \tabularnewline
10 & 61658 & 60360.5 & 57611.2 & 2749.29 & 1297.46 \tabularnewline
11 & 63943 & 63648.8 & 57799.4 & 5849.39 & 294.236 \tabularnewline
12 & 64878 & 66064.6 & 58002.2 & 8062.36 & -1186.61 \tabularnewline
13 & 60634 & 62083 & 58157.9 & 3925.11 & -1448.98 \tabularnewline
14 & 57905 & 59350.3 & 58368.7 & 981.535 & -1445.29 \tabularnewline
15 & 57224 & 58678.8 & 58679.8 & -1.03785 & -1454.8 \tabularnewline
16 & 60953 & 60753.3 & 58945.4 & 1807.88 & 199.746 \tabularnewline
17 & 60621 & 59943.1 & 59252.1 & 690.941 & 677.934 \tabularnewline
18 & 57258 & 57632.6 & 59745.2 & -2112.62 & -374.629 \tabularnewline
19 & 54903 & 55318.2 & 60342.8 & -5024.63 & -415.208 \tabularnewline
20 & 53278 & 53058.1 & 60980.2 & -7922.07 & 219.902 \tabularnewline
21 & 53042 & 52596 & 61602.2 & -9006.14 & 445.975 \tabularnewline
22 & 63753 & 64873.9 & 62124.6 & 2749.29 & -1120.91 \tabularnewline
23 & 69210 & 68372.8 & 62523.4 & 5849.39 & 837.236 \tabularnewline
24 & 71446 & 70996.9 & 62934.5 & 8062.36 & 449.1 \tabularnewline
25 & 68408 & 67333.4 & 63408.2 & 3925.11 & 1074.64 \tabularnewline
26 & 65427 & 64806.7 & 63825.2 & 981.535 & 620.298 \tabularnewline
27 & 64630 & 64126.1 & 64127.2 & -1.03785 & 503.871 \tabularnewline
28 & 66086 & 66252.9 & 64445 & 1807.88 & -166.92 \tabularnewline
29 & 65058 & 65385.3 & 64694.4 & 690.941 & -327.316 \tabularnewline
30 & 62689 & 62739.2 & 64851.8 & -2112.62 & -50.2122 \tabularnewline
31 & 60841 & 59945 & 64969.7 & -5024.63 & 895.959 \tabularnewline
32 & 57346 & 57092.7 & 65014.8 & -7922.07 & 253.319 \tabularnewline
33 & 56222 & 56067.5 & 65073.7 & -9006.14 & 154.475 \tabularnewline
34 & 68202 & 67908.4 & 65159.1 & 2749.29 & 293.59 \tabularnewline
35 & 70745 & 71066.5 & 65217.1 & 5849.39 & -321.514 \tabularnewline
36 & 73690 & 73263.1 & 65200.7 & 8062.36 & 426.934 \tabularnewline
37 & 68992 & 69012.6 & 65087.5 & 3925.11 & -20.5663 \tabularnewline
38 & 65925 & 65898.5 & 64916.9 & 981.535 & 26.5483 \tabularnewline
39 & 65546 & 64734.7 & 64735.8 & -1.03785 & 811.288 \tabularnewline
40 & 67221 & 66336.1 & 64528.2 & 1807.88 & 884.871 \tabularnewline
41 & 65315 & 64990.1 & 64299.2 & 690.941 & 324.85 \tabularnewline
42 & 62038 & 61952.5 & 64065.1 & -2112.62 & 85.4962 \tabularnewline
43 & 58774 & 58822.7 & 63847.3 & -5024.63 & -48.708 \tabularnewline
44 & 55320 & 55728.8 & 63650.8 & -7922.07 & -408.764 \tabularnewline
45 & 53900 & 54390.8 & 63396.9 & -9006.14 & -490.775 \tabularnewline
46 & 65544 & 65775.1 & 63025.8 & 2749.29 & -231.077 \tabularnewline
47 & 67906 & 68476.9 & 62627.5 & 5849.39 & -570.889 \tabularnewline
48 & 70911 & 70361.4 & 62299 & 8062.36 & 549.642 \tabularnewline
49 & 66544 & 65910 & 61984.9 & 3925.11 & 633.975 \tabularnewline
50 & 63657 & 62619.5 & 61638 & 981.535 & 1037.51 \tabularnewline
51 & 61720 & 61341.3 & 61342.3 & -1.03785 & 378.705 \tabularnewline
52 & 62140 & 62818.6 & 61010.8 & 1807.88 & -678.629 \tabularnewline
53 & 60837 & 61273.4 & 60582.5 & 690.941 & -436.4 \tabularnewline
54 & 58632 & 58053.6 & 60166.2 & -2112.62 & 578.413 \tabularnewline
55 & 54642 & 54749.2 & 59773.8 & -5024.63 & -107.166 \tabularnewline
56 & 51125 & NA & NA & -7922.07 & NA \tabularnewline
57 & 51000 & NA & NA & -9006.14 & NA \tabularnewline
58 & 60486 & NA & NA & 2749.29 & NA \tabularnewline
59 & 62685 & NA & NA & 5849.39 & NA \tabularnewline
60 & 66142 & NA & NA & 8062.36 & NA \tabularnewline
61 & 61895 & NA & NA & 3925.11 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286875&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]63966[/C][C]NA[/C][C]NA[/C][C]3925.11[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]60410[/C][C]NA[/C][C]NA[/C][C]981.535[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]59440[/C][C]NA[/C][C]NA[/C][C]-1.03785[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]59445[/C][C]NA[/C][C]NA[/C][C]1807.88[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]57614[/C][C]NA[/C][C]NA[/C][C]690.941[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]55396[/C][C]NA[/C][C]NA[/C][C]-2112.62[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]53030[/C][C]53056[/C][C]58080.7[/C][C]-5024.63[/C][C]-26.0413[/C][/ROW]
[ROW][C]8[/C][C]50090[/C][C]49915.4[/C][C]57837.5[/C][C]-7922.07[/C][C]174.611[/C][/ROW]
[ROW][C]9[/C][C]48764[/C][C]48634.6[/C][C]57640.7[/C][C]-9006.14[/C][C]129.392[/C][/ROW]
[ROW][C]10[/C][C]61658[/C][C]60360.5[/C][C]57611.2[/C][C]2749.29[/C][C]1297.46[/C][/ROW]
[ROW][C]11[/C][C]63943[/C][C]63648.8[/C][C]57799.4[/C][C]5849.39[/C][C]294.236[/C][/ROW]
[ROW][C]12[/C][C]64878[/C][C]66064.6[/C][C]58002.2[/C][C]8062.36[/C][C]-1186.61[/C][/ROW]
[ROW][C]13[/C][C]60634[/C][C]62083[/C][C]58157.9[/C][C]3925.11[/C][C]-1448.98[/C][/ROW]
[ROW][C]14[/C][C]57905[/C][C]59350.3[/C][C]58368.7[/C][C]981.535[/C][C]-1445.29[/C][/ROW]
[ROW][C]15[/C][C]57224[/C][C]58678.8[/C][C]58679.8[/C][C]-1.03785[/C][C]-1454.8[/C][/ROW]
[ROW][C]16[/C][C]60953[/C][C]60753.3[/C][C]58945.4[/C][C]1807.88[/C][C]199.746[/C][/ROW]
[ROW][C]17[/C][C]60621[/C][C]59943.1[/C][C]59252.1[/C][C]690.941[/C][C]677.934[/C][/ROW]
[ROW][C]18[/C][C]57258[/C][C]57632.6[/C][C]59745.2[/C][C]-2112.62[/C][C]-374.629[/C][/ROW]
[ROW][C]19[/C][C]54903[/C][C]55318.2[/C][C]60342.8[/C][C]-5024.63[/C][C]-415.208[/C][/ROW]
[ROW][C]20[/C][C]53278[/C][C]53058.1[/C][C]60980.2[/C][C]-7922.07[/C][C]219.902[/C][/ROW]
[ROW][C]21[/C][C]53042[/C][C]52596[/C][C]61602.2[/C][C]-9006.14[/C][C]445.975[/C][/ROW]
[ROW][C]22[/C][C]63753[/C][C]64873.9[/C][C]62124.6[/C][C]2749.29[/C][C]-1120.91[/C][/ROW]
[ROW][C]23[/C][C]69210[/C][C]68372.8[/C][C]62523.4[/C][C]5849.39[/C][C]837.236[/C][/ROW]
[ROW][C]24[/C][C]71446[/C][C]70996.9[/C][C]62934.5[/C][C]8062.36[/C][C]449.1[/C][/ROW]
[ROW][C]25[/C][C]68408[/C][C]67333.4[/C][C]63408.2[/C][C]3925.11[/C][C]1074.64[/C][/ROW]
[ROW][C]26[/C][C]65427[/C][C]64806.7[/C][C]63825.2[/C][C]981.535[/C][C]620.298[/C][/ROW]
[ROW][C]27[/C][C]64630[/C][C]64126.1[/C][C]64127.2[/C][C]-1.03785[/C][C]503.871[/C][/ROW]
[ROW][C]28[/C][C]66086[/C][C]66252.9[/C][C]64445[/C][C]1807.88[/C][C]-166.92[/C][/ROW]
[ROW][C]29[/C][C]65058[/C][C]65385.3[/C][C]64694.4[/C][C]690.941[/C][C]-327.316[/C][/ROW]
[ROW][C]30[/C][C]62689[/C][C]62739.2[/C][C]64851.8[/C][C]-2112.62[/C][C]-50.2122[/C][/ROW]
[ROW][C]31[/C][C]60841[/C][C]59945[/C][C]64969.7[/C][C]-5024.63[/C][C]895.959[/C][/ROW]
[ROW][C]32[/C][C]57346[/C][C]57092.7[/C][C]65014.8[/C][C]-7922.07[/C][C]253.319[/C][/ROW]
[ROW][C]33[/C][C]56222[/C][C]56067.5[/C][C]65073.7[/C][C]-9006.14[/C][C]154.475[/C][/ROW]
[ROW][C]34[/C][C]68202[/C][C]67908.4[/C][C]65159.1[/C][C]2749.29[/C][C]293.59[/C][/ROW]
[ROW][C]35[/C][C]70745[/C][C]71066.5[/C][C]65217.1[/C][C]5849.39[/C][C]-321.514[/C][/ROW]
[ROW][C]36[/C][C]73690[/C][C]73263.1[/C][C]65200.7[/C][C]8062.36[/C][C]426.934[/C][/ROW]
[ROW][C]37[/C][C]68992[/C][C]69012.6[/C][C]65087.5[/C][C]3925.11[/C][C]-20.5663[/C][/ROW]
[ROW][C]38[/C][C]65925[/C][C]65898.5[/C][C]64916.9[/C][C]981.535[/C][C]26.5483[/C][/ROW]
[ROW][C]39[/C][C]65546[/C][C]64734.7[/C][C]64735.8[/C][C]-1.03785[/C][C]811.288[/C][/ROW]
[ROW][C]40[/C][C]67221[/C][C]66336.1[/C][C]64528.2[/C][C]1807.88[/C][C]884.871[/C][/ROW]
[ROW][C]41[/C][C]65315[/C][C]64990.1[/C][C]64299.2[/C][C]690.941[/C][C]324.85[/C][/ROW]
[ROW][C]42[/C][C]62038[/C][C]61952.5[/C][C]64065.1[/C][C]-2112.62[/C][C]85.4962[/C][/ROW]
[ROW][C]43[/C][C]58774[/C][C]58822.7[/C][C]63847.3[/C][C]-5024.63[/C][C]-48.708[/C][/ROW]
[ROW][C]44[/C][C]55320[/C][C]55728.8[/C][C]63650.8[/C][C]-7922.07[/C][C]-408.764[/C][/ROW]
[ROW][C]45[/C][C]53900[/C][C]54390.8[/C][C]63396.9[/C][C]-9006.14[/C][C]-490.775[/C][/ROW]
[ROW][C]46[/C][C]65544[/C][C]65775.1[/C][C]63025.8[/C][C]2749.29[/C][C]-231.077[/C][/ROW]
[ROW][C]47[/C][C]67906[/C][C]68476.9[/C][C]62627.5[/C][C]5849.39[/C][C]-570.889[/C][/ROW]
[ROW][C]48[/C][C]70911[/C][C]70361.4[/C][C]62299[/C][C]8062.36[/C][C]549.642[/C][/ROW]
[ROW][C]49[/C][C]66544[/C][C]65910[/C][C]61984.9[/C][C]3925.11[/C][C]633.975[/C][/ROW]
[ROW][C]50[/C][C]63657[/C][C]62619.5[/C][C]61638[/C][C]981.535[/C][C]1037.51[/C][/ROW]
[ROW][C]51[/C][C]61720[/C][C]61341.3[/C][C]61342.3[/C][C]-1.03785[/C][C]378.705[/C][/ROW]
[ROW][C]52[/C][C]62140[/C][C]62818.6[/C][C]61010.8[/C][C]1807.88[/C][C]-678.629[/C][/ROW]
[ROW][C]53[/C][C]60837[/C][C]61273.4[/C][C]60582.5[/C][C]690.941[/C][C]-436.4[/C][/ROW]
[ROW][C]54[/C][C]58632[/C][C]58053.6[/C][C]60166.2[/C][C]-2112.62[/C][C]578.413[/C][/ROW]
[ROW][C]55[/C][C]54642[/C][C]54749.2[/C][C]59773.8[/C][C]-5024.63[/C][C]-107.166[/C][/ROW]
[ROW][C]56[/C][C]51125[/C][C]NA[/C][C]NA[/C][C]-7922.07[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]51000[/C][C]NA[/C][C]NA[/C][C]-9006.14[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]60486[/C][C]NA[/C][C]NA[/C][C]2749.29[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]62685[/C][C]NA[/C][C]NA[/C][C]5849.39[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]66142[/C][C]NA[/C][C]NA[/C][C]8062.36[/C][C]NA[/C][/ROW]
[ROW][C]61[/C][C]61895[/C][C]NA[/C][C]NA[/C][C]3925.11[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286875&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286875&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
163966NANA3925.11NA
260410NANA981.535NA
359440NANA-1.03785NA
459445NANA1807.88NA
557614NANA690.941NA
655396NANA-2112.62NA
7530305305658080.7-5024.63-26.0413
85009049915.457837.5-7922.07174.611
94876448634.657640.7-9006.14129.392
106165860360.557611.22749.291297.46
116394363648.857799.45849.39294.236
126487866064.658002.28062.36-1186.61
13606346208358157.93925.11-1448.98
145790559350.358368.7981.535-1445.29
155722458678.858679.8-1.03785-1454.8
166095360753.358945.41807.88199.746
176062159943.159252.1690.941677.934
185725857632.659745.2-2112.62-374.629
195490355318.260342.8-5024.63-415.208
205327853058.160980.2-7922.07219.902
21530425259661602.2-9006.14445.975
226375364873.962124.62749.29-1120.91
236921068372.862523.45849.39837.236
247144670996.962934.58062.36449.1
256840867333.463408.23925.111074.64
266542764806.763825.2981.535620.298
276463064126.164127.2-1.03785503.871
286608666252.9644451807.88-166.92
296505865385.364694.4690.941-327.316
306268962739.264851.8-2112.62-50.2122
31608415994564969.7-5024.63895.959
325734657092.765014.8-7922.07253.319
335622256067.565073.7-9006.14154.475
346820267908.465159.12749.29293.59
357074571066.565217.15849.39-321.514
367369073263.165200.78062.36426.934
376899269012.665087.53925.11-20.5663
386592565898.564916.9981.53526.5483
396554664734.764735.8-1.03785811.288
406722166336.164528.21807.88884.871
416531564990.164299.2690.941324.85
426203861952.564065.1-2112.6285.4962
435877458822.763847.3-5024.63-48.708
445532055728.863650.8-7922.07-408.764
455390054390.863396.9-9006.14-490.775
466554465775.163025.82749.29-231.077
476790668476.962627.55849.39-570.889
487091170361.4622998062.36549.642
49665446591061984.93925.11633.975
506365762619.561638981.5351037.51
516172061341.361342.3-1.03785378.705
526214062818.661010.81807.88-678.629
536083761273.460582.5690.941-436.4
545863258053.660166.2-2112.62578.413
555464254749.259773.8-5024.63-107.166
5651125NANA-7922.07NA
5751000NANA-9006.14NA
5860486NANA2749.29NA
5962685NANA5849.39NA
6066142NANA8062.36NA
6161895NANA3925.11NA



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