Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decomposeloess.wasp
Title produced by softwareDecomposition by Loess
Date of computationSun, 11 Dec 2016 18:58:54 +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/2016/Dec/11/t14814829952a05h9uov3wav2u.htm/, Retrieved Thu, 02 May 2024 10:54:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=298851, Retrieved Thu, 02 May 2024 10:54:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact63
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Decomposition by Loess] [] [2016-12-11 17:58:54] [1bf80170c5e6d32ce8f3ad7977dc404a] [Current]
Feedback Forum

Post a new message
Dataseries X:
1697.22
1782.58
1715.7
1923.82
1712.6
1754.8
1711.6
1916
1842.2
2010
2107.4
2298.2
2222.2
2498.6
2613
2788.8
2873.6
2999.6
2937.6
3068.2
3142.8
3170.4
3265.6
3522.2
3516.8
3798.8
3828.6
4198.8
4097.8
4244.8
4235
4627.8
4446.8
4747.2
4928.8
5202.2




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=298851&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=298851&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=298851&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal361037
Trend711
Low-pass511

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Parameters \tabularnewline
Component & Window & Degree & Jump \tabularnewline
Seasonal & 361 & 0 & 37 \tabularnewline
Trend & 7 & 1 & 1 \tabularnewline
Low-pass & 5 & 1 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=298851&T=1

