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 computationWed, 29 Dec 2010 15:01:09 +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/2010/Dec/29/t1293634787jy88dz1l9z8ldff.htm/, Retrieved Fri, 03 May 2024 14:24:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116893, Retrieved Fri, 03 May 2024 14:24:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Monthly US soldie...] [2010-11-02 12:07:39] [b98453cac15ba1066b407e146608df68]
- RMPD  [Classical Decomposition] [] [2010-12-07 12:11:14] [055a14fb8042f7ec27c73c5dfc3bfa50]
-    D      [Classical Decomposition] [Paper: Classical ...] [2010-12-29 15:01:09] [4a884731c0d5b018eba30cab82c9416a] [Current]
Feedback Forum

Post a new message
Dataseries X:
31245
30951
30872
30752
30967
30781
30681
31356
31434
31594
31949
32396
32441
32447
32288
32418
32346
32091
31855
31683
31615
31840
31536
31383
31638
31626
31720
31472
31372
31419
31341
31171
31036
30532
30666
30571
30173
30032
29874
30018
29911
29963
30050
29901
29544
29451
29293
29334
29389
29563




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116893&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116893&T=0

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







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
131245NANA74.8148148148164NA
230951NANA54.7870370370366NA
330872NANA26.9120370370342NA
430752NANA91.592592592589NA
530967NANA65.2453703703675NA
630781NANA92.6620370370354NA
73068131399.912037037031298101.912037037038-718.912037037036
83135631430.856481481531410.166666666720.6898148148164-74.8564814814818
93143431282.412037037031531.5-249.087962962963151.587962962967
103159431572.300925925931659.9166666667-87.615740740738321.6990740740766
113194931695.217592592631786.7916666667-91.5740740740717253.782407407409
123239631798.495370370431898.8333333333-100.337962962960597.504629629628
133244132077.148148148132002.333333333374.8148148148164363.851851851850
143244732119.662037037032064.87554.7870370370366327.337962962964
153228832112.953703703732086.041666666726.9120370370342175.046296296296
163241832195.425925925932103.833333333391.592592592589222.574074074073
173234632162.120370370432096.87565.2453703703675183.879629629628
183209132130.120370370432037.458333333392.6620370370354-39.1203703703723
193185532063.703703703731961.7916666667101.912037037038-208.703703703701
203168331914.814814814831894.12520.6898148148164-231.814814814814
213161531587.162037037031836.25-249.08796296296327.8379629629671
223184031685.550925925931773.1666666667-87.6157407407383154.449074074073
233153631601.592592592631693.1666666667-91.5740740740717-65.5925925925876
243138331524.245370370431624.5833333333-100.337962962960-141.245370370369
253163831649.981481481531575.166666666774.8148148148164-11.9814814814818
263162631587.203703703731532.416666666754.787037037036638.7962962962993
273172031513.870370370431486.958333333326.9120370370342206.129629629635
283147231499.925925925931408.333333333391.592592592589-27.9259259259197
293137231382.828703703731317.583333333365.2453703703675-10.8287037037007
303141931340.162037037031247.592.662037037035478.8379629629671
313134131254.537037037031152.625101.91203703703886.4629629629671
323117131045.856481481531025.166666666720.6898148148164125.143518518522
333103630632.745370370430881.8333333333-249.087962962963403.254629629631
343053230656.717592592630744.3333333333-87.6157407407383-124.717592592588
353066630531.300925925930622.875-91.5740740740717134.699074074077
363057130400.995370370430501.3333333333-100.337962962960170.004629629631
373017330461.689814814830386.87574.8148148148164-288.68981481481
383003230334.953703703730280.166666666754.7870370370366-302.953703703701
392987430191.995370370430165.083333333326.9120370370342-317.995370370365
403001830149.467592592630057.87591.592592592589-131.467592592588
412991130020.870370370429955.62565.2453703703675-109.870370370369
422996329939.537037037029846.87592.662037037035423.4629629629635
433005029864.578703703729762.6666666667101.912037037038185.421296296299
442990129731.148148148129710.458333333320.6898148148164169.851851851850
4529544NANA-249.087962962963NA
4629451NANA-87.6157407407383NA
4729293NANA-91.5740740740717NA
4829334NANA-100.337962962960NA
4929389NANANANA
5029563NANANANA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 31245 & NA & NA & 74.8148148148164 & NA \tabularnewline
2 & 30951 & NA & NA & 54.7870370370366 & NA \tabularnewline
3 & 30872 & NA & NA & 26.9120370370342 & NA \tabularnewline
4 & 30752 & NA & NA & 91.592592592589 & NA \tabularnewline
5 & 30967 & NA & NA & 65.2453703703675 & NA \tabularnewline
6 & 30781 & NA & NA & 92.6620370370354 & NA \tabularnewline
7 & 30681 & 31399.9120370370 & 31298 & 101.912037037038 & -718.912037037036 \tabularnewline
8 & 31356 & 31430.8564814815 & 31410.1666666667 & 20.6898148148164 & -74.8564814814818 \tabularnewline
9 & 31434 & 31282.4120370370 & 31531.5 & -249.087962962963 & 151.587962962967 \tabularnewline
10 & 31594 & 31572.3009259259 & 31659.9166666667 & -87.6157407407383 & 21.6990740740766 \tabularnewline
11 & 31949 & 31695.2175925926 & 31786.7916666667 & -91.5740740740717 & 253.782407407409 \tabularnewline
12 & 32396 & 31798.4953703704 & 31898.8333333333 & -100.337962962960 & 597.504629629628 \tabularnewline
13 & 32441 & 32077.1481481481 & 32002.3333333333 & 74.8148148148164 & 363.851851851850 \tabularnewline
14 & 32447 & 32119.6620370370 & 32064.875 & 54.7870370370366 & 327.337962962964 \tabularnewline
15 & 32288 & 32112.9537037037 & 32086.0416666667 & 26.9120370370342 & 175.046296296296 \tabularnewline
16 & 32418 & 32195.4259259259 & 32103.8333333333 & 91.592592592589 & 222.574074074073 \tabularnewline
17 & 32346 & 32162.1203703704 & 32096.875 & 65.2453703703675 & 183.879629629628 \tabularnewline
18 & 32091 & 32130.1203703704 & 32037.4583333333 & 92.6620370370354 & -39.1203703703723 \tabularnewline
19 & 31855 & 32063.7037037037 & 31961.7916666667 & 101.912037037038 & -208.703703703701 \tabularnewline
20 & 31683 & 31914.8148148148 & 31894.125 & 20.6898148148164 & -231.814814814814 \tabularnewline
21 & 31615 & 31587.1620370370 & 31836.25 & -249.087962962963 & 27.8379629629671 \tabularnewline
22 & 31840 & 31685.5509259259 & 31773.1666666667 & -87.6157407407383 & 154.449074074073 \tabularnewline
23 & 31536 & 31601.5925925926 & 31693.1666666667 & -91.5740740740717 & -65.5925925925876 \tabularnewline
24 & 31383 & 31524.2453703704 & 31624.5833333333 & -100.337962962960 & -141.245370370369 \tabularnewline
25 & 31638 & 31649.9814814815 & 31575.1666666667 & 74.8148148148164 & -11.9814814814818 \tabularnewline
26 & 31626 & 31587.2037037037 & 31532.4166666667 & 54.7870370370366 & 38.7962962962993 \tabularnewline
27 & 31720 & 31513.8703703704 & 31486.9583333333 & 26.9120370370342 & 206.129629629635 \tabularnewline
28 & 31472 & 31499.9259259259 & 31408.3333333333 & 91.592592592589 & -27.9259259259197 \tabularnewline
29 & 31372 & 31382.8287037037 & 31317.5833333333 & 65.2453703703675 & -10.8287037037007 \tabularnewline
30 & 31419 & 31340.1620370370 & 31247.5 & 92.6620370370354 & 78.8379629629671 \tabularnewline
31 & 31341 & 31254.5370370370 & 31152.625 & 101.912037037038 & 86.4629629629671 \tabularnewline
32 & 31171 & 31045.8564814815 & 31025.1666666667 & 20.6898148148164 & 125.143518518522 \tabularnewline
33 & 31036 & 30632.7453703704 & 30881.8333333333 & -249.087962962963 & 403.254629629631 \tabularnewline
34 & 30532 & 30656.7175925926 & 30744.3333333333 & -87.6157407407383 & -124.717592592588 \tabularnewline
35 & 30666 & 30531.3009259259 & 30622.875 & -91.5740740740717 & 134.699074074077 \tabularnewline
36 & 30571 & 30400.9953703704 & 30501.3333333333 & -100.337962962960 & 170.004629629631 \tabularnewline
37 & 30173 & 30461.6898148148 & 30386.875 & 74.8148148148164 & -288.68981481481 \tabularnewline
38 & 30032 & 30334.9537037037 & 30280.1666666667 & 54.7870370370366 & -302.953703703701 \tabularnewline
39 & 29874 & 30191.9953703704 & 30165.0833333333 & 26.9120370370342 & -317.995370370365 \tabularnewline
40 & 30018 & 30149.4675925926 & 30057.875 & 91.592592592589 & -131.467592592588 \tabularnewline
41 & 29911 & 30020.8703703704 & 29955.625 & 65.2453703703675 & -109.870370370369 \tabularnewline
42 & 29963 & 29939.5370370370 & 29846.875 & 92.6620370370354 & 23.4629629629635 \tabularnewline
43 & 30050 & 29864.5787037037 & 29762.6666666667 & 101.912037037038 & 185.421296296299 \tabularnewline
44 & 29901 & 29731.1481481481 & 29710.4583333333 & 20.6898148148164 & 169.851851851850 \tabularnewline
45 & 29544 & NA & NA & -249.087962962963 & NA \tabularnewline
46 & 29451 & NA & NA & -87.6157407407383 & NA \tabularnewline
47 & 29293 & NA & NA & -91.5740740740717 & NA \tabularnewline
48 & 29334 & NA & NA & -100.337962962960 & NA \tabularnewline
49 & 29389 & NA & NA & NA & NA \tabularnewline
50 & 29563 & NA & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116893&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]31245[/C][C]NA[/C][C]NA[/C][C]74.8148148148164[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]30951[/C][C]NA[/C][C]NA[/C][C]54.7870370370366[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]30872[/C][C]NA[/C][C]NA[/C][C]26.9120370370342[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]30752[/C][C]NA[/C][C]NA[/C][C]91.592592592589[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]30967[/C][C]NA[/C][C]NA[/C][C]65.2453703703675[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]30781[/C][C]NA[/C][C]NA[/C][C]92.6620370370354[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]30681[/C][C]31399.9120370370[/C][C]31298[/C][C]101.912037037038[/C][C]-718.912037037036[/C][/ROW]
[ROW][C]8[/C][C]31356[/C][C]31430.8564814815[/C][C]31410.1666666667[/C][C]20.6898148148164[/C][C]-74.8564814814818[/C][/ROW]
[ROW][C]9[/C][C]31434[/C][C]31282.4120370370[/C][C]31531.5[/C][C]-249.087962962963[/C][C]151.587962962967[/C][/ROW]
[ROW][C]10[/C][C]31594[/C][C]31572.3009259259[/C][C]31659.9166666667[/C][C]-87.6157407407383[/C][C]21.6990740740766[/C][/ROW]
[ROW][C]11[/C][C]31949[/C][C]31695.2175925926[/C][C]31786.7916666667[/C][C]-91.5740740740717[/C][C]253.782407407409[/C][/ROW]
[ROW][C]12[/C][C]32396[/C][C]31798.4953703704[/C][C]31898.8333333333[/C][C]-100.337962962960[/C][C]597.504629629628[/C][/ROW]
[ROW][C]13[/C][C]32441[/C][C]32077.1481481481[/C][C]32002.3333333333[/C][C]74.8148148148164[/C][C]363.851851851850[/C][/ROW]
[ROW][C]14[/C][C]32447[/C][C]32119.6620370370[/C][C]32064.875[/C][C]54.7870370370366[/C][C]327.337962962964[/C][/ROW]
[ROW][C]15[/C][C]32288[/C][C]32112.9537037037[/C][C]32086.0416666667[/C][C]26.9120370370342[/C][C]175.046296296296[/C][/ROW]
[ROW][C]16[/C][C]32418[/C][C]32195.4259259259[/C][C]32103.8333333333[/C][C]91.592592592589[/C][C]222.574074074073[/C][/ROW]
[ROW][C]17[/C][C]32346[/C][C]32162.1203703704[/C][C]32096.875[/C][C]65.2453703703675[/C][C]183.879629629628[/C][/ROW]
[ROW][C]18[/C][C]32091[/C][C]32130.1203703704[/C][C]32037.4583333333[/C][C]92.6620370370354[/C][C]-39.1203703703723[/C][/ROW]
[ROW][C]19[/C][C]31855[/C][C]32063.7037037037[/C][C]31961.7916666667[/C][C]101.912037037038[/C][C]-208.703703703701[/C][/ROW]
[ROW][C]20[/C][C]31683[/C][C]31914.8148148148[/C][C]31894.125[/C][C]20.6898148148164[/C][C]-231.814814814814[/C][/ROW]
[ROW][C]21[/C][C]31615[/C][C]31587.1620370370[/C][C]31836.25[/C][C]-249.087962962963[/C][C]27.8379629629671[/C][/ROW]
[ROW][C]22[/C][C]31840[/C][C]31685.5509259259[/C][C]31773.1666666667[/C][C]-87.6157407407383[/C][C]154.449074074073[/C][/ROW]
[ROW][C]23[/C][C]31536[/C][C]31601.5925925926[/C][C]31693.1666666667[/C][C]-91.5740740740717[/C][C]-65.5925925925876[/C][/ROW]
[ROW][C]24[/C][C]31383[/C][C]31524.2453703704[/C][C]31624.5833333333[/C][C]-100.337962962960[/C][C]-141.245370370369[/C][/ROW]
[ROW][C]25[/C][C]31638[/C][C]31649.9814814815[/C][C]31575.1666666667[/C][C]74.8148148148164[/C][C]-11.9814814814818[/C][/ROW]
[ROW][C]26[/C][C]31626[/C][C]31587.2037037037[/C][C]31532.4166666667[/C][C]54.7870370370366[/C][C]38.7962962962993[/C][/ROW]
[ROW][C]27[/C][C]31720[/C][C]31513.8703703704[/C][C]31486.9583333333[/C][C]26.9120370370342[/C][C]206.129629629635[/C][/ROW]
[ROW][C]28[/C][C]31472[/C][C]31499.9259259259[/C][C]31408.3333333333[/C][C]91.592592592589[/C][C]-27.9259259259197[/C][/ROW]
[ROW][C]29[/C][C]31372[/C][C]31382.8287037037[/C][C]31317.5833333333[/C][C]65.2453703703675[/C][C]-10.8287037037007[/C][/ROW]
[ROW][C]30[/C][C]31419[/C][C]31340.1620370370[/C][C]31247.5[/C][C]92.6620370370354[/C][C]78.8379629629671[/C][/ROW]
[ROW][C]31[/C][C]31341[/C][C]31254.5370370370[/C][C]31152.625[/C][C]101.912037037038[/C][C]86.4629629629671[/C][/ROW]
[ROW][C]32[/C][C]31171[/C][C]31045.8564814815[/C][C]31025.1666666667[/C][C]20.6898148148164[/C][C]125.143518518522[/C][/ROW]
[ROW][C]33[/C][C]31036[/C][C]30632.7453703704[/C][C]30881.8333333333[/C][C]-249.087962962963[/C][C]403.254629629631[/C][/ROW]
[ROW][C]34[/C][C]30532[/C][C]30656.7175925926[/C][C]30744.3333333333[/C][C]-87.6157407407383[/C][C]-124.717592592588[/C][/ROW]
[ROW][C]35[/C][C]30666[/C][C]30531.3009259259[/C][C]30622.875[/C][C]-91.5740740740717[/C][C]134.699074074077[/C][/ROW]
[ROW][C]36[/C][C]30571[/C][C]30400.9953703704[/C][C]30501.3333333333[/C][C]-100.337962962960[/C][C]170.004629629631[/C][/ROW]
[ROW][C]37[/C][C]30173[/C][C]30461.6898148148[/C][C]30386.875[/C][C]74.8148148148164[/C][C]-288.68981481481[/C][/ROW]
[ROW][C]38[/C][C]30032[/C][C]30334.9537037037[/C][C]30280.1666666667[/C][C]54.7870370370366[/C][C]-302.953703703701[/C][/ROW]
[ROW][C]39[/C][C]29874[/C][C]30191.9953703704[/C][C]30165.0833333333[/C][C]26.9120370370342[/C][C]-317.995370370365[/C][/ROW]
[ROW][C]40[/C][C]30018[/C][C]30149.4675925926[/C][C]30057.875[/C][C]91.592592592589[/C][C]-131.467592592588[/C][/ROW]
[ROW][C]41[/C][C]29911[/C][C]30020.8703703704[/C][C]29955.625[/C][C]65.2453703703675[/C][C]-109.870370370369[/C][/ROW]
[ROW][C]42[/C][C]29963[/C][C]29939.5370370370[/C][C]29846.875[/C][C]92.6620370370354[/C][C]23.4629629629635[/C][/ROW]
[ROW][C]43[/C][C]30050[/C][C]29864.5787037037[/C][C]29762.6666666667[/C][C]101.912037037038[/C][C]185.421296296299[/C][/ROW]
[ROW][C]44[/C][C]29901[/C][C]29731.1481481481[/C][C]29710.4583333333[/C][C]20.6898148148164[/C][C]169.851851851850[/C][/ROW]
[ROW][C]45[/C][C]29544[/C][C]NA[/C][C]NA[/C][C]-249.087962962963[/C][C]NA[/C][/ROW]
[ROW][C]46[/C][C]29451[/C][C]NA[/C][C]NA[/C][C]-87.6157407407383[/C][C]NA[/C][/ROW]
[ROW][C]47[/C][C]29293[/C][C]NA[/C][C]NA[/C][C]-91.5740740740717[/C][C]NA[/C][/ROW]
[ROW][C]48[/C][C]29334[/C][C]NA[/C][C]NA[/C][C]-100.337962962960[/C][C]NA[/C][/ROW]
[ROW][C]49[/C][C]29389[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]50[/C][C]29563[/C][C]NA[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116893&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116893&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
131245NANA74.8148148148164NA
230951NANA54.7870370370366NA
330872NANA26.9120370370342NA
430752NANA91.592592592589NA
530967NANA65.2453703703675NA
630781NANA92.6620370370354NA
73068131399.912037037031298101.912037037038-718.912037037036
83135631430.856481481531410.166666666720.6898148148164-74.8564814814818
93143431282.412037037031531.5-249.087962962963151.587962962967
103159431572.300925925931659.9166666667-87.615740740738321.6990740740766
113194931695.217592592631786.7916666667-91.5740740740717253.782407407409
123239631798.495370370431898.8333333333-100.337962962960597.504629629628
133244132077.148148148132002.333333333374.8148148148164363.851851851850
143244732119.662037037032064.87554.7870370370366327.337962962964
153228832112.953703703732086.041666666726.9120370370342175.046296296296
163241832195.425925925932103.833333333391.592592592589222.574074074073
173234632162.120370370432096.87565.2453703703675183.879629629628
183209132130.120370370432037.458333333392.6620370370354-39.1203703703723
193185532063.703703703731961.7916666667101.912037037038-208.703703703701
203168331914.814814814831894.12520.6898148148164-231.814814814814
213161531587.162037037031836.25-249.08796296296327.8379629629671
223184031685.550925925931773.1666666667-87.6157407407383154.449074074073
233153631601.592592592631693.1666666667-91.5740740740717-65.5925925925876
243138331524.245370370431624.5833333333-100.337962962960-141.245370370369
253163831649.981481481531575.166666666774.8148148148164-11.9814814814818
263162631587.203703703731532.416666666754.787037037036638.7962962962993
273172031513.870370370431486.958333333326.9120370370342206.129629629635
283147231499.925925925931408.333333333391.592592592589-27.9259259259197
293137231382.828703703731317.583333333365.2453703703675-10.8287037037007
303141931340.162037037031247.592.662037037035478.8379629629671
313134131254.537037037031152.625101.91203703703886.4629629629671
323117131045.856481481531025.166666666720.6898148148164125.143518518522
333103630632.745370370430881.8333333333-249.087962962963403.254629629631
343053230656.717592592630744.3333333333-87.6157407407383-124.717592592588
353066630531.300925925930622.875-91.5740740740717134.699074074077
363057130400.995370370430501.3333333333-100.337962962960170.004629629631
373017330461.689814814830386.87574.8148148148164-288.68981481481
383003230334.953703703730280.166666666754.7870370370366-302.953703703701
392987430191.995370370430165.083333333326.9120370370342-317.995370370365
403001830149.467592592630057.87591.592592592589-131.467592592588
412991130020.870370370429955.62565.2453703703675-109.870370370369
422996329939.537037037029846.87592.662037037035423.4629629629635
433005029864.578703703729762.6666666667101.912037037038185.421296296299
442990129731.148148148129710.458333333320.6898148148164169.851851851850
4529544NANA-249.087962962963NA
4629451NANA-87.6157407407383NA
4729293NANA-91.5740740740717NA
4829334NANA-100.337962962960NA
4929389NANANANA
5029563NANANANA



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,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')