Home » date » 2010 » Dec » 28 »

Paper

*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: Tue, 28 Dec 2010 18:45:08 +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/28/t1293561809myg0vs24cvp3pb8.htm/, Retrieved Tue, 28 Dec 2010 19:43:30 +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/28/t1293561809myg0vs24cvp3pb8.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 «
9782 9938 10111 10259 10419 10622 11173 11542 11538 11837 12060 12423 12791 12891 13098 13418 13614 13653 13980 14087 14332 14232 14226 14186 14310 14152 14127 14163 13964 13811 14440 14724 14790 14961 15117 15452 16080 16284 16524 16782 16663 16678 17448 17745 17789 17864 18079 18483 19037 19344 19590 19862 20207 20593 21253 21507 21528 21818 22205 22621 23006 23178 23358 23519 23725 23789 24472 24773 24477 24669 24827
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
197829863.4055081154835.96594339845059664.6285484860781.4055081154838
2993810024.5465560593-51.53385475077099902.9872986914786.5465560592984
31011110179.6875712004-99.033620097315710141.346048896968.6875712004367
41025910216.6568732057-81.391295468774410382.7344222631-42.3431267942942
51041910378.6263281802-164.74912380949710624.1227956293-40.3736718197615
61062210618.1146805578-242.05183007909710867.9371495213-3.88531944216993
71117311042.6029299119191.64556667485511111.7515034133-130.397070088131
81154211451.2925852828276.04336258232111356.6640521349-90.7074147172498
91153811369.9820829042104.44131623922711601.5766008566-168.017917095807
101183711775.422464624142.084441787684211856.4930935882-61.5775353759218
111206011994.529444822914.060968857244912111.4095863199-65.4705551771367
121242312505.2112538105-25.481939929525112366.27068611982.2112538105193
131279112924.902270683435.965943398450512621.1317859181133.902270683431
141289112980.2301408163-51.533854750770912853.303713934589.2301408162639
151309813209.5579781464-99.033620097315713085.4756419509111.557978146418
161341813635.2999186144-81.391295468774413282.0913768543217.299918614428
171361413914.0420120517-164.74912380949713478.7071117578300.042012051703
181365313918.6177237655-242.05183007909713629.4341063136265.617723765481
191398013988.1933324557191.64556667485513780.16110086948.19333245570851
201408714015.3771214539276.04336258232113882.5795159637-71.6228785460662
211433214574.5607527027104.44131623922713984.9979310581242.560752702719
221423214377.240217452642.084441787684214044.6753407597145.240217452631
231422614333.586280681414.060968857244914104.3527504613107.586280681444
241418614260.4291249839-25.481939929525114137.052814945674.4291249838752
251431014414.281177171635.965943398450514169.75287943104.281177171562
261415214152.5446037679-51.533854750770914202.98925098290.544603767859371
271412714116.8079975615-99.033620097315714236.2256225358-10.1920024385181
281416314116.3219385685-81.391295468774414291.0693569003-46.6780614314866
291396413746.8360325448-164.74912380949714345.9130912647-217.163967455192
301381113412.6740502982-242.05183007909714451.3777797809-398.32594970183
311444014131.511965028191.64556667485514556.8424682972-308.488034972022
321472414443.8218243729276.04336258232114728.1348130448-280.17817562709
331479014576.1315259684104.44131623922714899.4271577924-213.868474031598
341496114755.877412819342.084441787684215124.038145393-205.122587180676
351511714871.289898149114.060968857244915348.6491329936-245.710101850855
361545215330.9646540346-25.481939929525115598.517285895-121.035345965442
371608016275.648617805235.965943398450515848.3854387963195.648617805226
381628416518.3796683194-51.533854750770916101.1541864314234.37966831935
391652416793.1106860308-99.033620097315716353.9229340665269.110686030795
401678217048.4559714511-81.391295468774416596.9353240176266.455971451123
411666316650.8014098407-164.74912380949716839.9477139688-12.1985901592889
421667816521.1734520662-242.05183007909717076.8783780129-156.826547933848
431744817390.545391268191.64556667485517313.8090420571-57.4546087319613
441774517653.5556588117276.04336258232117560.400978606-91.4443411882748
451778917666.565768606104.44131623922717806.9929151548-122.434231394025
461786417602.269220599342.084441787684218083.646337613-261.730779400659
471807917783.639271071614.060968857244918360.2997600711-295.360728928394
481848318320.2968986775-25.481939929525118671.185041252-162.703101322484
491903719055.963734168735.965943398450518982.070322432918.9637341686794
501934419431.011592396-51.533854750770919308.522262354887.0115923959675
511959019644.0594178206-99.033620097315719634.974202276754.0594178205793
521986219839.4432184734-81.391295468774419965.9480769953-22.5567815265713
532020720281.8271720955-164.74912380949720296.921951713974.8271720955454
542059320801.2126999515-242.05183007909720626.8391301276208.212699951499
552125321357.5981247839191.64556667485520956.7563085413104.598124783894
562150721461.1055592112276.04336258232121276.8510782065-45.8944407888484
572152821354.612835889104.44131623922721596.9458478718-173.387164111031
582181821693.124344886642.084441787684221900.7912133257-124.87565511341
592220522191.302452363114.060968857244922204.6365787796-13.6975476368898
602262122778.1565188395-25.481939929525122489.32542109157.156518839507
612300623202.019793201235.965943398450522774.0142634004196.019793201154
622317823383.5114459547-51.533854750770923024.0224087961205.511445954682
632335823541.0030659055-99.033620097315723274.0305541918183.003065905537
642351923624.2033347774-81.391295468774423495.1879606914105.203334777394
652372523898.4037566185-164.74912380949723716.345367191173.403756618514
662378923886.1400055072-242.05183007909723933.911824571997.1400055072409
672447224600.8761513724191.64556667485524151.4782819527128.876151372409
682477324906.0550815544276.04336258232124363.9015558633133.055081554405
692447724273.233853987104.44131623922724576.3248297738-203.766146013037
702466924513.3699642242.084441787684224782.5455939923-155.630035779992
712482724651.172672931914.060968857244924988.7663582108-175.827327068051
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/19mb81293561903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/19mb81293561903.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/2kvbb1293561903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/2kvbb1293561903.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/30ph31293561903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/30ph31293561903.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/40ph31293561903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293561809myg0vs24cvp3pb8/40ph31293561903.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