Home » date » 2009 » Jun » 01 »

Kim Van Assche Loess

*Unverified author*
R Software Module: rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Mon, 01 Jun 2009 11:07:01 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz.htm/, Retrieved Mon, 01 Jun 2009 19:07:32 +0200
 
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/2009/Jun/01/t12438760470da11v1p6un7txz.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
14108639623.43237234128106.652106872934441.9155207859-1462.56762765881
23969040646.51839175835114.1532508730933619.3283573686956.51839175832
34312945230.38193014188230.876875906932796.74119395132101.38193014182
43786338190.30719079345525.9447427295432009.7480664771327.30719079341
53595339596.08669741921087.1583635779331222.75493900283643.08669741924
62913327153.5111085948638.98843662814530473.5004547770-1979.48889140519
72469322944.3255211360-3282.5714916873129724.2459705513-1748.67447886395
82220520994.5988280935-5559.2878962908328974.6890681973-1210.40117190651
92172519098.6140205484-3873.7461863918328225.1321658434-2626.38597945158
102719226568.7227985254216.82324746141627598.4539540132-623.27720147459
112179021574.0479714897-4965.8237136726226971.7757421829-215.952028510314
121325310942.2318130608-11239.165799850626802.9339867897-2310.76818693915
133770240663.25566173068106.652106872926634.09223139652961.25566173058
143036428938.47591232155114.1532508730926675.3708368054-1425.52408767848
153260930270.47368187888230.876875906926716.6494422143-2338.52631812119
163021228111.23243063145525.9447427295426786.822826639-2100.76756936855
172996531985.84542535831087.1583635779326856.99621106372020.84542535832
182835229108.4983249874638.98843662814526956.5132383844756.498324987424
192581427854.5412259822-3282.5714916873127056.03026570512040.54122598220
202241423173.0367266159-5559.2878962908327214.2511696749759.036726615934
212050617513.2741127471-3873.7461863918327372.4720736447-2992.72588725285
222880629961.2486064573216.82324746141627433.92814608131155.24860645725
232222821926.4394951546-4965.8237136726227495.384218518-301.560504845365
241397111854.1766844923-11239.165799850627326.9891153583-2116.82331550774
253684538424.75388092858106.652106872927158.59401219861579.75388092845
263533838652.32528434065114.1532508730926909.52146478633314.3252843406
273502235152.67420671918230.876875906926660.448917374130.674206719104
283477737665.31315811365525.9447427295426362.74209915692888.31315811357
292688726621.80635548231087.1583635779326065.0352809398-265.193644517738
302397021643.9058242101638.98843662814525657.1057391618-2326.09417578992
312278023593.3952943036-3282.5714916873125249.1761973837813.395294303573
321735115519.4583436319-5559.2878962908324741.8295526589-1831.54165636807
332138222403.2632784578-3873.7461863918324234.48290793401021.26327845778
342456125117.9969308069216.82324746141623787.1798217317556.996930806916
351740916443.9469781433-4965.8237136726223339.8767355293-965.053021856675
361151411163.5229612626-11239.165799850623103.6428385879-350.477038737365
373151432053.93895148058106.652106872922867.4089416466539.938951480515
382707126204.19050652755114.1532508730922823.6562425994-866.809493472538
392946227913.21958054088230.876875906922779.9035435523-1548.78041945923
402610523828.21271906605525.9447427295422855.8425382045-2276.78728093404
412239720775.06010356541087.1583635779322931.7815328567-1621.93989643461
422384323959.4450608898638.98843662814523087.5665024821116.445060889801
432170523449.2200195799-3282.5714916873123243.35147210741744.22001957988
441808918243.4875699334-5559.2878962908323493.8003263574154.487569933401
452076421657.4970057844-3873.7461863918323744.2491806074893.497005784408
462531626447.8356317311216.82324746141623967.34112080751131.83563173107
471770416183.3906526650-4965.8237136726224190.4330610076-1520.60934733498
481554818138.9839290493-11239.165799850624196.18187080132590.98392904925
492802923749.41721253218106.652106872924201.9306805950-4279.58278746795
502938329562.01595294355114.1532508730924089.8307961834179.015952943533
513643840667.39221232148230.876875906923977.73091177174229.39221232137
523203434648.55365595155525.9447427295423893.50160131902614.5536559515
532267920461.56934555591087.1583635779323809.2722908662-2217.43065444413
542431924291.6885124726638.98843662814523707.3230508993-27.3114875274441
551800415685.1976807549-3282.5714916873123605.3738109324-2318.80231924509
561753717255.6820062560-5559.2878962908323377.6058900348-281.317993743956
572036621455.9082172547-3873.7461863918323149.83796913721089.90821725466
582278222442.8369838476216.82324746141622904.3397686910-339.163016152444
591916920644.9821454277-4965.8237136726222658.84156824491475.98214542773
601380716280.5330032728-11239.165799850622572.63279657772473.53300327283
612974328892.92386821658106.652106872922486.4240249106-850.076131783488
622559123616.88555068955114.1532508730922450.9611984374-1974.11444931049
632909627545.62475212898230.876875906922415.4983719642-1550.37524787113
642648225045.01060474095525.9447427295422393.0446525296-1436.98939525914
652240521352.25070332711087.1583635779322370.590933095-1052.74929667292
662704431098.8661906805638.98843662814522350.14537269144054.86619068048
671797016892.8716793996-3282.5714916873122329.6998122878-1077.12832060044
681873020686.3497060211-5559.2878962908322332.93819026971956.34970602109
691968420905.5696181401-3873.7461863918322336.17656825171221.5696181401
701978516999.594883085216.82324746141622353.5818694536-2785.40511691499
711847919552.8365430172-4965.8237136726222370.98717065541073.83654301720
721069810243.0555312244-11239.165799850622392.1102686262-454.944468775611
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/1avqa1243876019.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/1avqa1243876019.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/2xqwk1243876019.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/2xqwk1243876019.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/38vhg1243876019.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/38vhg1243876019.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/47jub1243876019.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t12438760470da11v1p6un7txz/47jub1243876019.ps (open in new window)


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





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