[TABLE]
[ROW][C]Seasonal Decomposition by Loess - Parameters[/C][/ROW]
[ROW][C]Component[/C][C]Window[/C][C]Degree[/C][C]Jump[/C][/ROW]
[ROW][C]Seasonal[/C][C]361[/C][C]0[/C][C]37[/C][/ROW]
[ROW][C]Trend[/C][C]7[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]Low-pass[/C][C]5[/C][C]1[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=298851&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=298851&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal361037
Trend711
Low-pass511







Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
11697.221698.37894676055-76.1078669262311772.168920165681.1589467605545
21782.581790.76611376142-1.677162585472951776.071048824058.1861137614178
31715.71688.15192262893-36.58366076553061779.8317381366-27.5480773710722
41923.821951.61616631098114.3688393800261781.65499430927.7961663109788
51712.61723.24415790396-76.1078669262311778.0637090222710.6441579039563
61754.81738.8447728567-1.677162585472951772.43238972877-15.9552271432997
71711.61674.69425488803-36.58366076553061785.0894058775-36.9057451119702
819161883.29077007443114.3688393800261834.34039054554-32.7092299255696
91842.21842.61747102888-76.1078669262311917.890395897350.417471028878253
1020102003.80831247356-1.677162585472952017.86885011191-6.19168752643532
112107.42138.24413591969-36.58366076553062113.1395248458430.8441359196881
122298.22264.62909709655114.3688393800262217.40206352342-33.5709029034451
132222.22180.06231640179-76.1078669262312340.44555052444-42.1376835982114
142498.62526.33885029471-1.677162585472952472.5383122907627.7388502947119
1526132650.02739009602-36.58366076553062612.5562706695137.0273900960192
162788.82709.3160711509114.3688393800262753.91508946907-79.4839288490966
172873.62958.53501175938-76.1078669262312864.7728551668584.9350117593831
182999.63057.21738163912-1.677162585472952943.6597809463557.6173816391183
192937.62913.8349612242-36.58366076553062997.94869954133-23.7650387758026
203068.22968.43648794299114.3688393800263053.59467267699-99.7635120570135
213142.83238.92205368095-76.1078669262313122.7858132452896.1220536809496
223170.43123.28406813356-1.677162585472953219.19309445192-47.115931866445
233265.63251.11488804797-36.58366076553063316.66877271756-14.4851119520308
243522.23486.13779835023114.3688393800263443.89336226974-36.06220164977
253516.83512.87899918077-76.1078669262313596.82886774546-3.9210008192299
263798.83846.30296970246-1.677162585472953752.9741928830147.5029697024597
273828.63785.33110650012-36.58366076553063908.45255426541-43.2688934998841
284198.84244.26871796495114.3688393800264038.9624426550345.4687179649482
294097.84123.25098413911-76.1078669262314148.4568827871225.45098413911
304244.84246.47224225851-1.677162585472954244.804920326971.67224225850532
3142354164.05760264356-36.58366076553064342.52605812198-70.9423973564444
324627.84690.5290014374114.3688393800264450.7021591825862.7290014373957
334446.84372.16886191815-76.1078669262314597.53900500808-74.6311380818515
344747.24732.9838780229-1.677162585472954763.09328456257-14.2161219770996
354928.84966.03569940106-36.58366076553064928.1479613644837.2356994010561
365202.25192.97994242306114.3688393800265097.05121819691-9.22005757694023

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Time Series Components \tabularnewline
t & Observed & Fitted & Seasonal & Trend & Remainder \tabularnewline
1 & 1697.22 & 1698.37894676055 & -76.107866926231 & 1772.16892016568 & 1.1589467605545 \tabularnewline
2 & 1782.58 & 1790.76611376142 & -1.67716258547295 & 1776.07104882405 & 8.1861137614178 \tabularnewline
3 & 1715.7 & 1688.15192262893 & -36.5836607655306 & 1779.8317381366 & -27.5480773710722 \tabularnewline
4 & 1923.82 & 1951.61616631098 & 114.368839380026 & 1781.654994309 & 27.7961663109788 \tabularnewline
5 & 1712.6 & 1723.24415790396 & -76.107866926231 & 1778.06370902227 & 10.6441579039563 \tabularnewline
6 & 1754.8 & 1738.8447728567 & -1.67716258547295 & 1772.43238972877 & -15.9552271432997 \tabularnewline
7 & 1711.6 & 1674.69425488803 & -36.5836607655306 & 1785.0894058775 & -36.9057451119702 \tabularnewline
8 & 1916 & 1883.29077007443 & 114.368839380026 & 1834.34039054554 & -32.7092299255696 \tabularnewline
9 & 1842.2 & 1842.61747102888 & -76.107866926231 & 1917.89039589735 & 0.417471028878253 \tabularnewline
10 & 2010 & 2003.80831247356 & -1.67716258547295 & 2017.86885011191 & -6.19168752643532 \tabularnewline
11 & 2107.4 & 2138.24413591969 & -36.5836607655306 & 2113.13952484584 & 30.8441359196881 \tabularnewline
12 & 2298.2 & 2264.62909709655 & 114.368839380026 & 2217.40206352342 & -33.5709029034451 \tabularnewline
13 & 2222.2 & 2180.06231640179 & -76.107866926231 & 2340.44555052444 & -42.1376835982114 \tabularnewline
14 & 2498.6 & 2526.33885029471 & -1.67716258547295 & 2472.53831229076 & 27.7388502947119 \tabularnewline
15 & 2613 & 2650.02739009602 & -36.5836607655306 & 2612.55627066951 & 37.0273900960192 \tabularnewline
16 & 2788.8 & 2709.3160711509 & 114.368839380026 & 2753.91508946907 & -79.4839288490966 \tabularnewline
17 & 2873.6 & 2958.53501175938 & -76.107866926231 & 2864.77285516685 & 84.9350117593831 \tabularnewline
18 & 2999.6 & 3057.21738163912 & -1.67716258547295 & 2943.65978094635 & 57.6173816391183 \tabularnewline
19 & 2937.6 & 2913.8349612242 & -36.5836607655306 & 2997.94869954133 & -23.7650387758026 \tabularnewline
20 & 3068.2 & 2968.43648794299 & 114.368839380026 & 3053.59467267699 & -99.7635120570135 \tabularnewline
21 & 3142.8 & 3238.92205368095 & -76.107866926231 & 3122.78581324528 & 96.1220536809496 \tabularnewline
22 & 3170.4 & 3123.28406813356 & -1.67716258547295 & 3219.19309445192 & -47.115931866445 \tabularnewline
23 & 3265.6 & 3251.11488804797 & -36.5836607655306 & 3316.66877271756 & -14.4851119520308 \tabularnewline
24 & 3522.2 & 3486.13779835023 & 114.368839380026 & 3443.89336226974 & -36.06220164977 \tabularnewline
25 & 3516.8 & 3512.87899918077 & -76.107866926231 & 3596.82886774546 & -3.9210008192299 \tabularnewline
26 & 3798.8 & 3846.30296970246 & -1.67716258547295 & 3752.97419288301 & 47.5029697024597 \tabularnewline
27 & 3828.6 & 3785.33110650012 & -36.5836607655306 & 3908.45255426541 & -43.2688934998841 \tabularnewline
28 & 4198.8 & 4244.26871796495 & 114.368839380026 & 4038.96244265503 & 45.4687179649482 \tabularnewline
29 & 4097.8 & 4123.25098413911 & -76.107866926231 & 4148.45688278712 & 25.45098413911 \tabularnewline
30 & 4244.8 & 4246.47224225851 & -1.67716258547295 & 4244.80492032697 & 1.67224225850532 \tabularnewline
31 & 4235 & 4164.05760264356 & -36.5836607655306 & 4342.52605812198 & -70.9423973564444 \tabularnewline
32 & 4627.8 & 4690.5290014374 & 114.368839380026 & 4450.70215918258 & 62.7290014373957 \tabularnewline
33 & 4446.8 & 4372.16886191815 & -76.107866926231 & 4597.53900500808 & -74.6311380818515 \tabularnewline
34 & 4747.2 & 4732.9838780229 & -1.67716258547295 & 4763.09328456257 & -14.2161219770996 \tabularnewline
35 & 4928.8 & 4966.03569940106 & -36.5836607655306 & 4928.14796136448 & 37.2356994010561 \tabularnewline
36 & 5202.2 & 5192.97994242306 & 114.368839380026 & 5097.05121819691 & -9.22005757694023 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=298851&T=2

[TABLE]
[ROW][C]Seasonal Decomposition by Loess - Time Series Components[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Fitted[/C][C]Seasonal[/C][C]Trend[/C][C]Remainder[/C][/ROW]
[ROW][C]1[/C][C]1697.22[/C][C]1698.37894676055[/C][C]-76.107866926231[/C][C]1772.16892016568[/C][C]1.1589467605545[/C][/ROW]
[ROW][C]2[/C][C]1782.58[/C][C]1790.76611376142[/C][C]-1.67716258547295[/C][C]1776.07104882405[/C][C]8.1861137614178[/C][/ROW]
[ROW][C]3[/C][C]1715.7[/C][C]1688.15192262893[/C][C]-36.5836607655306[/C][C]1779.8317381366[/C][C]-27.5480773710722[/C][/ROW]
[ROW][C]4[/C][C]1923.82[/C][C]1951.61616631098[/C][C]114.368839380026[/C][C]1781.654994309[/C][C]27.7961663109788[/C][/ROW]
[ROW][C]5[/C][C]1712.6[/C][C]1723.24415790396[/C][C]-76.107866926231[/C][C]1778.06370902227[/C][C]10.6441579039563[/C][/ROW]
[ROW][C]6[/C][C]1754.8[/C][C]1738.8447728567[/C][C]-1.67716258547295[/C][C]1772.43238972877[/C][C]-15.9552271432997[/C][/ROW]
[ROW][C]7[/C][C]1711.6[/C][C]1674.69425488803[/C][C]-36.5836607655306[/C][C]1785.0894058775[/C][C]-36.9057451119702[/C][/ROW]
[ROW][C]8[/C][C]1916[/C][C]1883.29077007443[/C][C]114.368839380026[/C][C]1834.34039054554[/C][C]-32.7092299255696[/C][/ROW]
[ROW][C]9[/C][C]1842.2[/C][C]1842.61747102888[/C][C]-76.107866926231[/C][C]1917.89039589735[/C][C]0.417471028878253[/C][/ROW]
[ROW][C]10[/C][C]2010[/C][C]2003.80831247356[/C][C]-1.67716258547295[/C][C]2017.86885011191[/C][C]-6.19168752643532[/C][/ROW]
[ROW][C]11[/C][C]2107.4[/C][C]2138.24413591969[/C][C]-36.5836607655306[/C][C]2113.13952484584[/C][C]30.8441359196881[/C][/ROW]
[ROW][C]12[/C][C]2298.2[/C][C]2264.62909709655[/C][C]114.368839380026[/C][C]2217.40206352342[/C][C]-33.5709029034451[/C][/ROW]
[ROW][C]13[/C][C]2222.2[/C][C]2180.06231640179[/C][C]-76.107866926231[/C][C]2340.44555052444[/C][C]-42.1376835982114[/C][/ROW]
[ROW][C]14[/C][C]2498.6[/C][C]2526.33885029471[/C][C]-1.67716258547295[/C][C]2472.53831229076[/C][C]27.7388502947119[/C][/ROW]
[ROW][C]15[/C][C]2613[/C][C]2650.02739009602[/C][C]-36.5836607655306[/C][C]2612.55627066951[/C][C]37.0273900960192[/C][/ROW]
[ROW][C]16[/C][C]2788.8[/C][C]2709.3160711509[/C][C]114.368839380026[/C][C]2753.91508946907[/C][C]-79.4839288490966[/C][/ROW]
[ROW][C]17[/C][C]2873.6[/C][C]2958.53501175938[/C][C]-76.107866926231[/C][C]2864.77285516685[/C][C]84.9350117593831[/C][/ROW]
[ROW][C]18[/C][C]2999.6[/C][C]3057.21738163912[/C][C]-1.67716258547295[/C][C]2943.65978094635[/C][C]57.6173816391183[/C][/ROW]
[ROW][C]19[/C][C]2937.6[/C][C]2913.8349612242[/C][C]-36.5836607655306[/C][C]2997.94869954133[/C][C]-23.7650387758026[/C][/ROW]
[ROW][C]20[/C][C]3068.2[/C][C]2968.43648794299[/C][C]114.368839380026[/C][C]3053.59467267699[/C][C]-99.7635120570135[/C][/ROW]
[ROW][C]21[/C][C]3142.8[/C][C]3238.92205368095[/C][C]-76.107866926231[/C][C]3122.78581324528[/C][C]96.1220536809496[/C][/ROW]
[ROW][C]22[/C][C]3170.4[/C][C]3123.28406813356[/C][C]-1.67716258547295[/C][C]3219.19309445192[/C][C]-47.115931866445[/C][/ROW]
[ROW][C]23[/C][C]3265.6[/C][C]3251.11488804797[/C][C]-36.5836607655306[/C][C]3316.66877271756[/C][C]-14.4851119520308[/C][/ROW]
[ROW][C]24[/C][C]3522.2[/C][C]3486.13779835023[/C][C]114.368839380026[/C][C]3443.89336226974[/C][C]-36.06220164977[/C][/ROW]
[ROW][C]25[/C][C]3516.8[/C][C]3512.87899918077[/C][C]-76.107866926231[/C][C]3596.82886774546[/C][C]-3.9210008192299[/C][/ROW]
[ROW][C]26[/C][C]3798.8[/C][C]3846.30296970246[/C][C]-1.67716258547295[/C][C]3752.97419288301[/C][C]47.5029697024597[/C][/ROW]
[ROW][C]27[/C][C]3828.6[/C][C]3785.33110650012[/C][C]-36.5836607655306[/C][C]3908.45255426541[/C][C]-43.2688934998841[/C][/ROW]
[ROW][C]28[/C][C]4198.8[/C][C]4244.26871796495[/C][C]114.368839380026[/C][C]4038.96244265503[/C][C]45.4687179649482[/C][/ROW]
[ROW][C]29[/C][C]4097.8[/C][C]4123.25098413911[/C][C]-76.107866926231[/C][C]4148.45688278712[/C][C]25.45098413911[/C][/ROW]
[ROW][C]30[/C][C]4244.8[/C][C]4246.47224225851[/C][C]-1.67716258547295[/C][C]4244.80492032697[/C][C]1.67224225850532[/C][/ROW]
[ROW][C]31[/C][C]4235[/C][C]4164.05760264356[/C][C]-36.5836607655306[/C][C]4342.52605812198[/C][C]-70.9423973564444[/C][/ROW]
[ROW][C]32[/C][C]4627.8[/C][C]4690.5290014374[/C][C]114.368839380026[/C][C]4450.70215918258[/C][C]62.7290014373957[/C][/ROW]
[ROW][C]33[/C][C]4446.8[/C][C]4372.16886191815[/C][C]-76.107866926231[/C][C]4597.53900500808[/C][C]-74.6311380818515[/C][/ROW]
[ROW][C]34[/C][C]4747.2[/C][C]4732.9838780229[/C][C]-1.67716258547295[/C][C]4763.09328456257[/C][C]-14.2161219770996[/C][/ROW]
[ROW][C]35[/C][C]4928.8[/C][C]4966.03569940106[/C][C]-36.5836607655306[/C][C]4928.14796136448[/C][C]37.2356994010561[/C][/ROW]
[ROW][C]36[/C][C]5202.2[/C][C]5192.97994242306[/C][C]114.368839380026[/C][C]5097.05121819691[/C][C]-9.22005757694023[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=298851&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=298851&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
11697.221698.37894676055-76.1078669262311772.168920165681.1589467605545
21782.581790.76611376142-1.677162585472951776.071048824058.1861137614178
31715.71688.15192262893-36.58366076553061779.8317381366-27.5480773710722
41923.821951.61616631098114.3688393800261781.65499430927.7961663109788
51712.61723.24415790396-76.1078669262311778.0637090222710.6441579039563
61754.81738.8447728567-1.677162585472951772.43238972877-15.9552271432997
71711.61674.69425488803-36.58366076553061785.0894058775-36.9057451119702
819161883.29077007443114.3688393800261834.34039054554-32.7092299255696
91842.21842.61747102888-76.1078669262311917.890395897350.417471028878253
1020102003.80831247356-1.677162585472952017.86885011191-6.19168752643532
112107.42138.24413591969-36.58366076553062113.1395248458430.8441359196881
122298.22264.62909709655114.3688393800262217.40206352342-33.5709029034451
132222.22180.06231640179-76.1078669262312340.44555052444-42.1376835982114
142498.62526.33885029471-1.677162585472952472.5383122907627.7388502947119
1526132650.02739009602-36.58366076553062612.5562706695137.0273900960192
162788.82709.3160711509114.3688393800262753.91508946907-79.4839288490966
172873.62958.53501175938-76.1078669262312864.7728551668584.9350117593831
182999.63057.21738163912-1.677162585472952943.6597809463557.6173816391183
192937.62913.8349612242-36.58366076553062997.94869954133-23.7650387758026
203068.22968.43648794299114.3688393800263053.59467267699-99.7635120570135
213142.83238.92205368095-76.1078669262313122.7858132452896.1220536809496
223170.43123.28406813356-1.677162585472953219.19309445192-47.115931866445
233265.63251.11488804797-36.58366076553063316.66877271756-14.4851119520308
243522.23486.13779835023114.3688393800263443.89336226974-36.06220164977
253516.83512.87899918077-76.1078669262313596.82886774546-3.9210008192299
263798.83846.30296970246-1.677162585472953752.9741928830147.5029697024597
273828.63785.33110650012-36.58366076553063908.45255426541-43.2688934998841
284198.84244.26871796495114.3688393800264038.9624426550345.4687179649482
294097.84123.25098413911-76.1078669262314148.4568827871225.45098413911
304244.84246.47224225851-1.677162585472954244.804920326971.67224225850532
3142354164.05760264356-36.58366076553064342.52605812198-70.9423973564444
324627.84690.5290014374114.3688393800264450.7021591825862.7290014373957
334446.84372.16886191815-76.1078669262314597.53900500808-74.6311380818515
344747.24732.9838780229-1.677162585472954763.09328456257-14.2161219770996
354928.84966.03569940106-36.58366076553064928.1479613644837.2356994010561
365202.25192.97994242306114.3688393800265097.05121819691-9.22005757694023



Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 4 ; par2 = periodic ; par3 = 0 ; par4 = ; par5 = 1 ; par6 = ; par7 = 1 ; par8 = FALSE ;
R code (references can be found in the software module):
par8 <- 'FALSE'
par7 <- '1'
par6 <- ''
par5 <- '1'
par4 <- ''
par3 <- '0'
par2 <- 'periodic'
par1 <- '12'
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Time Series Components',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')