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 computationTue, 29 Nov 2011 05:03:18 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Nov/29/t13225610609jm9cjhtydp6ja7.htm/, Retrieved Fri, 19 Apr 2024 17:24:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=148153, Retrieved Fri, 19 Apr 2024 17:24:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact73
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Decomposition by Loess] [Werkloosheid 2003...] [2011-11-29 10:03:18] [10a6f28c51bb1cb94db47cee32729d66] [Current]
Feedback Forum

Post a new message
Dataseries X:
519164
517009
509933
509127
500857
506971
569323
579714
577992
565464
547344
554788
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 1 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=148153&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=148153&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=148153&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 time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal361037
Trend1912
Low-pass1312

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Parameters \tabularnewline
Component & Window & Degree & Jump \tabularnewline
Seasonal & 361 & 0 & 37 \tabularnewline
Trend & 19 & 1 & 2 \tabularnewline
Low-pass & 13 & 1 & 2 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=148153&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]19[/C][C]1[/C][C]2[/C][/ROW]
[ROW][C]Low-pass[/C][C]13[/C][C]1[/C][C]2[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=148153&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=148153&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
Trend1912
Low-pass1312







Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1519164519135.6329712252201.90720296471516990.45982581-28.3670287747518
2517009515568.565865124-2271.91527670392520721.34941158-1440.43413487601
3509933505984.904796621-10571.1437939705524452.23899735-3948.09520337929
4509127511437.603212586-21320.8539801994528137.2507676142310.60321258567
5500857500828.829715859-30937.0922537368531822.262537878-28.1702841408551
6506971506977.357092765-28504.1693253902535468.8122326256.35709276481066
7569323577670.93268544421859.7053871827539115.3619273738347.93268544413
8579714583071.63368514833598.4269824742542757.9393323783357.63368514832
9577992578454.13144962531129.3518129933546400.516737382462.13144962478
10565464567430.08651921713696.2422708615549801.6712099221966.08651921689
11547344547291.381925636-5806.20760809787553202.825682461-52.6180743636796
12554788556597.154954817-3074.25761355697556053.102658741809.15495481738
13562325563544.7131620182201.90720296471558903.3796350181219.71316201752
14560854562490.646226794-2271.91527670392561489.269049911636.64622679364
15555332557159.985329168-10571.1437939705564075.1584648031827.98532916768
16543599541922.126529042-21320.8539801994566596.727451158-1676.87347095844
17536662535142.795816224-30937.0922537368569118.296437513-1519.20418377616
18542722542364.289944345-28504.1693253902571583.879381045-357.710055654752
19593530591150.8322882421859.7053871827574049.462324577-2379.16771175992
20610763611421.64591504833598.4269824742576505.927102478658.645915048313
21612613615134.25630662931129.3518129933578962.3918803782521.25630662893
22611324627556.22019640613696.2422708615581395.53753273316232.2201964059
23594167610311.52442301-5806.20760809787583828.68318508816144.5244230102
24595454607850.328964324-3074.25761355697586131.92864923312396.3289643242
25590865591092.9186836582201.90720296471588435.174113378227.918683657539
26589379590576.771471781-2271.91527670392590453.1438049231197.77147178131
27584428586956.030297503-10571.1437939705592471.1134964672528.03029750299
28573100573918.068210635-21320.8539801994593602.785769564818.068210635334
29567456571114.634211076-30937.0922537368594734.4580426613658.63421107607
30569028570835.211438666-28504.1693253902595724.9578867241807.21143866645
31620735622894.8368820321859.7053871827596715.4577307872159.83688203024
32628884626538.89906590533598.4269824742597630.673951621-2345.10093409533
33628232626788.75801455131129.3518129933598545.890172455-1443.24198544875
34612117611138.69928657513696.2422708615599399.058442564-978.30071342492
35595404596361.980895426-5806.20760809787600252.226712672957.980895426124
36597141596284.441179116-3074.25761355697601071.816434441-856.558820884093

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Time Series Components \tabularnewline
t & Observed & Fitted & Seasonal & Trend & Remainder \tabularnewline
1 & 519164 & 519135.632971225 & 2201.90720296471 & 516990.45982581 & -28.3670287747518 \tabularnewline
2 & 517009 & 515568.565865124 & -2271.91527670392 & 520721.34941158 & -1440.43413487601 \tabularnewline
3 & 509933 & 505984.904796621 & -10571.1437939705 & 524452.23899735 & -3948.09520337929 \tabularnewline
4 & 509127 & 511437.603212586 & -21320.8539801994 & 528137.250767614 & 2310.60321258567 \tabularnewline
5 & 500857 & 500828.829715859 & -30937.0922537368 & 531822.262537878 & -28.1702841408551 \tabularnewline
6 & 506971 & 506977.357092765 & -28504.1693253902 & 535468.812232625 & 6.35709276481066 \tabularnewline
7 & 569323 & 577670.932685444 & 21859.7053871827 & 539115.361927373 & 8347.93268544413 \tabularnewline
8 & 579714 & 583071.633685148 & 33598.4269824742 & 542757.939332378 & 3357.63368514832 \tabularnewline
9 & 577992 & 578454.131449625 & 31129.3518129933 & 546400.516737382 & 462.13144962478 \tabularnewline
10 & 565464 & 567430.086519217 & 13696.2422708615 & 549801.671209922 & 1966.08651921689 \tabularnewline
11 & 547344 & 547291.381925636 & -5806.20760809787 & 553202.825682461 & -52.6180743636796 \tabularnewline
12 & 554788 & 556597.154954817 & -3074.25761355697 & 556053.10265874 & 1809.15495481738 \tabularnewline
13 & 562325 & 563544.713162018 & 2201.90720296471 & 558903.379635018 & 1219.71316201752 \tabularnewline
14 & 560854 & 562490.646226794 & -2271.91527670392 & 561489.26904991 & 1636.64622679364 \tabularnewline
15 & 555332 & 557159.985329168 & -10571.1437939705 & 564075.158464803 & 1827.98532916768 \tabularnewline
16 & 543599 & 541922.126529042 & -21320.8539801994 & 566596.727451158 & -1676.87347095844 \tabularnewline
17 & 536662 & 535142.795816224 & -30937.0922537368 & 569118.296437513 & -1519.20418377616 \tabularnewline
18 & 542722 & 542364.289944345 & -28504.1693253902 & 571583.879381045 & -357.710055654752 \tabularnewline
19 & 593530 & 591150.83228824 & 21859.7053871827 & 574049.462324577 & -2379.16771175992 \tabularnewline
20 & 610763 & 611421.645915048 & 33598.4269824742 & 576505.927102478 & 658.645915048313 \tabularnewline
21 & 612613 & 615134.256306629 & 31129.3518129933 & 578962.391880378 & 2521.25630662893 \tabularnewline
22 & 611324 & 627556.220196406 & 13696.2422708615 & 581395.537532733 & 16232.2201964059 \tabularnewline
23 & 594167 & 610311.52442301 & -5806.20760809787 & 583828.683185088 & 16144.5244230102 \tabularnewline
24 & 595454 & 607850.328964324 & -3074.25761355697 & 586131.928649233 & 12396.3289643242 \tabularnewline
25 & 590865 & 591092.918683658 & 2201.90720296471 & 588435.174113378 & 227.918683657539 \tabularnewline
26 & 589379 & 590576.771471781 & -2271.91527670392 & 590453.143804923 & 1197.77147178131 \tabularnewline
27 & 584428 & 586956.030297503 & -10571.1437939705 & 592471.113496467 & 2528.03029750299 \tabularnewline
28 & 573100 & 573918.068210635 & -21320.8539801994 & 593602.785769564 & 818.068210635334 \tabularnewline
29 & 567456 & 571114.634211076 & -30937.0922537368 & 594734.458042661 & 3658.63421107607 \tabularnewline
30 & 569028 & 570835.211438666 & -28504.1693253902 & 595724.957886724 & 1807.21143866645 \tabularnewline
31 & 620735 & 622894.83688203 & 21859.7053871827 & 596715.457730787 & 2159.83688203024 \tabularnewline
32 & 628884 & 626538.899065905 & 33598.4269824742 & 597630.673951621 & -2345.10093409533 \tabularnewline
33 & 628232 & 626788.758014551 & 31129.3518129933 & 598545.890172455 & -1443.24198544875 \tabularnewline
34 & 612117 & 611138.699286575 & 13696.2422708615 & 599399.058442564 & -978.30071342492 \tabularnewline
35 & 595404 & 596361.980895426 & -5806.20760809787 & 600252.226712672 & 957.980895426124 \tabularnewline
36 & 597141 & 596284.441179116 & -3074.25761355697 & 601071.816434441 & -856.558820884093 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=148153&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]519164[/C][C]519135.632971225[/C][C]2201.90720296471[/C][C]516990.45982581[/C][C]-28.3670287747518[/C][/ROW]
[ROW][C]2[/C][C]517009[/C][C]515568.565865124[/C][C]-2271.91527670392[/C][C]520721.34941158[/C][C]-1440.43413487601[/C][/ROW]
[ROW][C]3[/C][C]509933[/C][C]505984.904796621[/C][C]-10571.1437939705[/C][C]524452.23899735[/C][C]-3948.09520337929[/C][/ROW]
[ROW][C]4[/C][C]509127[/C][C]511437.603212586[/C][C]-21320.8539801994[/C][C]528137.250767614[/C][C]2310.60321258567[/C][/ROW]
[ROW][C]5[/C][C]500857[/C][C]500828.829715859[/C][C]-30937.0922537368[/C][C]531822.262537878[/C][C]-28.1702841408551[/C][/ROW]
[ROW][C]6[/C][C]506971[/C][C]506977.357092765[/C][C]-28504.1693253902[/C][C]535468.812232625[/C][C]6.35709276481066[/C][/ROW]
[ROW][C]7[/C][C]569323[/C][C]577670.932685444[/C][C]21859.7053871827[/C][C]539115.361927373[/C][C]8347.93268544413[/C][/ROW]
[ROW][C]8[/C][C]579714[/C][C]583071.633685148[/C][C]33598.4269824742[/C][C]542757.939332378[/C][C]3357.63368514832[/C][/ROW]
[ROW][C]9[/C][C]577992[/C][C]578454.131449625[/C][C]31129.3518129933[/C][C]546400.516737382[/C][C]462.13144962478[/C][/ROW]
[ROW][C]10[/C][C]565464[/C][C]567430.086519217[/C][C]13696.2422708615[/C][C]549801.671209922[/C][C]1966.08651921689[/C][/ROW]
[ROW][C]11[/C][C]547344[/C][C]547291.381925636[/C][C]-5806.20760809787[/C][C]553202.825682461[/C][C]-52.6180743636796[/C][/ROW]
[ROW][C]12[/C][C]554788[/C][C]556597.154954817[/C][C]-3074.25761355697[/C][C]556053.10265874[/C][C]1809.15495481738[/C][/ROW]
[ROW][C]13[/C][C]562325[/C][C]563544.713162018[/C][C]2201.90720296471[/C][C]558903.379635018[/C][C]1219.71316201752[/C][/ROW]
[ROW][C]14[/C][C]560854[/C][C]562490.646226794[/C][C]-2271.91527670392[/C][C]561489.26904991[/C][C]1636.64622679364[/C][/ROW]
[ROW][C]15[/C][C]555332[/C][C]557159.985329168[/C][C]-10571.1437939705[/C][C]564075.158464803[/C][C]1827.98532916768[/C][/ROW]
[ROW][C]16[/C][C]543599[/C][C]541922.126529042[/C][C]-21320.8539801994[/C][C]566596.727451158[/C][C]-1676.87347095844[/C][/ROW]
[ROW][C]17[/C][C]536662[/C][C]535142.795816224[/C][C]-30937.0922537368[/C][C]569118.296437513[/C][C]-1519.20418377616[/C][/ROW]
[ROW][C]18[/C][C]542722[/C][C]542364.289944345[/C][C]-28504.1693253902[/C][C]571583.879381045[/C][C]-357.710055654752[/C][/ROW]
[ROW][C]19[/C][C]593530[/C][C]591150.83228824[/C][C]21859.7053871827[/C][C]574049.462324577[/C][C]-2379.16771175992[/C][/ROW]
[ROW][C]20[/C][C]610763[/C][C]611421.645915048[/C][C]33598.4269824742[/C][C]576505.927102478[/C][C]658.645915048313[/C][/ROW]
[ROW][C]21[/C][C]612613[/C][C]615134.256306629[/C][C]31129.3518129933[/C][C]578962.391880378[/C][C]2521.25630662893[/C][/ROW]
[ROW][C]22[/C][C]611324[/C][C]627556.220196406[/C][C]13696.2422708615[/C][C]581395.537532733[/C][C]16232.2201964059[/C][/ROW]
[ROW][C]23[/C][C]594167[/C][C]610311.52442301[/C][C]-5806.20760809787[/C][C]583828.683185088[/C][C]16144.5244230102[/C][/ROW]
[ROW][C]24[/C][C]595454[/C][C]607850.328964324[/C][C]-3074.25761355697[/C][C]586131.928649233[/C][C]12396.3289643242[/C][/ROW]
[ROW][C]25[/C][C]590865[/C][C]591092.918683658[/C][C]2201.90720296471[/C][C]588435.174113378[/C][C]227.918683657539[/C][/ROW]
[ROW][C]26[/C][C]589379[/C][C]590576.771471781[/C][C]-2271.91527670392[/C][C]590453.143804923[/C][C]1197.77147178131[/C][/ROW]
[ROW][C]27[/C][C]584428[/C][C]586956.030297503[/C][C]-10571.1437939705[/C][C]592471.113496467[/C][C]2528.03029750299[/C][/ROW]
[ROW][C]28[/C][C]573100[/C][C]573918.068210635[/C][C]-21320.8539801994[/C][C]593602.785769564[/C][C]818.068210635334[/C][/ROW]
[ROW][C]29[/C][C]567456[/C][C]571114.634211076[/C][C]-30937.0922537368[/C][C]594734.458042661[/C][C]3658.63421107607[/C][/ROW]
[ROW][C]30[/C][C]569028[/C][C]570835.211438666[/C][C]-28504.1693253902[/C][C]595724.957886724[/C][C]1807.21143866645[/C][/ROW]
[ROW][C]31[/C][C]620735[/C][C]622894.83688203[/C][C]21859.7053871827[/C][C]596715.457730787[/C][C]2159.83688203024[/C][/ROW]
[ROW][C]32[/C][C]628884[/C][C]626538.899065905[/C][C]33598.4269824742[/C][C]597630.673951621[/C][C]-2345.10093409533[/C][/ROW]
[ROW][C]33[/C][C]628232[/C][C]626788.758014551[/C][C]31129.3518129933[/C][C]598545.890172455[/C][C]-1443.24198544875[/C][/ROW]
[ROW][C]34[/C][C]612117[/C][C]611138.699286575[/C][C]13696.2422708615[/C][C]599399.058442564[/C][C]-978.30071342492[/C][/ROW]
[ROW][C]35[/C][C]595404[/C][C]596361.980895426[/C][C]-5806.20760809787[/C][C]600252.226712672[/C][C]957.980895426124[/C][/ROW]
[ROW][C]36[/C][C]597141[/C][C]596284.441179116[/C][C]-3074.25761355697[/C][C]601071.816434441[/C][C]-856.558820884093[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=148153&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=148153&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
1519164519135.6329712252201.90720296471516990.45982581-28.3670287747518
2517009515568.565865124-2271.91527670392520721.34941158-1440.43413487601
3509933505984.904796621-10571.1437939705524452.23899735-3948.09520337929
4509127511437.603212586-21320.8539801994528137.2507676142310.60321258567
5500857500828.829715859-30937.0922537368531822.262537878-28.1702841408551
6506971506977.357092765-28504.1693253902535468.8122326256.35709276481066
7569323577670.93268544421859.7053871827539115.3619273738347.93268544413
8579714583071.63368514833598.4269824742542757.9393323783357.63368514832
9577992578454.13144962531129.3518129933546400.516737382462.13144962478
10565464567430.08651921713696.2422708615549801.6712099221966.08651921689
11547344547291.381925636-5806.20760809787553202.825682461-52.6180743636796
12554788556597.154954817-3074.25761355697556053.102658741809.15495481738
13562325563544.7131620182201.90720296471558903.3796350181219.71316201752
14560854562490.646226794-2271.91527670392561489.269049911636.64622679364
15555332557159.985329168-10571.1437939705564075.1584648031827.98532916768
16543599541922.126529042-21320.8539801994566596.727451158-1676.87347095844
17536662535142.795816224-30937.0922537368569118.296437513-1519.20418377616
18542722542364.289944345-28504.1693253902571583.879381045-357.710055654752
19593530591150.8322882421859.7053871827574049.462324577-2379.16771175992
20610763611421.64591504833598.4269824742576505.927102478658.645915048313
21612613615134.25630662931129.3518129933578962.3918803782521.25630662893
22611324627556.22019640613696.2422708615581395.53753273316232.2201964059
23594167610311.52442301-5806.20760809787583828.68318508816144.5244230102
24595454607850.328964324-3074.25761355697586131.92864923312396.3289643242
25590865591092.9186836582201.90720296471588435.174113378227.918683657539
26589379590576.771471781-2271.91527670392590453.1438049231197.77147178131
27584428586956.030297503-10571.1437939705592471.1134964672528.03029750299
28573100573918.068210635-21320.8539801994593602.785769564818.068210635334
29567456571114.634211076-30937.0922537368594734.4580426613658.63421107607
30569028570835.211438666-28504.1693253902595724.9578867241807.21143866645
31620735622894.8368820321859.7053871827596715.4577307872159.83688203024
32628884626538.89906590533598.4269824742597630.673951621-2345.10093409533
33628232626788.75801455131129.3518129933598545.890172455-1443.24198544875
34612117611138.69928657513696.2422708615599399.058442564-978.30071342492
35595404596361.980895426-5806.20760809787600252.226712672957.980895426124
36597141596284.441179116-3074.25761355697601071.816434441-856.558820884093



Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = TRUE ;
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par4 = ; par5 = 1 ; par6 = ; par7 = 1 ; par8 = TRUE ;
R code (references can be found in the software module):
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')