Home » date » 2009 » Dec » 04 »

WS9

*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: Thu, 03 Dec 2009 17:54:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou.htm/, Retrieved Fri, 04 Dec 2009 01:55:40 +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/2009/Dec/04/t1259888135f4k2vok5y0ph9ou.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 «
10284,5 12792 12823,61538 13845,66667 15335,63636 11188,5 13633,25 12298,46667 15353,63636 12696,15385 12213,93333 13683,72727 11214,14286 13950,23077 11179,13333 11801,875 11188,82353 16456,27273 11110,0625 16530,69231 10038,41176 11681,25 11148,88235 8631 9386,444444 9764,736842 12043,75 12948,06667 10987,125 11648,3125 10633,35294 10219,3 9037,6 10296,31579 11705,41176 10681,94444 9362,947368 11306,35294 10984,45 10062,61905 8118,583333 8867,48 8346,72 8529,307692 10697,18182 8591,84 8695,607143 8125,571429 7009,758621 7883,466667 7527,645161 6763,758621 6682,333333 7855,681818 6738,88 7895,434783 6361,884615 6935,956522 8344,454545 9107,944444
 
Output produced by software:


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


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
110284.59291.177005915-1468.5742207184612746.3972148035-993.322994085001
21279212477.8313814501312.43592611288312793.7326924371-314.168618549935
312823.6153812628.1535221999178.00906772948912841.0681700706-195.46185780013
413845.6666714405.0719554158408.82609505604612877.4352895282559.405285415773
515335.6363617912.4038524574-154.93354144312512913.80240898572576.76749245741
611188.58792.89496897249641.63818676870412942.4668442588-2395.60503102751
713633.2514708.7073412955-413.33862082735512971.13127953191075.45734129547
812298.4666710960.1815201275652.24216636944512984.509653503-1338.28514987245
915353.6363617790.6482645279-81.263572002068212997.88802747412437.01190452794
1012696.1538512700.3044399575-247.81602240076812939.81928244334.15058995745858
1112213.9333311321.6910665885224.42505599896512881.7505374125-892.242263411452
1213683.7272714575.2620912332-51.650365103988412843.8428138708891.534821233232
1311214.1428611090.9248503894-1468.5742207184612805.9350903290-123.218009610562
1413950.2307714806.4343281709312.43592611288312781.5912857162856.203558170944
1511179.133339423.01011116719178.00906772948912757.2474811033-1756.12321883281
1611801.87510556.8722023113408.82609505604612638.0517026326-1245.00279768867
1711188.8235310013.7246772812-154.93354144312512518.8559241619-1175.09885271881
1816456.2727319948.5789530333641.63818676870412322.32832019803492.30622303331
1911110.062510507.6629045933-413.33862082735512125.8007162340-602.39959540668
2016530.6923120460.6850828685652.24216636944511948.45737076213929.9927728685
2110038.411768386.973066712-81.263572002068211771.1140252901-1651.43869328801
2211681.2511964.440625471-247.81602240076811645.8753969298283.190625470999
2311148.8823510552.7028754316224.42505599896511520.6367685695-596.179474568427
2486315964.39184004069-51.650365103988411349.2585250633-2666.60815995931
259386.4444449063.58282716132-1468.5742207184611177.8802815571-322.861616838682
269764.7368428214.34934247213312.43592611288311002.688415415-1550.38749952787
2712043.7513081.9943829977178.00906772948910827.49654927281038.24438299767
2812948.0666714717.6082298387408.82609505604610769.69901510531769.54155983868
2910987.12511417.2820605054-154.93354144312510711.9014809377430.157060505422
3011648.312511921.9154636438641.63818676870410733.0713495875273.602963643794
3110633.3529410925.8032825901-413.33862082735510754.2412182373292.450342590055
3210219.39048.5949750748652.24216636944510737.7628585558-1170.70502492520
339037.67435.17907312786-81.263572002068210721.2844988742-1602.42092687214
3410296.3157910243.8378484522-247.81602240076810596.6097539485-52.4779415477788
3511705.4117612714.4634549782224.42505599896510471.93500902291009.05169497815
3610681.9444411106.3806929396-51.650365103988410309.1585521644424.436252939571
379362.94736810048.0868614125-1468.5742207184610146.3820953059685.139493412513
3811306.3529412291.5791273580312.43592611288310008.6908265292985.22618735795
3910984.4511919.8913745181178.0090677294899870.99955775239935.441374518126
4010062.619059999.64734246416408.8260950560469716.7646624798-62.9717075358403
418118.5833336829.57044023593-154.9335414431259562.5297672072-1289.01289276407
428867.487740.59247353761641.6381867687049352.72933969368-1126.88752646239
438346.727963.84970864719-413.3386208273559142.92891218016-382.87029135281
448529.3076927484.14848837522652.2421663694458922.22472925533-1045.15920362478
4510697.1818212774.1066656716-81.26357200206828701.52054633052076.92484567156
468591.848922.86080265207-247.8160224007688508.6352197487331.020802652065
478695.6071438851.03933683413224.4250559989658315.7498931669155.432193834133
488125.5714298149.65485169739-51.65036510398848153.138371406624.0834226973884
497009.7586217497.56461307217-1468.574220718467990.5268496463487.805992072165
507883.4666677644.10615210004312.4359261128837810.39125578708-239.360514899964
517527.6451617247.02559234265178.0090677294897630.25566192786-280.619568657352
526763.7586215546.85037730292408.8260950560467571.84076964103-1216.90824369708
536682.3333336006.17433008892-154.9335414431257513.4258773542-676.159002911081
547855.6818187573.82597733885641.6381867687047495.89947189245-281.855840661148
556738.886412.72555439667-413.3386208273557478.37306643068-326.15444560333
567895.4347837663.32609397059652.2421663694457475.30130565996-232.108689029409
576361.8846155332.80325711283-81.26357200206827472.22954488924-1029.08135788717
586935.9565226632.86406850106-247.8160224007687486.86499789971-303.092453498944
598344.4545458962.98358309085224.4250559989657501.50045091018618.529038090854
609107.94444410733.7896776422-51.65036510398847533.74957546181625.84523364219
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/1ezqj1259888078.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/1ezqj1259888078.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/22dmn1259888078.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/22dmn1259888078.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/31q731259888078.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/31q731259888078.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/4ptnn1259888078.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259888135f4k2vok5y0ph9ou/4ptnn1259888078.ps (open in new window)


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