Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 02 May 2017 11:49:29 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2017/May/02/t14937222020oyj8c2dioqk3n7.htm/, Retrieved Fri, 17 May 2024 03:43:36 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Fri, 17 May 2024 03:43:36 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
8899
8899
9093
9093
9093
9116
9116
9116
10073
10073
10073
9223
9223
9223
9151
9151
9151
6727
6727
6727
7232
7232
7232
6370
6370
6370
6862
6862
6862
7029
7029
7029
7031
7031
7031
7223
7223
7223
8065
8065
8065
7657
7657
7657
7328
7328
7328
7115
7115
7115
7926
7926
7926
8681
8681
8681
8670
8670
8670
8028
8028




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.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]4 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=&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 time4 seconds
R Server'George Udny Yule' @ yule.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
18899NANA0.963917NA
28899NANA0.964458NA
39093NANA1.03656NA
49093NANA1.04012NA
59093NANA1.04421NA
69116NANA0.988066NA
791169216.979335.750.9872770.989045
891169114.899362.750.9735271.00012
9100739463.939378.671.009091.06436
10100739501.389383.51.012561.06016
11100739543.259388.331.01651.05551
1292238954.019291.210.9637081.03004
1392238764.059092.120.9639171.05237
1492238576.968893.040.9644581.07532
1591518992.318675.121.036561.01765
1691518776.918438.371.040121.04262
1791518564.238201.621.044211.06851
1867277869.327964.370.9880660.854838
1967277628.327726.620.9872770.881846
2067277290.627488.870.9735270.922692
2172327340.767274.621.009090.985184
2272327172.877083.871.012561.00824
2372327006.876893.121.01651.03213
2463706563.176810.330.9637080.970567
2563706588.856835.50.9639170.966784
2663706616.826860.670.9644580.962697
2768627115.876864.871.036560.964323
2868627122.866848.121.040120.963376
2968627133.46831.371.044210.961954
3070296776.696858.540.9880661.03723
3170296841.466929.620.9872771.02741
3270296815.387000.710.9735271.03134
3370317150.87086.371.009090.983247
3470317276.917186.621.012560.966207
3570317407.127286.881.01650.949222
3672237095.947363.170.9637081.01791
3772237147.927415.50.9639171.0105
3872237202.417467.830.9644581.00286
3980657780.837506.381.036561.03652
4080657833.277531.121.040121.02958
4180657889.937555.871.044211.02219
4276577473.487563.750.9880661.02456
4376577458.637554.750.9872771.0266
4476577345.997545.750.9735271.04234
4573287603.977535.461.009090.963708
4673287618.47523.871.012560.961882
4773287636.257512.291.01650.959633
4871157275.197549.170.9637080.977981
4971157359.027634.50.9639170.96684
5071157445.457719.830.9644580.955617
5179268104.287818.421.036560.978002
5279268248.47930.251.040120.960913
5379268397.638042.081.044210.943837
5486818038.948136.040.9880661.07987
5586818107.648212.120.9872771.07072
568681NANA0.973527NA
578670NANA1.00909NA
588670NANA1.01256NA
598670NANA1.0165NA
608028NANA0.963708NA
618028NANA0.963917NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 8899 & NA & NA & 0.963917 & NA \tabularnewline
2 & 8899 & NA & NA & 0.964458 & NA \tabularnewline
3 & 9093 & NA & NA & 1.03656 & NA \tabularnewline
4 & 9093 & NA & NA & 1.04012 & NA \tabularnewline
5 & 9093 & NA & NA & 1.04421 & NA \tabularnewline
6 & 9116 & NA & NA & 0.988066 & NA \tabularnewline
7 & 9116 & 9216.97 & 9335.75 & 0.987277 & 0.989045 \tabularnewline
8 & 9116 & 9114.89 & 9362.75 & 0.973527 & 1.00012 \tabularnewline
9 & 10073 & 9463.93 & 9378.67 & 1.00909 & 1.06436 \tabularnewline
10 & 10073 & 9501.38 & 9383.5 & 1.01256 & 1.06016 \tabularnewline
11 & 10073 & 9543.25 & 9388.33 & 1.0165 & 1.05551 \tabularnewline
12 & 9223 & 8954.01 & 9291.21 & 0.963708 & 1.03004 \tabularnewline
13 & 9223 & 8764.05 & 9092.12 & 0.963917 & 1.05237 \tabularnewline
14 & 9223 & 8576.96 & 8893.04 & 0.964458 & 1.07532 \tabularnewline
15 & 9151 & 8992.31 & 8675.12 & 1.03656 & 1.01765 \tabularnewline
16 & 9151 & 8776.91 & 8438.37 & 1.04012 & 1.04262 \tabularnewline
17 & 9151 & 8564.23 & 8201.62 & 1.04421 & 1.06851 \tabularnewline
18 & 6727 & 7869.32 & 7964.37 & 0.988066 & 0.854838 \tabularnewline
19 & 6727 & 7628.32 & 7726.62 & 0.987277 & 0.881846 \tabularnewline
20 & 6727 & 7290.62 & 7488.87 & 0.973527 & 0.922692 \tabularnewline
21 & 7232 & 7340.76 & 7274.62 & 1.00909 & 0.985184 \tabularnewline
22 & 7232 & 7172.87 & 7083.87 & 1.01256 & 1.00824 \tabularnewline
23 & 7232 & 7006.87 & 6893.12 & 1.0165 & 1.03213 \tabularnewline
24 & 6370 & 6563.17 & 6810.33 & 0.963708 & 0.970567 \tabularnewline
25 & 6370 & 6588.85 & 6835.5 & 0.963917 & 0.966784 \tabularnewline
26 & 6370 & 6616.82 & 6860.67 & 0.964458 & 0.962697 \tabularnewline
27 & 6862 & 7115.87 & 6864.87 & 1.03656 & 0.964323 \tabularnewline
28 & 6862 & 7122.86 & 6848.12 & 1.04012 & 0.963376 \tabularnewline
29 & 6862 & 7133.4 & 6831.37 & 1.04421 & 0.961954 \tabularnewline
30 & 7029 & 6776.69 & 6858.54 & 0.988066 & 1.03723 \tabularnewline
31 & 7029 & 6841.46 & 6929.62 & 0.987277 & 1.02741 \tabularnewline
32 & 7029 & 6815.38 & 7000.71 & 0.973527 & 1.03134 \tabularnewline
33 & 7031 & 7150.8 & 7086.37 & 1.00909 & 0.983247 \tabularnewline
34 & 7031 & 7276.91 & 7186.62 & 1.01256 & 0.966207 \tabularnewline
35 & 7031 & 7407.12 & 7286.88 & 1.0165 & 0.949222 \tabularnewline
36 & 7223 & 7095.94 & 7363.17 & 0.963708 & 1.01791 \tabularnewline
37 & 7223 & 7147.92 & 7415.5 & 0.963917 & 1.0105 \tabularnewline
38 & 7223 & 7202.41 & 7467.83 & 0.964458 & 1.00286 \tabularnewline
39 & 8065 & 7780.83 & 7506.38 & 1.03656 & 1.03652 \tabularnewline
40 & 8065 & 7833.27 & 7531.12 & 1.04012 & 1.02958 \tabularnewline
41 & 8065 & 7889.93 & 7555.87 & 1.04421 & 1.02219 \tabularnewline
42 & 7657 & 7473.48 & 7563.75 & 0.988066 & 1.02456 \tabularnewline
43 & 7657 & 7458.63 & 7554.75 & 0.987277 & 1.0266 \tabularnewline
44 & 7657 & 7345.99 & 7545.75 & 0.973527 & 1.04234 \tabularnewline
45 & 7328 & 7603.97 & 7535.46 & 1.00909 & 0.963708 \tabularnewline
46 & 7328 & 7618.4 & 7523.87 & 1.01256 & 0.961882 \tabularnewline
47 & 7328 & 7636.25 & 7512.29 & 1.0165 & 0.959633 \tabularnewline
48 & 7115 & 7275.19 & 7549.17 & 0.963708 & 0.977981 \tabularnewline
49 & 7115 & 7359.02 & 7634.5 & 0.963917 & 0.96684 \tabularnewline
50 & 7115 & 7445.45 & 7719.83 & 0.964458 & 0.955617 \tabularnewline
51 & 7926 & 8104.28 & 7818.42 & 1.03656 & 0.978002 \tabularnewline
52 & 7926 & 8248.4 & 7930.25 & 1.04012 & 0.960913 \tabularnewline
53 & 7926 & 8397.63 & 8042.08 & 1.04421 & 0.943837 \tabularnewline
54 & 8681 & 8038.94 & 8136.04 & 0.988066 & 1.07987 \tabularnewline
55 & 8681 & 8107.64 & 8212.12 & 0.987277 & 1.07072 \tabularnewline
56 & 8681 & NA & NA & 0.973527 & NA \tabularnewline
57 & 8670 & NA & NA & 1.00909 & NA \tabularnewline
58 & 8670 & NA & NA & 1.01256 & NA \tabularnewline
59 & 8670 & NA & NA & 1.0165 & NA \tabularnewline
60 & 8028 & NA & NA & 0.963708 & NA \tabularnewline
61 & 8028 & NA & NA & 0.963917 & 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]8899[/C][C]NA[/C][C]NA[/C][C]0.963917[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]8899[/C][C]NA[/C][C]NA[/C][C]0.964458[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]9093[/C][C]NA[/C][C]NA[/C][C]1.03656[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]9093[/C][C]NA[/C][C]NA[/C][C]1.04012[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]9093[/C][C]NA[/C][C]NA[/C][C]1.04421[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]9116[/C][C]NA[/C][C]NA[/C][C]0.988066[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]9116[/C][C]9216.97[/C][C]9335.75[/C][C]0.987277[/C][C]0.989045[/C][/ROW]
[ROW][C]8[/C][C]9116[/C][C]9114.89[/C][C]9362.75[/C][C]0.973527[/C][C]1.00012[/C][/ROW]
[ROW][C]9[/C][C]10073[/C][C]9463.93[/C][C]9378.67[/C][C]1.00909[/C][C]1.06436[/C][/ROW]
[ROW][C]10[/C][C]10073[/C][C]9501.38[/C][C]9383.5[/C][C]1.01256[/C][C]1.06016[/C][/ROW]
[ROW][C]11[/C][C]10073[/C][C]9543.25[/C][C]9388.33[/C][C]1.0165[/C][C]1.05551[/C][/ROW]
[ROW][C]12[/C][C]9223[/C][C]8954.01[/C][C]9291.21[/C][C]0.963708[/C][C]1.03004[/C][/ROW]
[ROW][C]13[/C][C]9223[/C][C]8764.05[/C][C]9092.12[/C][C]0.963917[/C][C]1.05237[/C][/ROW]
[ROW][C]14[/C][C]9223[/C][C]8576.96[/C][C]8893.04[/C][C]0.964458[/C][C]1.07532[/C][/ROW]
[ROW][C]15[/C][C]9151[/C][C]8992.31[/C][C]8675.12[/C][C]1.03656[/C][C]1.01765[/C][/ROW]
[ROW][C]16[/C][C]9151[/C][C]8776.91[/C][C]8438.37[/C][C]1.04012[/C][C]1.04262[/C][/ROW]
[ROW][C]17[/C][C]9151[/C][C]8564.23[/C][C]8201.62[/C][C]1.04421[/C][C]1.06851[/C][/ROW]
[ROW][C]18[/C][C]6727[/C][C]7869.32[/C][C]7964.37[/C][C]0.988066[/C][C]0.854838[/C][/ROW]
[ROW][C]19[/C][C]6727[/C][C]7628.32[/C][C]7726.62[/C][C]0.987277[/C][C]0.881846[/C][/ROW]
[ROW][C]20[/C][C]6727[/C][C]7290.62[/C][C]7488.87[/C][C]0.973527[/C][C]0.922692[/C][/ROW]
[ROW][C]21[/C][C]7232[/C][C]7340.76[/C][C]7274.62[/C][C]1.00909[/C][C]0.985184[/C][/ROW]
[ROW][C]22[/C][C]7232[/C][C]7172.87[/C][C]7083.87[/C][C]1.01256[/C][C]1.00824[/C][/ROW]
[ROW][C]23[/C][C]7232[/C][C]7006.87[/C][C]6893.12[/C][C]1.0165[/C][C]1.03213[/C][/ROW]
[ROW][C]24[/C][C]6370[/C][C]6563.17[/C][C]6810.33[/C][C]0.963708[/C][C]0.970567[/C][/ROW]
[ROW][C]25[/C][C]6370[/C][C]6588.85[/C][C]6835.5[/C][C]0.963917[/C][C]0.966784[/C][/ROW]
[ROW][C]26[/C][C]6370[/C][C]6616.82[/C][C]6860.67[/C][C]0.964458[/C][C]0.962697[/C][/ROW]
[ROW][C]27[/C][C]6862[/C][C]7115.87[/C][C]6864.87[/C][C]1.03656[/C][C]0.964323[/C][/ROW]
[ROW][C]28[/C][C]6862[/C][C]7122.86[/C][C]6848.12[/C][C]1.04012[/C][C]0.963376[/C][/ROW]
[ROW][C]29[/C][C]6862[/C][C]7133.4[/C][C]6831.37[/C][C]1.04421[/C][C]0.961954[/C][/ROW]
[ROW][C]30[/C][C]7029[/C][C]6776.69[/C][C]6858.54[/C][C]0.988066[/C][C]1.03723[/C][/ROW]
[ROW][C]31[/C][C]7029[/C][C]6841.46[/C][C]6929.62[/C][C]0.987277[/C][C]1.02741[/C][/ROW]
[ROW][C]32[/C][C]7029[/C][C]6815.38[/C][C]7000.71[/C][C]0.973527[/C][C]1.03134[/C][/ROW]
[ROW][C]33[/C][C]7031[/C][C]7150.8[/C][C]7086.37[/C][C]1.00909[/C][C]0.983247[/C][/ROW]
[ROW][C]34[/C][C]7031[/C][C]7276.91[/C][C]7186.62[/C][C]1.01256[/C][C]0.966207[/C][/ROW]
[ROW][C]35[/C][C]7031[/C][C]7407.12[/C][C]7286.88[/C][C]1.0165[/C][C]0.949222[/C][/ROW]
[ROW][C]36[/C][C]7223[/C][C]7095.94[/C][C]7363.17[/C][C]0.963708[/C][C]1.01791[/C][/ROW]
[ROW][C]37[/C][C]7223[/C][C]7147.92[/C][C]7415.5[/C][C]0.963917[/C][C]1.0105[/C][/ROW]
[ROW][C]38[/C][C]7223[/C][C]7202.41[/C][C]7467.83[/C][C]0.964458[/C][C]1.00286[/C][/ROW]
[ROW][C]39[/C][C]8065[/C][C]7780.83[/C][C]7506.38[/C][C]1.03656[/C][C]1.03652[/C][/ROW]
[ROW][C]40[/C][C]8065[/C][C]7833.27[/C][C]7531.12[/C][C]1.04012[/C][C]1.02958[/C][/ROW]
[ROW][C]41[/C][C]8065[/C][C]7889.93[/C][C]7555.87[/C][C]1.04421[/C][C]1.02219[/C][/ROW]
[ROW][C]42[/C][C]7657[/C][C]7473.48[/C][C]7563.75[/C][C]0.988066[/C][C]1.02456[/C][/ROW]
[ROW][C]43[/C][C]7657[/C][C]7458.63[/C][C]7554.75[/C][C]0.987277[/C][C]1.0266[/C][/ROW]
[ROW][C]44[/C][C]7657[/C][C]7345.99[/C][C]7545.75[/C][C]0.973527[/C][C]1.04234[/C][/ROW]
[ROW][C]45[/C][C]7328[/C][C]7603.97[/C][C]7535.46[/C][C]1.00909[/C][C]0.963708[/C][/ROW]
[ROW][C]46[/C][C]7328[/C][C]7618.4[/C][C]7523.87[/C][C]1.01256[/C][C]0.961882[/C][/ROW]
[ROW][C]47[/C][C]7328[/C][C]7636.25[/C][C]7512.29[/C][C]1.0165[/C][C]0.959633[/C][/ROW]
[ROW][C]48[/C][C]7115[/C][C]7275.19[/C][C]7549.17[/C][C]0.963708[/C][C]0.977981[/C][/ROW]
[ROW][C]49[/C][C]7115[/C][C]7359.02[/C][C]7634.5[/C][C]0.963917[/C][C]0.96684[/C][/ROW]
[ROW][C]50[/C][C]7115[/C][C]7445.45[/C][C]7719.83[/C][C]0.964458[/C][C]0.955617[/C][/ROW]
[ROW][C]51[/C][C]7926[/C][C]8104.28[/C][C]7818.42[/C][C]1.03656[/C][C]0.978002[/C][/ROW]
[ROW][C]52[/C][C]7926[/C][C]8248.4[/C][C]7930.25[/C][C]1.04012[/C][C]0.960913[/C][/ROW]
[ROW][C]53[/C][C]7926[/C][C]8397.63[/C][C]8042.08[/C][C]1.04421[/C][C]0.943837[/C][/ROW]
[ROW][C]54[/C][C]8681[/C][C]8038.94[/C][C]8136.04[/C][C]0.988066[/C][C]1.07987[/C][/ROW]
[ROW][C]55[/C][C]8681[/C][C]8107.64[/C][C]8212.12[/C][C]0.987277[/C][C]1.07072[/C][/ROW]
[ROW][C]56[/C][C]8681[/C][C]NA[/C][C]NA[/C][C]0.973527[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]8670[/C][C]NA[/C][C]NA[/C][C]1.00909[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]8670[/C][C]NA[/C][C]NA[/C][C]1.01256[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]8670[/C][C]NA[/C][C]NA[/C][C]1.0165[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]8028[/C][C]NA[/C][C]NA[/C][C]0.963708[/C][C]NA[/C][/ROW]
[ROW][C]61[/C][C]8028[/C][C]NA[/C][C]NA[/C][C]0.963917[/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
18899NANA0.963917NA
28899NANA0.964458NA
39093NANA1.03656NA
49093NANA1.04012NA
59093NANA1.04421NA
69116NANA0.988066NA
791169216.979335.750.9872770.989045
891169114.899362.750.9735271.00012
9100739463.939378.671.009091.06436
10100739501.389383.51.012561.06016
11100739543.259388.331.01651.05551
1292238954.019291.210.9637081.03004
1392238764.059092.120.9639171.05237
1492238576.968893.040.9644581.07532
1591518992.318675.121.036561.01765
1691518776.918438.371.040121.04262
1791518564.238201.621.044211.06851
1867277869.327964.370.9880660.854838
1967277628.327726.620.9872770.881846
2067277290.627488.870.9735270.922692
2172327340.767274.621.009090.985184
2272327172.877083.871.012561.00824
2372327006.876893.121.01651.03213
2463706563.176810.330.9637080.970567
2563706588.856835.50.9639170.966784
2663706616.826860.670.9644580.962697
2768627115.876864.871.036560.964323
2868627122.866848.121.040120.963376
2968627133.46831.371.044210.961954
3070296776.696858.540.9880661.03723
3170296841.466929.620.9872771.02741
3270296815.387000.710.9735271.03134
3370317150.87086.371.009090.983247
3470317276.917186.621.012560.966207
3570317407.127286.881.01650.949222
3672237095.947363.170.9637081.01791
3772237147.927415.50.9639171.0105
3872237202.417467.830.9644581.00286
3980657780.837506.381.036561.03652
4080657833.277531.121.040121.02958
4180657889.937555.871.044211.02219
4276577473.487563.750.9880661.02456
4376577458.637554.750.9872771.0266
4476577345.997545.750.9735271.04234
4573287603.977535.461.009090.963708
4673287618.47523.871.012560.961882
4773287636.257512.291.01650.959633
4871157275.197549.170.9637080.977981
4971157359.027634.50.9639170.96684
5071157445.457719.830.9644580.955617
5179268104.287818.421.036560.978002
5279268248.47930.251.040120.960913
5379268397.638042.081.044210.943837
5486818038.948136.040.9880661.07987
5586818107.648212.120.9872771.07072
568681NANA0.973527NA
578670NANA1.00909NA
588670NANA1.01256NA
598670NANA1.0165NA
608028NANA0.963708NA
618028NANA0.963917NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '12'
par1 <- 'additive'
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')