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 13:57:46 +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/t1495112318id8nttpfxgryddw.htm/, Retrieved Fri, 17 May 2024 08:08:39 +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 08:08:39 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
20709.9
21227.3
23009.8
20416.2
20929.6
20763.9
19607.4
19419
19584.9
21878
21745.5
19206.8
21041.3
20407.1
22437
21050.3
20415.7
20220.6
20217.8
18286.4
20781.3
21619.6
20417.6
19988.6
21026.9
20128.3
21671.5
21053.2
19978.6
20572.6
20220.4
19107.6
21989.5
21701.2
19758.3
19843.9
18906.2
19071.2
22385.6
20208.5
19261.4
21470.1
19539.9
17665.1
19917.2
20399.5
19263
19026
18375.4
20165
21138.7
21414.3
20799.2
22773.6
19747.2
19910.7
22051.7
21705
22328.8
20910.3




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 'Sir Maurice George Kendall' @ kendall.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]'Sir Maurice George Kendall' @ kendall.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'Sir Maurice George Kendall' @ kendall.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
120709.9NANA-510.349NA
221227.3NANA-411.477NA
323009.8NANA1523.01NA
420416.2NANA522.486NA
520929.6NANA-299.638NA
620763.9NANA822.041NA
719607.420246.520722-475.452-639.148
81941918984.720701.6-1716.92434.286
919584.920905.920643.6262.337-1321.03
102187821748.920646.11102.78129.073
1121745.520641.420651.2-9.732471104.08
1219206.81979820607.1-809.084-591.221
1321041.320099.620609.9-510.349941.749
1420407.120176.720588.1-411.477230.436
152243722113.820590.81523.01323.195
1621050.321152.420629.9522.486-102.07
1720415.720264.120563.8-299.638151.55
1820220.621363.120541822.041-1142.47
1920217.820097.620573-475.452120.244
2018286.418843.920560.8-1716.92-557.473
2120781.320779.620517.3262.3371.68351
2221619.621588.320485.51102.7831.3148
2320417.620457.720467.4-9.73247-40.08
2419988.619654.820463.9-809.084333.817
2521026.919968.320478.6-510.3491058.61
2620128.320101.520513-411.47726.8106
2721671.522120.520597.51523.01-449.03
2821053.221173.820651.3522.486-120.553
2919978.620327.620627.2-299.638-348.958
3020572.621415.720593.7822.041-843.137
3120220.420023.920499.3-475.452196.548
3219107.61865020366.9-1716.92457.623
3321989.520614.920352.6262.3371374.56
3421701.221449.920347.21102.78251.256
3519758.320272.420282.1-9.73247-514.051
3619843.919480.520289.6-809.084363.388
3718906.219788.320298.6-510.349-882.088
3819071.219798.720210.2-411.477-727.502
3922385.621586.720063.71523.01798.866
4020208.520445.619923.1522.486-237.132
4119261.419548.619848.3-299.638-287.233
4221470.120615.619793.6822.041854.504
4319539.919261.919737.4-475.452277.994
4417665.118043.919760.8-1716.92-378.798
4519917.220016.819754.4262.337-99.5748
4620399.520855.519752.71102.78-456.006
471926319857.319867-9.73247-594.309
481902619176.319985.4-809.084-150.346
4918375.41953820048.4-510.349-1162.63
502016519739.120150.6-411.477425.894
5121138.721856.120333.11523.01-717.393
5221414.320998.920476.4522.486415.393
5320799.220358.920658.6-299.638440.279
5422773.621686.920864.8822.0411086.75
5519747.2NANA-475.452NA
5619910.7NANA-1716.92NA
5722051.7NANA262.337NA
5821705NANA1102.78NA
5922328.8NANA-9.73247NA
6020910.3NANA-809.084NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 20709.9 & NA & NA & -510.349 & NA \tabularnewline
2 & 21227.3 & NA & NA & -411.477 & NA \tabularnewline
3 & 23009.8 & NA & NA & 1523.01 & NA \tabularnewline
4 & 20416.2 & NA & NA & 522.486 & NA \tabularnewline
5 & 20929.6 & NA & NA & -299.638 & NA \tabularnewline
6 & 20763.9 & NA & NA & 822.041 & NA \tabularnewline
7 & 19607.4 & 20246.5 & 20722 & -475.452 & -639.148 \tabularnewline
8 & 19419 & 18984.7 & 20701.6 & -1716.92 & 434.286 \tabularnewline
9 & 19584.9 & 20905.9 & 20643.6 & 262.337 & -1321.03 \tabularnewline
10 & 21878 & 21748.9 & 20646.1 & 1102.78 & 129.073 \tabularnewline
11 & 21745.5 & 20641.4 & 20651.2 & -9.73247 & 1104.08 \tabularnewline
12 & 19206.8 & 19798 & 20607.1 & -809.084 & -591.221 \tabularnewline
13 & 21041.3 & 20099.6 & 20609.9 & -510.349 & 941.749 \tabularnewline
14 & 20407.1 & 20176.7 & 20588.1 & -411.477 & 230.436 \tabularnewline
15 & 22437 & 22113.8 & 20590.8 & 1523.01 & 323.195 \tabularnewline
16 & 21050.3 & 21152.4 & 20629.9 & 522.486 & -102.07 \tabularnewline
17 & 20415.7 & 20264.1 & 20563.8 & -299.638 & 151.55 \tabularnewline
18 & 20220.6 & 21363.1 & 20541 & 822.041 & -1142.47 \tabularnewline
19 & 20217.8 & 20097.6 & 20573 & -475.452 & 120.244 \tabularnewline
20 & 18286.4 & 18843.9 & 20560.8 & -1716.92 & -557.473 \tabularnewline
21 & 20781.3 & 20779.6 & 20517.3 & 262.337 & 1.68351 \tabularnewline
22 & 21619.6 & 21588.3 & 20485.5 & 1102.78 & 31.3148 \tabularnewline
23 & 20417.6 & 20457.7 & 20467.4 & -9.73247 & -40.08 \tabularnewline
24 & 19988.6 & 19654.8 & 20463.9 & -809.084 & 333.817 \tabularnewline
25 & 21026.9 & 19968.3 & 20478.6 & -510.349 & 1058.61 \tabularnewline
26 & 20128.3 & 20101.5 & 20513 & -411.477 & 26.8106 \tabularnewline
27 & 21671.5 & 22120.5 & 20597.5 & 1523.01 & -449.03 \tabularnewline
28 & 21053.2 & 21173.8 & 20651.3 & 522.486 & -120.553 \tabularnewline
29 & 19978.6 & 20327.6 & 20627.2 & -299.638 & -348.958 \tabularnewline
30 & 20572.6 & 21415.7 & 20593.7 & 822.041 & -843.137 \tabularnewline
31 & 20220.4 & 20023.9 & 20499.3 & -475.452 & 196.548 \tabularnewline
32 & 19107.6 & 18650 & 20366.9 & -1716.92 & 457.623 \tabularnewline
33 & 21989.5 & 20614.9 & 20352.6 & 262.337 & 1374.56 \tabularnewline
34 & 21701.2 & 21449.9 & 20347.2 & 1102.78 & 251.256 \tabularnewline
35 & 19758.3 & 20272.4 & 20282.1 & -9.73247 & -514.051 \tabularnewline
36 & 19843.9 & 19480.5 & 20289.6 & -809.084 & 363.388 \tabularnewline
37 & 18906.2 & 19788.3 & 20298.6 & -510.349 & -882.088 \tabularnewline
38 & 19071.2 & 19798.7 & 20210.2 & -411.477 & -727.502 \tabularnewline
39 & 22385.6 & 21586.7 & 20063.7 & 1523.01 & 798.866 \tabularnewline
40 & 20208.5 & 20445.6 & 19923.1 & 522.486 & -237.132 \tabularnewline
41 & 19261.4 & 19548.6 & 19848.3 & -299.638 & -287.233 \tabularnewline
42 & 21470.1 & 20615.6 & 19793.6 & 822.041 & 854.504 \tabularnewline
43 & 19539.9 & 19261.9 & 19737.4 & -475.452 & 277.994 \tabularnewline
44 & 17665.1 & 18043.9 & 19760.8 & -1716.92 & -378.798 \tabularnewline
45 & 19917.2 & 20016.8 & 19754.4 & 262.337 & -99.5748 \tabularnewline
46 & 20399.5 & 20855.5 & 19752.7 & 1102.78 & -456.006 \tabularnewline
47 & 19263 & 19857.3 & 19867 & -9.73247 & -594.309 \tabularnewline
48 & 19026 & 19176.3 & 19985.4 & -809.084 & -150.346 \tabularnewline
49 & 18375.4 & 19538 & 20048.4 & -510.349 & -1162.63 \tabularnewline
50 & 20165 & 19739.1 & 20150.6 & -411.477 & 425.894 \tabularnewline
51 & 21138.7 & 21856.1 & 20333.1 & 1523.01 & -717.393 \tabularnewline
52 & 21414.3 & 20998.9 & 20476.4 & 522.486 & 415.393 \tabularnewline
53 & 20799.2 & 20358.9 & 20658.6 & -299.638 & 440.279 \tabularnewline
54 & 22773.6 & 21686.9 & 20864.8 & 822.041 & 1086.75 \tabularnewline
55 & 19747.2 & NA & NA & -475.452 & NA \tabularnewline
56 & 19910.7 & NA & NA & -1716.92 & NA \tabularnewline
57 & 22051.7 & NA & NA & 262.337 & NA \tabularnewline
58 & 21705 & NA & NA & 1102.78 & NA \tabularnewline
59 & 22328.8 & NA & NA & -9.73247 & NA \tabularnewline
60 & 20910.3 & NA & NA & -809.084 & 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]20709.9[/C][C]NA[/C][C]NA[/C][C]-510.349[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]21227.3[/C][C]NA[/C][C]NA[/C][C]-411.477[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]23009.8[/C][C]NA[/C][C]NA[/C][C]1523.01[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]20416.2[/C][C]NA[/C][C]NA[/C][C]522.486[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]20929.6[/C][C]NA[/C][C]NA[/C][C]-299.638[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]20763.9[/C][C]NA[/C][C]NA[/C][C]822.041[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]19607.4[/C][C]20246.5[/C][C]20722[/C][C]-475.452[/C][C]-639.148[/C][/ROW]
[ROW][C]8[/C][C]19419[/C][C]18984.7[/C][C]20701.6[/C][C]-1716.92[/C][C]434.286[/C][/ROW]
[ROW][C]9[/C][C]19584.9[/C][C]20905.9[/C][C]20643.6[/C][C]262.337[/C][C]-1321.03[/C][/ROW]
[ROW][C]10[/C][C]21878[/C][C]21748.9[/C][C]20646.1[/C][C]1102.78[/C][C]129.073[/C][/ROW]
[ROW][C]11[/C][C]21745.5[/C][C]20641.4[/C][C]20651.2[/C][C]-9.73247[/C][C]1104.08[/C][/ROW]
[ROW][C]12[/C][C]19206.8[/C][C]19798[/C][C]20607.1[/C][C]-809.084[/C][C]-591.221[/C][/ROW]
[ROW][C]13[/C][C]21041.3[/C][C]20099.6[/C][C]20609.9[/C][C]-510.349[/C][C]941.749[/C][/ROW]
[ROW][C]14[/C][C]20407.1[/C][C]20176.7[/C][C]20588.1[/C][C]-411.477[/C][C]230.436[/C][/ROW]
[ROW][C]15[/C][C]22437[/C][C]22113.8[/C][C]20590.8[/C][C]1523.01[/C][C]323.195[/C][/ROW]
[ROW][C]16[/C][C]21050.3[/C][C]21152.4[/C][C]20629.9[/C][C]522.486[/C][C]-102.07[/C][/ROW]
[ROW][C]17[/C][C]20415.7[/C][C]20264.1[/C][C]20563.8[/C][C]-299.638[/C][C]151.55[/C][/ROW]
[ROW][C]18[/C][C]20220.6[/C][C]21363.1[/C][C]20541[/C][C]822.041[/C][C]-1142.47[/C][/ROW]
[ROW][C]19[/C][C]20217.8[/C][C]20097.6[/C][C]20573[/C][C]-475.452[/C][C]120.244[/C][/ROW]
[ROW][C]20[/C][C]18286.4[/C][C]18843.9[/C][C]20560.8[/C][C]-1716.92[/C][C]-557.473[/C][/ROW]
[ROW][C]21[/C][C]20781.3[/C][C]20779.6[/C][C]20517.3[/C][C]262.337[/C][C]1.68351[/C][/ROW]
[ROW][C]22[/C][C]21619.6[/C][C]21588.3[/C][C]20485.5[/C][C]1102.78[/C][C]31.3148[/C][/ROW]
[ROW][C]23[/C][C]20417.6[/C][C]20457.7[/C][C]20467.4[/C][C]-9.73247[/C][C]-40.08[/C][/ROW]
[ROW][C]24[/C][C]19988.6[/C][C]19654.8[/C][C]20463.9[/C][C]-809.084[/C][C]333.817[/C][/ROW]
[ROW][C]25[/C][C]21026.9[/C][C]19968.3[/C][C]20478.6[/C][C]-510.349[/C][C]1058.61[/C][/ROW]
[ROW][C]26[/C][C]20128.3[/C][C]20101.5[/C][C]20513[/C][C]-411.477[/C][C]26.8106[/C][/ROW]
[ROW][C]27[/C][C]21671.5[/C][C]22120.5[/C][C]20597.5[/C][C]1523.01[/C][C]-449.03[/C][/ROW]
[ROW][C]28[/C][C]21053.2[/C][C]21173.8[/C][C]20651.3[/C][C]522.486[/C][C]-120.553[/C][/ROW]
[ROW][C]29[/C][C]19978.6[/C][C]20327.6[/C][C]20627.2[/C][C]-299.638[/C][C]-348.958[/C][/ROW]
[ROW][C]30[/C][C]20572.6[/C][C]21415.7[/C][C]20593.7[/C][C]822.041[/C][C]-843.137[/C][/ROW]
[ROW][C]31[/C][C]20220.4[/C][C]20023.9[/C][C]20499.3[/C][C]-475.452[/C][C]196.548[/C][/ROW]
[ROW][C]32[/C][C]19107.6[/C][C]18650[/C][C]20366.9[/C][C]-1716.92[/C][C]457.623[/C][/ROW]
[ROW][C]33[/C][C]21989.5[/C][C]20614.9[/C][C]20352.6[/C][C]262.337[/C][C]1374.56[/C][/ROW]
[ROW][C]34[/C][C]21701.2[/C][C]21449.9[/C][C]20347.2[/C][C]1102.78[/C][C]251.256[/C][/ROW]
[ROW][C]35[/C][C]19758.3[/C][C]20272.4[/C][C]20282.1[/C][C]-9.73247[/C][C]-514.051[/C][/ROW]
[ROW][C]36[/C][C]19843.9[/C][C]19480.5[/C][C]20289.6[/C][C]-809.084[/C][C]363.388[/C][/ROW]
[ROW][C]37[/C][C]18906.2[/C][C]19788.3[/C][C]20298.6[/C][C]-510.349[/C][C]-882.088[/C][/ROW]
[ROW][C]38[/C][C]19071.2[/C][C]19798.7[/C][C]20210.2[/C][C]-411.477[/C][C]-727.502[/C][/ROW]
[ROW][C]39[/C][C]22385.6[/C][C]21586.7[/C][C]20063.7[/C][C]1523.01[/C][C]798.866[/C][/ROW]
[ROW][C]40[/C][C]20208.5[/C][C]20445.6[/C][C]19923.1[/C][C]522.486[/C][C]-237.132[/C][/ROW]
[ROW][C]41[/C][C]19261.4[/C][C]19548.6[/C][C]19848.3[/C][C]-299.638[/C][C]-287.233[/C][/ROW]
[ROW][C]42[/C][C]21470.1[/C][C]20615.6[/C][C]19793.6[/C][C]822.041[/C][C]854.504[/C][/ROW]
[ROW][C]43[/C][C]19539.9[/C][C]19261.9[/C][C]19737.4[/C][C]-475.452[/C][C]277.994[/C][/ROW]
[ROW][C]44[/C][C]17665.1[/C][C]18043.9[/C][C]19760.8[/C][C]-1716.92[/C][C]-378.798[/C][/ROW]
[ROW][C]45[/C][C]19917.2[/C][C]20016.8[/C][C]19754.4[/C][C]262.337[/C][C]-99.5748[/C][/ROW]
[ROW][C]46[/C][C]20399.5[/C][C]20855.5[/C][C]19752.7[/C][C]1102.78[/C][C]-456.006[/C][/ROW]
[ROW][C]47[/C][C]19263[/C][C]19857.3[/C][C]19867[/C][C]-9.73247[/C][C]-594.309[/C][/ROW]
[ROW][C]48[/C][C]19026[/C][C]19176.3[/C][C]19985.4[/C][C]-809.084[/C][C]-150.346[/C][/ROW]
[ROW][C]49[/C][C]18375.4[/C][C]19538[/C][C]20048.4[/C][C]-510.349[/C][C]-1162.63[/C][/ROW]
[ROW][C]50[/C][C]20165[/C][C]19739.1[/C][C]20150.6[/C][C]-411.477[/C][C]425.894[/C][/ROW]
[ROW][C]51[/C][C]21138.7[/C][C]21856.1[/C][C]20333.1[/C][C]1523.01[/C][C]-717.393[/C][/ROW]
[ROW][C]52[/C][C]21414.3[/C][C]20998.9[/C][C]20476.4[/C][C]522.486[/C][C]415.393[/C][/ROW]
[ROW][C]53[/C][C]20799.2[/C][C]20358.9[/C][C]20658.6[/C][C]-299.638[/C][C]440.279[/C][/ROW]
[ROW][C]54[/C][C]22773.6[/C][C]21686.9[/C][C]20864.8[/C][C]822.041[/C][C]1086.75[/C][/ROW]
[ROW][C]55[/C][C]19747.2[/C][C]NA[/C][C]NA[/C][C]-475.452[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]19910.7[/C][C]NA[/C][C]NA[/C][C]-1716.92[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]22051.7[/C][C]NA[/C][C]NA[/C][C]262.337[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]21705[/C][C]NA[/C][C]NA[/C][C]1102.78[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]22328.8[/C][C]NA[/C][C]NA[/C][C]-9.73247[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]20910.3[/C][C]NA[/C][C]NA[/C][C]-809.084[/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
120709.9NANA-510.349NA
221227.3NANA-411.477NA
323009.8NANA1523.01NA
420416.2NANA522.486NA
520929.6NANA-299.638NA
620763.9NANA822.041NA
719607.420246.520722-475.452-639.148
81941918984.720701.6-1716.92434.286
919584.920905.920643.6262.337-1321.03
102187821748.920646.11102.78129.073
1121745.520641.420651.2-9.732471104.08
1219206.81979820607.1-809.084-591.221
1321041.320099.620609.9-510.349941.749
1420407.120176.720588.1-411.477230.436
152243722113.820590.81523.01323.195
1621050.321152.420629.9522.486-102.07
1720415.720264.120563.8-299.638151.55
1820220.621363.120541822.041-1142.47
1920217.820097.620573-475.452120.244
2018286.418843.920560.8-1716.92-557.473
2120781.320779.620517.3262.3371.68351
2221619.621588.320485.51102.7831.3148
2320417.620457.720467.4-9.73247-40.08
2419988.619654.820463.9-809.084333.817
2521026.919968.320478.6-510.3491058.61
2620128.320101.520513-411.47726.8106
2721671.522120.520597.51523.01-449.03
2821053.221173.820651.3522.486-120.553
2919978.620327.620627.2-299.638-348.958
3020572.621415.720593.7822.041-843.137
3120220.420023.920499.3-475.452196.548
3219107.61865020366.9-1716.92457.623
3321989.520614.920352.6262.3371374.56
3421701.221449.920347.21102.78251.256
3519758.320272.420282.1-9.73247-514.051
3619843.919480.520289.6-809.084363.388
3718906.219788.320298.6-510.349-882.088
3819071.219798.720210.2-411.477-727.502
3922385.621586.720063.71523.01798.866
4020208.520445.619923.1522.486-237.132
4119261.419548.619848.3-299.638-287.233
4221470.120615.619793.6822.041854.504
4319539.919261.919737.4-475.452277.994
4417665.118043.919760.8-1716.92-378.798
4519917.220016.819754.4262.337-99.5748
4620399.520855.519752.71102.78-456.006
471926319857.319867-9.73247-594.309
481902619176.319985.4-809.084-150.346
4918375.41953820048.4-510.349-1162.63
502016519739.120150.6-411.477425.894
5121138.721856.120333.11523.01-717.393
5221414.320998.920476.4522.486415.393
5320799.220358.920658.6-299.638440.279
5422773.621686.920864.8822.0411086.75
5519747.2NANA-475.452NA
5619910.7NANA-1716.92NA
5722051.7NANA262.337NA
5821705NANA1102.78NA
5922328.8NANA-9.73247NA
6020910.3NANA-809.084NA



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