Home » date » 2010 » Dec » 27 »

LOESS- NWWZ

*The author of this computation has been verified*
R Software Module: /rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Mon, 27 Dec 2010 14:17:12 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh.htm/, Retrieved Mon, 27 Dec 2010 15:15:52 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
206010 198112 194519 185705 180173 176142 203401 221902 197378 185001 176356 180449 180144 173666 165688 161570 156145 153730 182698 200765 176512 166618 158644 159585 163095 159044 155511 153745 150569 150605 179612 194690 189917 184128 175335 179566 181140 177876 175041 169292 166070 166972 206348 215706 202108 195411 193111 195198 198770 194163 190420 189733 186029 191531 232571 243477 227247 217859 208679 213188 216234 213586 209465 204045 200237 203666 241476 260307 243324 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 202388 182516 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 187069 174330 169362 166827 178037 186413 189226 191563 188906 186005 195309 223532 226899 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1206010207466.67020455-278.167016693467204831.4968121441456.6702045495
2198112197788.980184734-4093.16961067616202528.189425942-323.019815265841
3194519196956.873667936-8143.75570767555200224.882039742437.87366793555
4185705185176.525741265-11724.4506993451197957.92495808-528.474258734816
5180173180989.178167715-16334.146044135195690.96787642816.178167715261
6176142172992.538082139-14155.6645696925193447.126487553-3149.46191786072
7203401197205.06121080618393.6536905069191203.285098687-6195.9387891936
8221902227689.60679031227148.9477498811188965.4454598075787.60679031169
9197378196773.39926355411254.9949155187186727.605820928-604.600736446417
10185001182588.1549674932771.38997611631184642.455056391-2412.84503250715
11176356174907.246004055-4752.55029590939182557.304291854-1448.75399594454
12180449180322.124943311-87.0840112224158180662.959067911-126.875056688732
13180144181797.553172725-278.167016693467178768.6138439681653.55317272514
14173666174404.670375606-4093.16961067616177020.49923507738.670375606365
15165688164247.371081504-8143.75570767555175272.384626171-1440.6289184957
16161570161224.159464909-11724.4506993451173640.291234436-345.840535091207
17156145156615.948201434-16334.146044135172008.197842701470.948201433755
18153730151116.353631337-14155.6645696925170499.310938355-2613.6463686628
19182698178011.92227548418393.6536905069168990.424034009-4686.07772451622
20200765206597.83361848627148.9477498811167783.2186316335832.83361848566
21176512175192.99185522411254.9949155187166576.013229257-1319.00814477584
22166618164599.5745810432771.38997611631165865.035442841-2018.42541895708
23158644156886.492639485-4752.55029590939165154.057656424-1757.50736051495
24159585154470.238820171-87.0840112224158164786.845191051-5114.7611798289
25163095162048.534291015-278.167016693467164419.632725678-1046.46570898482
26159044157557.678723512-4093.16961067616164623.490887164-1486.3212764881
27155511154338.406659025-8143.75570767555164827.34904865-1172.59334097468
28153745153324.816630088-11724.4506993451165889.634069257-420.183369912294
29150569150520.226954271-16334.146044135166951.919089864-48.7730457294383
30150605146815.506467788-14155.6645696925168550.158101905-3789.49353221233
31179612170681.94919554818393.6536905069170148.397113945-8930.0508044521
32194690190408.03029890127148.9477498811171823.021951218-4281.96970109927
33189917195081.3582959911254.9949155187173497.6467884915164.35829599018
34184128190371.0460351692771.38997611631175113.5639887156243.04603516852
35175335178693.06910697-4752.55029590939176729.4811889393358.06910697022
36179566180957.136367289-87.0840112224158178261.9476439331391.13636728906
37181140182763.752917766-278.167016693467179794.4140989281623.75291776596
38177876178718.257423676-4093.16961067616181126.912187001842.25742367559
39175041175766.345432602-8143.75570767555182459.410275074725.345432601986
40169292166668.018241632-11724.4506993451183640.432457713-2623.98175836823
41166070163652.691403782-16334.146044135184821.454640353-2417.30859621798
42166972161911.043992117-14155.6645696925186188.620577576-5060.95600788333
43206348206746.55979469418393.6536905069187555.786514799398.559794694447
44215706215179.03835647327148.9477498811189084.013893646-526.961643526622
45202108202348.76381198911254.9949155187190612.241272492240.763811988872
46195411195778.5109917542771.38997611631192272.09903213367.510991753516
47193111197042.593504141-4752.55029590939193931.9567917683931.59350414149
48195198194679.486309874-87.0840112224158195803.597701348-518.513690125954
49198770200142.928405765-278.167016693467197675.2386109291372.92840576466
50194163192731.08554041-4093.16961067616199688.084070266-1431.91445959025
51190420187282.826178072-8143.75570767555201700.929529604-3137.17382192842
52189733187596.222054355-11724.4506993451203594.22864499-2136.7779456453
53186029182904.618283758-16334.146044135205487.527760377-3124.38171624168
54191531190054.630355666-14155.6645696925207163.034214027-1476.36964433431
55232571237909.80564181618393.6536905069208838.5406676775338.80564181623
56243477249420.1486766227148.9477498811210384.9035734995943.14867662021
57227247231307.73860516111254.9949155187211931.2664793214060.73860516079
58217859219786.7776142052771.38997611631213159.8324096791927.77761420491
59208679207722.151955872-4752.55029590939214388.398340037-956.848044127662
60213188211168.790521504-87.0840112224158215294.293489719-2019.20947849614
61216234216545.978377293-278.167016693467216200.1886394311.978377293446
62213586213918.824633782-4093.16961067616217346.344976895332.824633781594
63209465208581.254393286-8143.75570767555218492.501314389-883.74560671352
64204045199521.627831967-11724.4506993451220292.822867378-4523.37216803318
65200237194715.001623768-16334.146044135222093.144420367-5521.9983762324
66203666197361.138860848-14155.6645696925224126.525708845-6304.861139152
67241476238398.43931217218393.6536905069226159.906997322-3077.56068782846
68260307265469.12069579727148.9477498811227995.9315543225162.12069579662
69243324245561.04897315811254.9949155187229831.9561113232237.04897315832
70244460254791.4906100722771.38997611631231357.11941381210331.4906100718
71233575239020.267579609-4752.55029590939232882.2827163015445.26757960857
72237217240598.562147116-87.0840112224158233922.5218641073381.56214711574
73235243235801.406004781-278.167016693467234962.761011913558.406004780962
74230354229413.365899865-4093.16961067616235387.803710811-940.634100134514
75227184226698.909297967-8143.75570767555235812.846409709-485.090702033223
76221678219297.740997635-11724.4506993451235782.709701711-2380.25900236549
77217142214865.573050423-16334.146044135235752.572993712-2276.42694957732
78219452217766.87833946-14155.6645696925235292.786230232-1685.12166053994
79256446259665.34684274118393.6536905069234832.9994667533219.34684274058
80265845270556.84234427627148.9477498811233984.2099058434711.84234427568
81248624252857.58473954711254.9949155187233135.4203449344233.5847395474
82241114247295.9882642292771.38997611631232160.6217596556181.98826422865
83229245232056.727121533-4752.55029590939231185.8231743762811.72712153324
84231805233678.56145647-87.0840112224158230018.5225547531873.56145646982
85219277209980.945081564-278.167016693467228851.221935129-9296.05491843558
86219313215499.736373526-4093.16961067616227219.43323715-3813.26362647433
87212610207776.111168504-8143.75570767555225587.644539172-4833.88883149633
88214771217769.088466773-11724.4506993451223497.3622325722998.08846677342
89211142217211.066118164-16334.146044135221407.0799259716069.06611816361
90211457218120.427521818-14155.6645696925218949.2370478756663.42752181785
91240048245210.95213971518393.6536905069216491.3941697785162.95213971523
92240636240582.05132301727148.9477498811213541.000927101-53.9486769825453
93230580239314.39740005611254.9949155187210590.6076844258734.39740005624
94208795207748.875517742771.38997611631207069.734506144-1046.12448226
95197922197047.688968047-4752.55029590939203548.861327862-874.311031952908
96194596189334.298929286-87.0840112224158199944.785081937-5261.70107071431
97194581193099.458180682-278.167016693467196340.708836011-1481.54181931764
98185686182461.980256938-4093.16961067616193003.189353738-3224.0197430616
99178106174690.085836211-8143.75570767555189665.669871464-3415.91416378884
100172608170170.110371966-11724.4506993451186770.340327379-2437.88962803359
101167302167063.135260842-16334.146044135183875.010783293-238.8647391579
102168053168651.55974815-14155.6645696925181610.104821543598.559748149593
103202300206861.147449718393.6536905069179345.1988597934561.14744970025
104202388200033.73713096427148.9477498811177593.315119155-2354.26286903594
105182516177935.57370596411254.9949155187175841.431378517-4580.42629403557
106173476169695.5199577822771.38997611631174485.090066102-3780.48004221788
107166444164511.801542223-4752.55029590939173128.748753686-1932.19845777686
108171297170609.237822002-87.0840112224158172071.84618922-687.76217799756
109169701168665.22339194-278.167016693467171014.943624754-1035.7766080602
110164182162276.012608613-4093.16961067616170181.157002063-1905.98739138688
111161914162624.385328303-8143.75570767555169347.370379372710.385328303179
112159612161996.551965578-11724.4506993451168951.8987337682384.55196557753
113151001149779.718955972-16334.146044135168556.427088163-1221.28104402765
114158114161374.133545677-14155.6645696925169009.5310240153260.13354567732
115186530185203.71134962518393.6536905069169462.634959868-1326.28865037457
116187069175873.50406538127148.9477498811171115.548184738-11195.4959346192
117174330164636.54367487311254.9949155187172768.461409609-9693.45632512728
118169362160501.1901115862771.38997611631175451.419912297-8860.8098884137
119166827160272.171880923-4752.55029590939178134.378414986-6554.82811907682
120178037174617.566858656-87.0840112224158181543.517152566-3419.43314134396
121186413188151.511126547-278.167016693467184952.6558901471738.51112654695
122189226194035.884477418-4093.16961067616188509.2851332584809.88447741806
123191563199203.841331306-8143.75570767555192065.914376377640.84133130591
124188906194287.695773808-11724.4506993451195248.7549255375381.695773808
125186005189912.550569431-16334.146044135198431.5954747043907.55056943055
126195309203757.563973539-14155.6645696925201016.1005961548448.56397353881
127223532225069.7405918918393.6536905069203600.6057176031537.74059189021
128226899221208.1222460927148.9477498811205440.930004029-5690.8777539102
129214126209715.75079402611254.9949155187207281.254290455-4410.24920597402
130206903202577.2473880522771.38997611631208457.362635832-4325.752611948
131204442204003.079314701-4752.55029590939209633.470981208-438.920685298683
132220375230456.056663188-87.0840112224158210381.02734803410081.0566631883
133214320217789.583301833-278.167016693467211128.583714863469.58330183339
134212588218320.430056142-4093.16961067616210948.7395545345732.43005614242
135205816209006.860313468-8143.75570767555210768.8953942073190.86031346821
136202196206210.366817123-11724.4506993451209906.0838822224014.36681712308
137195722198734.873673898-16334.146044135209043.2723702373012.87367389843
138198563203186.429182857-14155.6645696925208095.2353868354623.42918285704
139229139232737.14790605918393.6536905069207147.1984034343598.14790605876
140229527225850.23820253627148.9477498811206054.814047583-3676.76179746439
141211868207518.57539274911254.9949155187204962.429691732-4349.42460725096
142203555200624.1834140152771.38997611631203714.426609869-2930.8165859849
143195770193826.126767905-4752.55029590939202466.423528005-1943.87323209547
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/1a26a1293459427.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/1a26a1293459427.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/2a26a1293459427.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/2a26a1293459427.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/33t5d1293459427.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/33t5d1293459427.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/43t5d1293459427.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934593508jumthjyiwhjrkh/43t5d1293459427.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
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')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by