Home » date » 2009 » Dec » 09 »

Shw9

*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: Wed, 09 Dec 2009 08:48:56 -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/09/t1260373781bfyeqpwu51najnm.htm/, Retrieved Wed, 09 Dec 2009 16:49:46 +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/09/t1260373781bfyeqpwu51najnm.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 «
0.7461 0.7775 0.7790 0.7744 0.7905 0.7719 0.7811 0.7557 0.7637 0.7595 0.7471 0.7615 0.7487 0.7389 0.7337 0.7510 0.7382 0.7159 0.7542 0.7636 0.7433 0.7658 0.7627 0.7480 0.7692 0.7850 0.7913 0.7720 0.7880 0.8070 0.8268 0.8244 0.8487 0.8572 0.8214 0.8827 0.9216 0.8865 0.8816 0.8884 0.9466 0.9180 0.9337 0.9559 0.9626 0.9434 0.8639 0.7996 0.6680 0.6572 0.6928 0.6438 0.6454 0.6873 0.7265 0.7912 0.8114 0.8281 0.8393
 
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
Seasonal591060
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
10.74610.71755662311106-0.02403513643260940.79867851332155-0.0285433768889406
20.77750.787391087968745-0.02581150352554820.7934204155568030.00989108796874472
30.7790.789065555189964-0.01922787298202060.7881623177920570.0100655551899637
40.77440.795420405284004-0.02990353064224910.7832831253582450.0210204052840038
50.79050.817595262344958-0.01499919526939110.7784039329244330.0270952623449576
60.77190.785593250942249-0.01591582768778330.7741225767455340.0136932509422492
70.78110.783031231803110.009327547630255720.7698412205666350.00193123180310939
80.75570.7208011700297570.02484083922846750.765757990741776-0.0348988299702434
90.76370.7312911040789950.03443413500408780.761674760916917-0.0324088959210048
100.75950.7204002920734720.04085796080785730.75774174711867-0.0390997079265276
110.74710.7218895002816280.01850176639794870.753808733320423-0.0252104997183722
120.76150.7689619911469290.001930903352293260.7521071055007780.00746199114692914
130.74870.771029658751478-0.02403513643260940.7504054776811320.0223296587514777
140.73890.753711846905933-0.02581150352554820.7498996566196150.0148118469059332
150.73370.737234037423922-0.01922787298202060.7493938355580980.00353403742392222
160.7510.78316981031331-0.02990353064224910.7487337203289390.0321698103133102
170.73820.743325590169612-0.01499919526939110.748073605099780.00512559016961167
180.71590.699998904077967-0.01591582768778330.747716923609816-0.0159010959220329
190.75420.7517122102498910.009327547630255720.747360242119853-0.00248778975010888
200.76360.7530162831789960.02484083922846750.749342877592536-0.0105837168210039
210.74330.7008403519306930.03443413500408780.75132551306522-0.0424596480693074
220.76580.7348123223194640.04085796080785730.755929716872678-0.0309876776805356
230.76270.7463643129219140.01850176639794870.760533920680137-0.0163356870780859
240.7480.7268458447438150.001930903352293260.767223251903892-0.0211541552561848
250.76920.788522553304963-0.02403513643260940.7739125831276460.0193225533049634
260.7850.814376763371537-0.02581150352554820.7814347401540110.0293767633715369
270.79130.812870975801644-0.01922787298202060.7889568971803770.021570975801644
280.7720.777877753117851-0.02990353064224910.7960257775243980.0058777531178511
290.7880.787904537400972-0.01499919526939110.803094657868419-9.5462599028262e-05
300.8070.819084814096165-0.01591582768778330.8108310135916180.0120848140961650
310.82680.8257050830549270.009327547630255720.818567369314817-0.00109491694507313
320.82440.7963249357507980.02484083922846750.827634225020734-0.0280750642492017
330.84870.8262647842692610.03443413500408780.836701080726651-0.0224352157307388
340.85720.826127308612740.04085796080785730.847414730579403-0.0310726913872607
350.82140.7661698531698950.01850176639794870.858128380432156-0.0552301468301045
360.88270.893902115532940.001930903352293260.8695669811147670.0112021155329395
370.92160.98622955463523-0.02403513643260940.8810055817973790.0646295546352305
380.88650.907116222944489-0.02581150352554820.891695280581060.0206162229444887
390.88160.880042893617281-0.01922787298202060.90238497936474-0.00155710638271922
400.88840.899028980059324-0.02990353064224910.9076745505829250.0106289800593239
410.94660.99523507346828-0.01499919526939110.912964121801110.0486350734682807
420.9180.945272170639938-0.01591582768778330.9066436570478450.0272721706399379
430.93370.9577492600751640.009327547630255720.900323192294580.0240492600751638
440.95591.003836261154960.02484083922846750.8831228996165710.0479362611549611
450.96261.024843258057350.03443413500408780.8659226069385620.0622432580573496
460.94341.002389844918080.04085796080785730.8435521942740640.0589898449180789
470.86390.8881164519924860.01850176639794870.8211817816095650.0242164519924861
480.79960.7984576188017390.001930903352293260.798811477845968-0.00114238119826116
490.6680.583593962350239-0.02403513643260940.77644117408237-0.0844060376497613
500.65720.57564600287312-0.02581150352554820.764565500652428-0.0815539971268797
510.69280.652138045759535-0.01922787298202060.752689827222485-0.0406619542404646
520.64380.56749854722605-0.02990353064224910.750004983416199-0.0763014527739497
530.64540.558479055659479-0.01499919526939110.747320139609912-0.0869209443405213
540.68730.644755902597721-0.01591582768778330.745759925090063-0.0425440974022793
550.72650.6994727417995320.009327547630255720.744199710570213-0.0270272582004684
560.79120.8129497562659650.02484083922846750.7446094045055670.0217497562659652
570.81140.843346766554990.03443413500408780.7450190984409220.0319467665549902
580.82810.8676416827735430.04085796080785730.7477003564185990.0395416827735434
590.83930.9097166192057750.01850176639794870.7503816143962760.0704166192057748
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/1asz31260373734.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/1asz31260373734.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/23qhl1260373734.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/23qhl1260373734.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/3k6901260373734.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/3k6901260373734.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/4q9d41260373734.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260373781bfyeqpwu51najnm/4q9d41260373734.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