Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationMon, 28 Nov 2016 22:41:52 +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/28/t14803729332cjavutvkcpr1jj.htm/, Retrieved Sat, 04 May 2024 16:33:40 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sat, 04 May 2024 16:33:40 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
1,336
1,3649
1,3999
1,4442
1,4349
1,4388
1,4264
1,4343
1,377
1,3706
1,3556
1,3179
1,2905
1,3224
1,3201
1,3162
1,2789
1,2526
1,2288
1,24
1,2856
1,2974
1,2828
1,3119
1,3288
1,3359
1,2964
1,3026
1,2982
1,3189
1,308
1,331
1,3348
1,3635
1,3493
1,3704
1,361
1,3658
1,3823
1,3812
1,3732
1,3592
1,3539
1,3316
1,2901
1,2673
1,2472
1,2331
1,1621
1,135
1,0838
1,0779
1,115
1,1213
1,0996
1,1139
1,1221
1,1235
1,0736
1,0877




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 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]2 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 time2 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.336NANA0.994036NA
21.3649NANA1.00193NA
31.3999NANA0.990767NA
41.4442NANA0.993911NA
51.4349NANA0.997071NA
61.4388NANA0.99917NA
71.42641.387811.389810.9985561.02781
81.43431.39381.386151.005521.02906
91.3771.382611.381051.001130.995941
101.37061.384321.372391.008690.990086
111.35561.363421.360561.00210.994265
121.31791.355871.34631.007110.971997
131.29051.322371.330310.9940360.975896
141.32241.316521.313981.001931.00447
151.32011.290051.302070.9907671.02329
161.31621.287331.295220.9939111.02243
171.27891.285361.289130.9970710.994976
181.25261.284781.285850.999170.974951
191.22881.285341.28720.9985560.956014
201.241.296471.289351.005520.956441
211.28561.290391.288931.001130.996291
221.29741.298571.287381.008690.999101
231.28281.290321.287611.00210.994172
241.31191.300361.291181.007111.00888
251.32881.28951.297240.9940361.03047
261.33591.306851.304331.001931.02223
271.29641.298081.310180.9907670.998708
281.30261.306971.314980.9939110.996654
291.29821.316641.32050.9970710.985998
301.31891.324611.325710.999170.995688
311.3081.327571.329490.9985560.985257
321.3311.339431.332081.005520.993704
331.33481.338421.33691.001130.997299
341.36351.355441.343761.008691.00595
351.34931.3531.350161.00210.997267
361.37041.364591.354961.007111.00426
371.3611.350451.358550.9940361.00781
381.36581.363121.360491.001931.00196
391.38231.346111.358650.9907671.02689
401.38121.344551.352780.9939111.02726
411.37321.340581.344520.9970711.02433
421.35921.333441.334550.999171.01932
431.35391.318631.320540.9985561.02675
441.33161.309831.302631.005521.01662
451.29011.282031.280581.001131.0063
461.26731.266421.25551.008691.0007
471.24721.23471.232111.00211.01012
481.23311.220051.211441.007111.0107
491.16211.183831.190930.9940360.981647
501.1351.173531.171261.001930.96717
511.08381.144531.155190.9907670.946943
521.07791.135251.14220.9939110.949486
531.1151.125671.128980.9970710.990523
541.12131.114761.115680.999171.00587
551.0996NANA0.998556NA
561.1139NANA1.00552NA
571.1221NANA1.00113NA
581.1235NANA1.00869NA
591.0736NANA1.0021NA
601.0877NANA1.00711NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 1.336 & NA & NA & 0.994036 & NA \tabularnewline
2 & 1.3649 & NA & NA & 1.00193 & NA \tabularnewline
3 & 1.3999 & NA & NA & 0.990767 & NA \tabularnewline
4 & 1.4442 & NA & NA & 0.993911 & NA \tabularnewline
5 & 1.4349 & NA & NA & 0.997071 & NA \tabularnewline
6 & 1.4388 & NA & NA & 0.99917 & NA \tabularnewline
7 & 1.4264 & 1.38781 & 1.38981 & 0.998556 & 1.02781 \tabularnewline
8 & 1.4343 & 1.3938 & 1.38615 & 1.00552 & 1.02906 \tabularnewline
9 & 1.377 & 1.38261 & 1.38105 & 1.00113 & 0.995941 \tabularnewline
10 & 1.3706 & 1.38432 & 1.37239 & 1.00869 & 0.990086 \tabularnewline
11 & 1.3556 & 1.36342 & 1.36056 & 1.0021 & 0.994265 \tabularnewline
12 & 1.3179 & 1.35587 & 1.3463 & 1.00711 & 0.971997 \tabularnewline
13 & 1.2905 & 1.32237 & 1.33031 & 0.994036 & 0.975896 \tabularnewline
14 & 1.3224 & 1.31652 & 1.31398 & 1.00193 & 1.00447 \tabularnewline
15 & 1.3201 & 1.29005 & 1.30207 & 0.990767 & 1.02329 \tabularnewline
16 & 1.3162 & 1.28733 & 1.29522 & 0.993911 & 1.02243 \tabularnewline
17 & 1.2789 & 1.28536 & 1.28913 & 0.997071 & 0.994976 \tabularnewline
18 & 1.2526 & 1.28478 & 1.28585 & 0.99917 & 0.974951 \tabularnewline
19 & 1.2288 & 1.28534 & 1.2872 & 0.998556 & 0.956014 \tabularnewline
20 & 1.24 & 1.29647 & 1.28935 & 1.00552 & 0.956441 \tabularnewline
21 & 1.2856 & 1.29039 & 1.28893 & 1.00113 & 0.996291 \tabularnewline
22 & 1.2974 & 1.29857 & 1.28738 & 1.00869 & 0.999101 \tabularnewline
23 & 1.2828 & 1.29032 & 1.28761 & 1.0021 & 0.994172 \tabularnewline
24 & 1.3119 & 1.30036 & 1.29118 & 1.00711 & 1.00888 \tabularnewline
25 & 1.3288 & 1.2895 & 1.29724 & 0.994036 & 1.03047 \tabularnewline
26 & 1.3359 & 1.30685 & 1.30433 & 1.00193 & 1.02223 \tabularnewline
27 & 1.2964 & 1.29808 & 1.31018 & 0.990767 & 0.998708 \tabularnewline
28 & 1.3026 & 1.30697 & 1.31498 & 0.993911 & 0.996654 \tabularnewline
29 & 1.2982 & 1.31664 & 1.3205 & 0.997071 & 0.985998 \tabularnewline
30 & 1.3189 & 1.32461 & 1.32571 & 0.99917 & 0.995688 \tabularnewline
31 & 1.308 & 1.32757 & 1.32949 & 0.998556 & 0.985257 \tabularnewline
32 & 1.331 & 1.33943 & 1.33208 & 1.00552 & 0.993704 \tabularnewline
33 & 1.3348 & 1.33842 & 1.3369 & 1.00113 & 0.997299 \tabularnewline
34 & 1.3635 & 1.35544 & 1.34376 & 1.00869 & 1.00595 \tabularnewline
35 & 1.3493 & 1.353 & 1.35016 & 1.0021 & 0.997267 \tabularnewline
36 & 1.3704 & 1.36459 & 1.35496 & 1.00711 & 1.00426 \tabularnewline
37 & 1.361 & 1.35045 & 1.35855 & 0.994036 & 1.00781 \tabularnewline
38 & 1.3658 & 1.36312 & 1.36049 & 1.00193 & 1.00196 \tabularnewline
39 & 1.3823 & 1.34611 & 1.35865 & 0.990767 & 1.02689 \tabularnewline
40 & 1.3812 & 1.34455 & 1.35278 & 0.993911 & 1.02726 \tabularnewline
41 & 1.3732 & 1.34058 & 1.34452 & 0.997071 & 1.02433 \tabularnewline
42 & 1.3592 & 1.33344 & 1.33455 & 0.99917 & 1.01932 \tabularnewline
43 & 1.3539 & 1.31863 & 1.32054 & 0.998556 & 1.02675 \tabularnewline
44 & 1.3316 & 1.30983 & 1.30263 & 1.00552 & 1.01662 \tabularnewline
45 & 1.2901 & 1.28203 & 1.28058 & 1.00113 & 1.0063 \tabularnewline
46 & 1.2673 & 1.26642 & 1.2555 & 1.00869 & 1.0007 \tabularnewline
47 & 1.2472 & 1.2347 & 1.23211 & 1.0021 & 1.01012 \tabularnewline
48 & 1.2331 & 1.22005 & 1.21144 & 1.00711 & 1.0107 \tabularnewline
49 & 1.1621 & 1.18383 & 1.19093 & 0.994036 & 0.981647 \tabularnewline
50 & 1.135 & 1.17353 & 1.17126 & 1.00193 & 0.96717 \tabularnewline
51 & 1.0838 & 1.14453 & 1.15519 & 0.990767 & 0.946943 \tabularnewline
52 & 1.0779 & 1.13525 & 1.1422 & 0.993911 & 0.949486 \tabularnewline
53 & 1.115 & 1.12567 & 1.12898 & 0.997071 & 0.990523 \tabularnewline
54 & 1.1213 & 1.11476 & 1.11568 & 0.99917 & 1.00587 \tabularnewline
55 & 1.0996 & NA & NA & 0.998556 & NA \tabularnewline
56 & 1.1139 & NA & NA & 1.00552 & NA \tabularnewline
57 & 1.1221 & NA & NA & 1.00113 & NA \tabularnewline
58 & 1.1235 & NA & NA & 1.00869 & NA \tabularnewline
59 & 1.0736 & NA & NA & 1.0021 & NA \tabularnewline
60 & 1.0877 & NA & NA & 1.00711 & 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]1.336[/C][C]NA[/C][C]NA[/C][C]0.994036[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]1.3649[/C][C]NA[/C][C]NA[/C][C]1.00193[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]1.3999[/C][C]NA[/C][C]NA[/C][C]0.990767[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]1.4442[/C][C]NA[/C][C]NA[/C][C]0.993911[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]1.4349[/C][C]NA[/C][C]NA[/C][C]0.997071[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]1.4388[/C][C]NA[/C][C]NA[/C][C]0.99917[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]1.4264[/C][C]1.38781[/C][C]1.38981[/C][C]0.998556[/C][C]1.02781[/C][/ROW]
[ROW][C]8[/C][C]1.4343[/C][C]1.3938[/C][C]1.38615[/C][C]1.00552[/C][C]1.02906[/C][/ROW]
[ROW][C]9[/C][C]1.377[/C][C]1.38261[/C][C]1.38105[/C][C]1.00113[/C][C]0.995941[/C][/ROW]
[ROW][C]10[/C][C]1.3706[/C][C]1.38432[/C][C]1.37239[/C][C]1.00869[/C][C]0.990086[/C][/ROW]
[ROW][C]11[/C][C]1.3556[/C][C]1.36342[/C][C]1.36056[/C][C]1.0021[/C][C]0.994265[/C][/ROW]
[ROW][C]12[/C][C]1.3179[/C][C]1.35587[/C][C]1.3463[/C][C]1.00711[/C][C]0.971997[/C][/ROW]
[ROW][C]13[/C][C]1.2905[/C][C]1.32237[/C][C]1.33031[/C][C]0.994036[/C][C]0.975896[/C][/ROW]
[ROW][C]14[/C][C]1.3224[/C][C]1.31652[/C][C]1.31398[/C][C]1.00193[/C][C]1.00447[/C][/ROW]
[ROW][C]15[/C][C]1.3201[/C][C]1.29005[/C][C]1.30207[/C][C]0.990767[/C][C]1.02329[/C][/ROW]
[ROW][C]16[/C][C]1.3162[/C][C]1.28733[/C][C]1.29522[/C][C]0.993911[/C][C]1.02243[/C][/ROW]
[ROW][C]17[/C][C]1.2789[/C][C]1.28536[/C][C]1.28913[/C][C]0.997071[/C][C]0.994976[/C][/ROW]
[ROW][C]18[/C][C]1.2526[/C][C]1.28478[/C][C]1.28585[/C][C]0.99917[/C][C]0.974951[/C][/ROW]
[ROW][C]19[/C][C]1.2288[/C][C]1.28534[/C][C]1.2872[/C][C]0.998556[/C][C]0.956014[/C][/ROW]
[ROW][C]20[/C][C]1.24[/C][C]1.29647[/C][C]1.28935[/C][C]1.00552[/C][C]0.956441[/C][/ROW]
[ROW][C]21[/C][C]1.2856[/C][C]1.29039[/C][C]1.28893[/C][C]1.00113[/C][C]0.996291[/C][/ROW]
[ROW][C]22[/C][C]1.2974[/C][C]1.29857[/C][C]1.28738[/C][C]1.00869[/C][C]0.999101[/C][/ROW]
[ROW][C]23[/C][C]1.2828[/C][C]1.29032[/C][C]1.28761[/C][C]1.0021[/C][C]0.994172[/C][/ROW]
[ROW][C]24[/C][C]1.3119[/C][C]1.30036[/C][C]1.29118[/C][C]1.00711[/C][C]1.00888[/C][/ROW]
[ROW][C]25[/C][C]1.3288[/C][C]1.2895[/C][C]1.29724[/C][C]0.994036[/C][C]1.03047[/C][/ROW]
[ROW][C]26[/C][C]1.3359[/C][C]1.30685[/C][C]1.30433[/C][C]1.00193[/C][C]1.02223[/C][/ROW]
[ROW][C]27[/C][C]1.2964[/C][C]1.29808[/C][C]1.31018[/C][C]0.990767[/C][C]0.998708[/C][/ROW]
[ROW][C]28[/C][C]1.3026[/C][C]1.30697[/C][C]1.31498[/C][C]0.993911[/C][C]0.996654[/C][/ROW]
[ROW][C]29[/C][C]1.2982[/C][C]1.31664[/C][C]1.3205[/C][C]0.997071[/C][C]0.985998[/C][/ROW]
[ROW][C]30[/C][C]1.3189[/C][C]1.32461[/C][C]1.32571[/C][C]0.99917[/C][C]0.995688[/C][/ROW]
[ROW][C]31[/C][C]1.308[/C][C]1.32757[/C][C]1.32949[/C][C]0.998556[/C][C]0.985257[/C][/ROW]
[ROW][C]32[/C][C]1.331[/C][C]1.33943[/C][C]1.33208[/C][C]1.00552[/C][C]0.993704[/C][/ROW]
[ROW][C]33[/C][C]1.3348[/C][C]1.33842[/C][C]1.3369[/C][C]1.00113[/C][C]0.997299[/C][/ROW]
[ROW][C]34[/C][C]1.3635[/C][C]1.35544[/C][C]1.34376[/C][C]1.00869[/C][C]1.00595[/C][/ROW]
[ROW][C]35[/C][C]1.3493[/C][C]1.353[/C][C]1.35016[/C][C]1.0021[/C][C]0.997267[/C][/ROW]
[ROW][C]36[/C][C]1.3704[/C][C]1.36459[/C][C]1.35496[/C][C]1.00711[/C][C]1.00426[/C][/ROW]
[ROW][C]37[/C][C]1.361[/C][C]1.35045[/C][C]1.35855[/C][C]0.994036[/C][C]1.00781[/C][/ROW]
[ROW][C]38[/C][C]1.3658[/C][C]1.36312[/C][C]1.36049[/C][C]1.00193[/C][C]1.00196[/C][/ROW]
[ROW][C]39[/C][C]1.3823[/C][C]1.34611[/C][C]1.35865[/C][C]0.990767[/C][C]1.02689[/C][/ROW]
[ROW][C]40[/C][C]1.3812[/C][C]1.34455[/C][C]1.35278[/C][C]0.993911[/C][C]1.02726[/C][/ROW]
[ROW][C]41[/C][C]1.3732[/C][C]1.34058[/C][C]1.34452[/C][C]0.997071[/C][C]1.02433[/C][/ROW]
[ROW][C]42[/C][C]1.3592[/C][C]1.33344[/C][C]1.33455[/C][C]0.99917[/C][C]1.01932[/C][/ROW]
[ROW][C]43[/C][C]1.3539[/C][C]1.31863[/C][C]1.32054[/C][C]0.998556[/C][C]1.02675[/C][/ROW]
[ROW][C]44[/C][C]1.3316[/C][C]1.30983[/C][C]1.30263[/C][C]1.00552[/C][C]1.01662[/C][/ROW]
[ROW][C]45[/C][C]1.2901[/C][C]1.28203[/C][C]1.28058[/C][C]1.00113[/C][C]1.0063[/C][/ROW]
[ROW][C]46[/C][C]1.2673[/C][C]1.26642[/C][C]1.2555[/C][C]1.00869[/C][C]1.0007[/C][/ROW]
[ROW][C]47[/C][C]1.2472[/C][C]1.2347[/C][C]1.23211[/C][C]1.0021[/C][C]1.01012[/C][/ROW]
[ROW][C]48[/C][C]1.2331[/C][C]1.22005[/C][C]1.21144[/C][C]1.00711[/C][C]1.0107[/C][/ROW]
[ROW][C]49[/C][C]1.1621[/C][C]1.18383[/C][C]1.19093[/C][C]0.994036[/C][C]0.981647[/C][/ROW]
[ROW][C]50[/C][C]1.135[/C][C]1.17353[/C][C]1.17126[/C][C]1.00193[/C][C]0.96717[/C][/ROW]
[ROW][C]51[/C][C]1.0838[/C][C]1.14453[/C][C]1.15519[/C][C]0.990767[/C][C]0.946943[/C][/ROW]
[ROW][C]52[/C][C]1.0779[/C][C]1.13525[/C][C]1.1422[/C][C]0.993911[/C][C]0.949486[/C][/ROW]
[ROW][C]53[/C][C]1.115[/C][C]1.12567[/C][C]1.12898[/C][C]0.997071[/C][C]0.990523[/C][/ROW]
[ROW][C]54[/C][C]1.1213[/C][C]1.11476[/C][C]1.11568[/C][C]0.99917[/C][C]1.00587[/C][/ROW]
[ROW][C]55[/C][C]1.0996[/C][C]NA[/C][C]NA[/C][C]0.998556[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]1.1139[/C][C]NA[/C][C]NA[/C][C]1.00552[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]1.1221[/C][C]NA[/C][C]NA[/C][C]1.00113[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]1.1235[/C][C]NA[/C][C]NA[/C][C]1.00869[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]1.0736[/C][C]NA[/C][C]NA[/C][C]1.0021[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]1.0877[/C][C]NA[/C][C]NA[/C][C]1.00711[/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
11.336NANA0.994036NA
21.3649NANA1.00193NA
31.3999NANA0.990767NA
41.4442NANA0.993911NA
51.4349NANA0.997071NA
61.4388NANA0.99917NA
71.42641.387811.389810.9985561.02781
81.43431.39381.386151.005521.02906
91.3771.382611.381051.001130.995941
101.37061.384321.372391.008690.990086
111.35561.363421.360561.00210.994265
121.31791.355871.34631.007110.971997
131.29051.322371.330310.9940360.975896
141.32241.316521.313981.001931.00447
151.32011.290051.302070.9907671.02329
161.31621.287331.295220.9939111.02243
171.27891.285361.289130.9970710.994976
181.25261.284781.285850.999170.974951
191.22881.285341.28720.9985560.956014
201.241.296471.289351.005520.956441
211.28561.290391.288931.001130.996291
221.29741.298571.287381.008690.999101
231.28281.290321.287611.00210.994172
241.31191.300361.291181.007111.00888
251.32881.28951.297240.9940361.03047
261.33591.306851.304331.001931.02223
271.29641.298081.310180.9907670.998708
281.30261.306971.314980.9939110.996654
291.29821.316641.32050.9970710.985998
301.31891.324611.325710.999170.995688
311.3081.327571.329490.9985560.985257
321.3311.339431.332081.005520.993704
331.33481.338421.33691.001130.997299
341.36351.355441.343761.008691.00595
351.34931.3531.350161.00210.997267
361.37041.364591.354961.007111.00426
371.3611.350451.358550.9940361.00781
381.36581.363121.360491.001931.00196
391.38231.346111.358650.9907671.02689
401.38121.344551.352780.9939111.02726
411.37321.340581.344520.9970711.02433
421.35921.333441.334550.999171.01932
431.35391.318631.320540.9985561.02675
441.33161.309831.302631.005521.01662
451.29011.282031.280581.001131.0063
461.26731.266421.25551.008691.0007
471.24721.23471.232111.00211.01012
481.23311.220051.211441.007111.0107
491.16211.183831.190930.9940360.981647
501.1351.173531.171261.001930.96717
511.08381.144531.155190.9907670.946943
521.07791.135251.14220.9939110.949486
531.1151.125671.128980.9970710.990523
541.12131.114761.115680.999171.00587
551.0996NANA0.998556NA
561.1139NANA1.00552NA
571.1221NANA1.00113NA
581.1235NANA1.00869NA
591.0736NANA1.0021NA
601.0877NANA1.00711NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; 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')