Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationThu, 18 May 2017 15:27:21 +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/18/t14951176602g3h9qshlebwn79.htm/, Retrieved Fri, 17 May 2024 05:46:52 +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 05:46:52 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
93.43
93.59
95.28
94.95
94.49
94.45
94.35
95.52
96.89
97.54
97.65
97.35
98.2
99.46
100.35
99.72
99.69
99.62
99.77
100.19
100.82
100.36
101.08
100.73
101.51
102.12
102.88
103.47
103.53
103.67
103.68
103.76
103.67
103.01
103.39
103.43
103.4
104.8
105.53
107.45
108.73
109.04
108.75
108.75
108.76
108.41
110.15
109.93
110.6
112.17
113.47
113.35
114.12
115
114.01
113.86
113.83
112.7
111.79
113.77




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 3 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.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 time3 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
193.43NANA0.992661NA
293.59NANA1.00041NA
395.28NANA1.00563NA
494.95NANA1.00655NA
594.49NANA1.0084NA
694.45NANA1.0082NA
794.3595.439695.65620.9977350.988583
895.5295.945596.09960.9983970.995565
996.8996.517796.55540.9996091.00386
1097.5496.391896.96540.9940851.01191
1197.6597.106897.38080.9971861.00559
1297.3596.946197.81290.9911381.00417
1398.297.533198.25420.9926611.00684
1499.4698.714998.67461.000411.00755
15100.3599.590599.03291.005631.00763
1699.7299.964499.31421.006550.997555
1799.69100.41299.57461.00840.992815
1899.62100.67799.85831.00820.9895
1999.7799.9103100.1370.9977350.998596
20100.19100.225100.3860.9983970.999652
21100.82100.563100.6020.9996091.00256
22100.36100.267100.8640.9940851.00093
23101.08100.895101.180.9971861.00183
24100.73100.609101.5090.9911381.0012
25101.51101.093101.840.9926611.00412
26102.12102.194102.1521.000410.999278
27102.88102.996102.421.005630.998872
28103.47103.321102.6491.006551.00144
29103.53103.72102.8551.00840.998169
30103.67103.909103.0641.00820.997698
31103.68103.022103.2550.9977351.00639
32103.76103.28103.4460.9983971.00465
33103.67103.627103.6680.9996091.00041
34103.01103.329103.9440.9940850.99691
35103.39104.033104.3270.9971860.993818
36103.43103.839104.7670.9911380.996065
37103.4104.43105.2020.9926610.990137
38104.8105.664105.6211.000410.99182
39105.53106.638106.0411.005630.989607
40107.45107.175106.4781.006551.00256
41108.73107.884106.9851.00841.00784
42109.04108.419107.5381.00821.00573
43108.75107.863108.1080.9977351.00822
44108.75108.541108.7150.9983971.00192
45108.76109.311109.3530.9996090.994963
46108.41109.28109.930.9940850.992041
47110.15110.09110.40.9971861.00055
48109.93109.891110.8730.9911381.00036
49110.6110.524111.3410.9926611.00069
50112.17111.819111.7731.000411.00314
51113.47112.829112.1971.005631.00568
52113.35113.324112.5871.006551.00023
53114.12113.783112.8341.00841.00297
54115113.989113.0621.00821.00886
55114.01NANA0.997735NA
56113.86NANA0.998397NA
57113.83NANA0.999609NA
58112.7NANA0.994085NA
59111.79NANA0.997186NA
60113.77NANA0.991138NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 93.43 & NA & NA & 0.992661 & NA \tabularnewline
2 & 93.59 & NA & NA & 1.00041 & NA \tabularnewline
3 & 95.28 & NA & NA & 1.00563 & NA \tabularnewline
4 & 94.95 & NA & NA & 1.00655 & NA \tabularnewline
5 & 94.49 & NA & NA & 1.0084 & NA \tabularnewline
6 & 94.45 & NA & NA & 1.0082 & NA \tabularnewline
7 & 94.35 & 95.4396 & 95.6562 & 0.997735 & 0.988583 \tabularnewline
8 & 95.52 & 95.9455 & 96.0996 & 0.998397 & 0.995565 \tabularnewline
9 & 96.89 & 96.5177 & 96.5554 & 0.999609 & 1.00386 \tabularnewline
10 & 97.54 & 96.3918 & 96.9654 & 0.994085 & 1.01191 \tabularnewline
11 & 97.65 & 97.1068 & 97.3808 & 0.997186 & 1.00559 \tabularnewline
12 & 97.35 & 96.9461 & 97.8129 & 0.991138 & 1.00417 \tabularnewline
13 & 98.2 & 97.5331 & 98.2542 & 0.992661 & 1.00684 \tabularnewline
14 & 99.46 & 98.7149 & 98.6746 & 1.00041 & 1.00755 \tabularnewline
15 & 100.35 & 99.5905 & 99.0329 & 1.00563 & 1.00763 \tabularnewline
16 & 99.72 & 99.9644 & 99.3142 & 1.00655 & 0.997555 \tabularnewline
17 & 99.69 & 100.412 & 99.5746 & 1.0084 & 0.992815 \tabularnewline
18 & 99.62 & 100.677 & 99.8583 & 1.0082 & 0.9895 \tabularnewline
19 & 99.77 & 99.9103 & 100.137 & 0.997735 & 0.998596 \tabularnewline
20 & 100.19 & 100.225 & 100.386 & 0.998397 & 0.999652 \tabularnewline
21 & 100.82 & 100.563 & 100.602 & 0.999609 & 1.00256 \tabularnewline
22 & 100.36 & 100.267 & 100.864 & 0.994085 & 1.00093 \tabularnewline
23 & 101.08 & 100.895 & 101.18 & 0.997186 & 1.00183 \tabularnewline
24 & 100.73 & 100.609 & 101.509 & 0.991138 & 1.0012 \tabularnewline
25 & 101.51 & 101.093 & 101.84 & 0.992661 & 1.00412 \tabularnewline
26 & 102.12 & 102.194 & 102.152 & 1.00041 & 0.999278 \tabularnewline
27 & 102.88 & 102.996 & 102.42 & 1.00563 & 0.998872 \tabularnewline
28 & 103.47 & 103.321 & 102.649 & 1.00655 & 1.00144 \tabularnewline
29 & 103.53 & 103.72 & 102.855 & 1.0084 & 0.998169 \tabularnewline
30 & 103.67 & 103.909 & 103.064 & 1.0082 & 0.997698 \tabularnewline
31 & 103.68 & 103.022 & 103.255 & 0.997735 & 1.00639 \tabularnewline
32 & 103.76 & 103.28 & 103.446 & 0.998397 & 1.00465 \tabularnewline
33 & 103.67 & 103.627 & 103.668 & 0.999609 & 1.00041 \tabularnewline
34 & 103.01 & 103.329 & 103.944 & 0.994085 & 0.99691 \tabularnewline
35 & 103.39 & 104.033 & 104.327 & 0.997186 & 0.993818 \tabularnewline
36 & 103.43 & 103.839 & 104.767 & 0.991138 & 0.996065 \tabularnewline
37 & 103.4 & 104.43 & 105.202 & 0.992661 & 0.990137 \tabularnewline
38 & 104.8 & 105.664 & 105.621 & 1.00041 & 0.99182 \tabularnewline
39 & 105.53 & 106.638 & 106.041 & 1.00563 & 0.989607 \tabularnewline
40 & 107.45 & 107.175 & 106.478 & 1.00655 & 1.00256 \tabularnewline
41 & 108.73 & 107.884 & 106.985 & 1.0084 & 1.00784 \tabularnewline
42 & 109.04 & 108.419 & 107.538 & 1.0082 & 1.00573 \tabularnewline
43 & 108.75 & 107.863 & 108.108 & 0.997735 & 1.00822 \tabularnewline
44 & 108.75 & 108.541 & 108.715 & 0.998397 & 1.00192 \tabularnewline
45 & 108.76 & 109.311 & 109.353 & 0.999609 & 0.994963 \tabularnewline
46 & 108.41 & 109.28 & 109.93 & 0.994085 & 0.992041 \tabularnewline
47 & 110.15 & 110.09 & 110.4 & 0.997186 & 1.00055 \tabularnewline
48 & 109.93 & 109.891 & 110.873 & 0.991138 & 1.00036 \tabularnewline
49 & 110.6 & 110.524 & 111.341 & 0.992661 & 1.00069 \tabularnewline
50 & 112.17 & 111.819 & 111.773 & 1.00041 & 1.00314 \tabularnewline
51 & 113.47 & 112.829 & 112.197 & 1.00563 & 1.00568 \tabularnewline
52 & 113.35 & 113.324 & 112.587 & 1.00655 & 1.00023 \tabularnewline
53 & 114.12 & 113.783 & 112.834 & 1.0084 & 1.00297 \tabularnewline
54 & 115 & 113.989 & 113.062 & 1.0082 & 1.00886 \tabularnewline
55 & 114.01 & NA & NA & 0.997735 & NA \tabularnewline
56 & 113.86 & NA & NA & 0.998397 & NA \tabularnewline
57 & 113.83 & NA & NA & 0.999609 & NA \tabularnewline
58 & 112.7 & NA & NA & 0.994085 & NA \tabularnewline
59 & 111.79 & NA & NA & 0.997186 & NA \tabularnewline
60 & 113.77 & NA & NA & 0.991138 & 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]93.43[/C][C]NA[/C][C]NA[/C][C]0.992661[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]93.59[/C][C]NA[/C][C]NA[/C][C]1.00041[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]95.28[/C][C]NA[/C][C]NA[/C][C]1.00563[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]94.95[/C][C]NA[/C][C]NA[/C][C]1.00655[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]94.49[/C][C]NA[/C][C]NA[/C][C]1.0084[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]94.45[/C][C]NA[/C][C]NA[/C][C]1.0082[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]94.35[/C][C]95.4396[/C][C]95.6562[/C][C]0.997735[/C][C]0.988583[/C][/ROW]
[ROW][C]8[/C][C]95.52[/C][C]95.9455[/C][C]96.0996[/C][C]0.998397[/C][C]0.995565[/C][/ROW]
[ROW][C]9[/C][C]96.89[/C][C]96.5177[/C][C]96.5554[/C][C]0.999609[/C][C]1.00386[/C][/ROW]
[ROW][C]10[/C][C]97.54[/C][C]96.3918[/C][C]96.9654[/C][C]0.994085[/C][C]1.01191[/C][/ROW]
[ROW][C]11[/C][C]97.65[/C][C]97.1068[/C][C]97.3808[/C][C]0.997186[/C][C]1.00559[/C][/ROW]
[ROW][C]12[/C][C]97.35[/C][C]96.9461[/C][C]97.8129[/C][C]0.991138[/C][C]1.00417[/C][/ROW]
[ROW][C]13[/C][C]98.2[/C][C]97.5331[/C][C]98.2542[/C][C]0.992661[/C][C]1.00684[/C][/ROW]
[ROW][C]14[/C][C]99.46[/C][C]98.7149[/C][C]98.6746[/C][C]1.00041[/C][C]1.00755[/C][/ROW]
[ROW][C]15[/C][C]100.35[/C][C]99.5905[/C][C]99.0329[/C][C]1.00563[/C][C]1.00763[/C][/ROW]
[ROW][C]16[/C][C]99.72[/C][C]99.9644[/C][C]99.3142[/C][C]1.00655[/C][C]0.997555[/C][/ROW]
[ROW][C]17[/C][C]99.69[/C][C]100.412[/C][C]99.5746[/C][C]1.0084[/C][C]0.992815[/C][/ROW]
[ROW][C]18[/C][C]99.62[/C][C]100.677[/C][C]99.8583[/C][C]1.0082[/C][C]0.9895[/C][/ROW]
[ROW][C]19[/C][C]99.77[/C][C]99.9103[/C][C]100.137[/C][C]0.997735[/C][C]0.998596[/C][/ROW]
[ROW][C]20[/C][C]100.19[/C][C]100.225[/C][C]100.386[/C][C]0.998397[/C][C]0.999652[/C][/ROW]
[ROW][C]21[/C][C]100.82[/C][C]100.563[/C][C]100.602[/C][C]0.999609[/C][C]1.00256[/C][/ROW]
[ROW][C]22[/C][C]100.36[/C][C]100.267[/C][C]100.864[/C][C]0.994085[/C][C]1.00093[/C][/ROW]
[ROW][C]23[/C][C]101.08[/C][C]100.895[/C][C]101.18[/C][C]0.997186[/C][C]1.00183[/C][/ROW]
[ROW][C]24[/C][C]100.73[/C][C]100.609[/C][C]101.509[/C][C]0.991138[/C][C]1.0012[/C][/ROW]
[ROW][C]25[/C][C]101.51[/C][C]101.093[/C][C]101.84[/C][C]0.992661[/C][C]1.00412[/C][/ROW]
[ROW][C]26[/C][C]102.12[/C][C]102.194[/C][C]102.152[/C][C]1.00041[/C][C]0.999278[/C][/ROW]
[ROW][C]27[/C][C]102.88[/C][C]102.996[/C][C]102.42[/C][C]1.00563[/C][C]0.998872[/C][/ROW]
[ROW][C]28[/C][C]103.47[/C][C]103.321[/C][C]102.649[/C][C]1.00655[/C][C]1.00144[/C][/ROW]
[ROW][C]29[/C][C]103.53[/C][C]103.72[/C][C]102.855[/C][C]1.0084[/C][C]0.998169[/C][/ROW]
[ROW][C]30[/C][C]103.67[/C][C]103.909[/C][C]103.064[/C][C]1.0082[/C][C]0.997698[/C][/ROW]
[ROW][C]31[/C][C]103.68[/C][C]103.022[/C][C]103.255[/C][C]0.997735[/C][C]1.00639[/C][/ROW]
[ROW][C]32[/C][C]103.76[/C][C]103.28[/C][C]103.446[/C][C]0.998397[/C][C]1.00465[/C][/ROW]
[ROW][C]33[/C][C]103.67[/C][C]103.627[/C][C]103.668[/C][C]0.999609[/C][C]1.00041[/C][/ROW]
[ROW][C]34[/C][C]103.01[/C][C]103.329[/C][C]103.944[/C][C]0.994085[/C][C]0.99691[/C][/ROW]
[ROW][C]35[/C][C]103.39[/C][C]104.033[/C][C]104.327[/C][C]0.997186[/C][C]0.993818[/C][/ROW]
[ROW][C]36[/C][C]103.43[/C][C]103.839[/C][C]104.767[/C][C]0.991138[/C][C]0.996065[/C][/ROW]
[ROW][C]37[/C][C]103.4[/C][C]104.43[/C][C]105.202[/C][C]0.992661[/C][C]0.990137[/C][/ROW]
[ROW][C]38[/C][C]104.8[/C][C]105.664[/C][C]105.621[/C][C]1.00041[/C][C]0.99182[/C][/ROW]
[ROW][C]39[/C][C]105.53[/C][C]106.638[/C][C]106.041[/C][C]1.00563[/C][C]0.989607[/C][/ROW]
[ROW][C]40[/C][C]107.45[/C][C]107.175[/C][C]106.478[/C][C]1.00655[/C][C]1.00256[/C][/ROW]
[ROW][C]41[/C][C]108.73[/C][C]107.884[/C][C]106.985[/C][C]1.0084[/C][C]1.00784[/C][/ROW]
[ROW][C]42[/C][C]109.04[/C][C]108.419[/C][C]107.538[/C][C]1.0082[/C][C]1.00573[/C][/ROW]
[ROW][C]43[/C][C]108.75[/C][C]107.863[/C][C]108.108[/C][C]0.997735[/C][C]1.00822[/C][/ROW]
[ROW][C]44[/C][C]108.75[/C][C]108.541[/C][C]108.715[/C][C]0.998397[/C][C]1.00192[/C][/ROW]
[ROW][C]45[/C][C]108.76[/C][C]109.311[/C][C]109.353[/C][C]0.999609[/C][C]0.994963[/C][/ROW]
[ROW][C]46[/C][C]108.41[/C][C]109.28[/C][C]109.93[/C][C]0.994085[/C][C]0.992041[/C][/ROW]
[ROW][C]47[/C][C]110.15[/C][C]110.09[/C][C]110.4[/C][C]0.997186[/C][C]1.00055[/C][/ROW]
[ROW][C]48[/C][C]109.93[/C][C]109.891[/C][C]110.873[/C][C]0.991138[/C][C]1.00036[/C][/ROW]
[ROW][C]49[/C][C]110.6[/C][C]110.524[/C][C]111.341[/C][C]0.992661[/C][C]1.00069[/C][/ROW]
[ROW][C]50[/C][C]112.17[/C][C]111.819[/C][C]111.773[/C][C]1.00041[/C][C]1.00314[/C][/ROW]
[ROW][C]51[/C][C]113.47[/C][C]112.829[/C][C]112.197[/C][C]1.00563[/C][C]1.00568[/C][/ROW]
[ROW][C]52[/C][C]113.35[/C][C]113.324[/C][C]112.587[/C][C]1.00655[/C][C]1.00023[/C][/ROW]
[ROW][C]53[/C][C]114.12[/C][C]113.783[/C][C]112.834[/C][C]1.0084[/C][C]1.00297[/C][/ROW]
[ROW][C]54[/C][C]115[/C][C]113.989[/C][C]113.062[/C][C]1.0082[/C][C]1.00886[/C][/ROW]
[ROW][C]55[/C][C]114.01[/C][C]NA[/C][C]NA[/C][C]0.997735[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]113.86[/C][C]NA[/C][C]NA[/C][C]0.998397[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]113.83[/C][C]NA[/C][C]NA[/C][C]0.999609[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]112.7[/C][C]NA[/C][C]NA[/C][C]0.994085[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]111.79[/C][C]NA[/C][C]NA[/C][C]0.997186[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]113.77[/C][C]NA[/C][C]NA[/C][C]0.991138[/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
193.43NANA0.992661NA
293.59NANA1.00041NA
395.28NANA1.00563NA
494.95NANA1.00655NA
594.49NANA1.0084NA
694.45NANA1.0082NA
794.3595.439695.65620.9977350.988583
895.5295.945596.09960.9983970.995565
996.8996.517796.55540.9996091.00386
1097.5496.391896.96540.9940851.01191
1197.6597.106897.38080.9971861.00559
1297.3596.946197.81290.9911381.00417
1398.297.533198.25420.9926611.00684
1499.4698.714998.67461.000411.00755
15100.3599.590599.03291.005631.00763
1699.7299.964499.31421.006550.997555
1799.69100.41299.57461.00840.992815
1899.62100.67799.85831.00820.9895
1999.7799.9103100.1370.9977350.998596
20100.19100.225100.3860.9983970.999652
21100.82100.563100.6020.9996091.00256
22100.36100.267100.8640.9940851.00093
23101.08100.895101.180.9971861.00183
24100.73100.609101.5090.9911381.0012
25101.51101.093101.840.9926611.00412
26102.12102.194102.1521.000410.999278
27102.88102.996102.421.005630.998872
28103.47103.321102.6491.006551.00144
29103.53103.72102.8551.00840.998169
30103.67103.909103.0641.00820.997698
31103.68103.022103.2550.9977351.00639
32103.76103.28103.4460.9983971.00465
33103.67103.627103.6680.9996091.00041
34103.01103.329103.9440.9940850.99691
35103.39104.033104.3270.9971860.993818
36103.43103.839104.7670.9911380.996065
37103.4104.43105.2020.9926610.990137
38104.8105.664105.6211.000410.99182
39105.53106.638106.0411.005630.989607
40107.45107.175106.4781.006551.00256
41108.73107.884106.9851.00841.00784
42109.04108.419107.5381.00821.00573
43108.75107.863108.1080.9977351.00822
44108.75108.541108.7150.9983971.00192
45108.76109.311109.3530.9996090.994963
46108.41109.28109.930.9940850.992041
47110.15110.09110.40.9971861.00055
48109.93109.891110.8730.9911381.00036
49110.6110.524111.3410.9926611.00069
50112.17111.819111.7731.000411.00314
51113.47112.829112.1971.005631.00568
52113.35113.324112.5871.006551.00023
53114.12113.783112.8341.00841.00297
54115113.989113.0621.00821.00886
55114.01NANA0.997735NA
56113.86NANA0.998397NA
57113.83NANA0.999609NA
58112.7NANA0.994085NA
59111.79NANA0.997186NA
60113.77NANA0.991138NA



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