Home » date » 2009 » Dec » 04 »

WS 9 ADC2

*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: Fri, 04 Dec 2009 09:34:22 -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/t12599445190w58j749cjs3hee.htm/, Retrieved Fri, 04 Dec 2009 17:35:25 +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/t12599445190w58j749cjs3hee.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 «
100 96.21064363 96.31280765 107.1793443 114.9066592 92.56060184 114.9995356 107.1236185 117.7765394 107.3650971 106.2970187 114.5072908 98.0031578 103.0649206 100.2879168 104.6066685 111.1544534 104.9874617 109.9284852 111.5352466 132.4974459 100.3436426 123.0983561 114.2379493 104.569518 109.0833101 106.9843039 133.6769759 124.8537197 122.5132349 116.8013374 116.0118882 129.7575926 125.1973623 143.7912139 127.9465032 130.2962757 108.4424631 129.3675118 143.6797622 131.8844618 117.6186496 118.9560695 104.8202842 134.624315 140.401226 143.8005015 153.4317823 153.2924677 127.3149438 153.5525216 136.9276493 131.7730101 144.3391845 107.4208229 113.6249652 124.2221603 102.0618557 96.36853348 111.6838488
 
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
110098.1874632812171-1.22827288696546103.040809605748-1.81253671878287
296.2106436398.630586043644-9.83925378432986103.6299550006862.41994241364404
396.3128076589.9699777164132-1.56346281203655104.219100395623-6.34282993358678
4107.1793443103.14111097656.51743637118031104.700141252320-4.03823332350005
5114.9066592120.2465022092914.38563408169314105.1811821090165.33984300929072
692.5606018481.705020909012-2.14583051444291105.562013285431-10.8555809309881
7114.9995356129.005460066352-4.94923332819754105.94284446184614.0059244663518
8107.1236185115.896881448223-7.96658501707058106.3169405688488.77326294822275
9117.7765394119.6955130696219.1665290545296106.691036675851.91897366962053
10107.3650971111.242463468923-3.36348626690186106.8512169979793.87736636892298
11106.2970187101.1770736007074.40556647918489107.011397320108-5.11994509929279
12114.5072908115.5230356055656.58094976092526106.910596233511.01574480556481
1398.003157890.4247933400535-1.22827288696546106.809795146912-7.57836445994654
14103.0649206108.871621033629-9.83925378432986107.0974739507015.80670043362893
15100.287916894.7541436575467-1.56346281203655107.385152754490-5.53377314245328
16104.606668594.62894410657436.51743637118031108.066956522245-9.97772439342567
17111.1544534109.1745124283064.38563408169314108.748760290001-1.97994097169403
18104.9874617102.684860076734-2.14583051444291109.435893837709-2.30260162326589
19109.9284852114.683176342781-4.94923332819754110.1230273854174.75469114278083
20111.5352466120.145683324927-7.96658501707058110.8913948921448.61043672492706
21132.4974459144.16860034669.1665290545296111.65976239887011.6711544466001
22100.343642691.3423078996572-3.36348626690186112.708463567245-9.00133470034282
23123.0983561128.0339809851964.40556647918489113.7571647356194.93562488519606
24114.2379493107.2076981378686.58094976092526114.687250701207-7.03025116213203
25104.56951894.749972220171-1.22827288696546115.617336666795-9.81954577982904
26109.0833101111.602463429372-9.83925378432986116.4034105549582.51915332937182
27106.984303998.342586168915-1.56346281203655117.189484443122-8.64171773108502
28133.6769759142.3648858399316.51743637118031118.4716295888888.68790993993129
29124.8537197125.5680305836524.38563408169314119.7537747346550.71431088365162
30122.5132349125.911131716708-2.14583051444291121.2611685977343.39789681670845
31116.8013374115.783345667384-4.94923332819754122.768562460814-1.01799173261614
32116.0118882116.055200519008-7.96658501707058123.9351608980620.0433123190083364
33129.7575926125.2468968101609.1665290545296125.101759335311-4.5106957898404
34125.1973623127.911404397113-3.36348626690186125.8468064697892.71404209711258
35143.7912139156.5850077165474.40556647918489126.59185360426812.7937938165474
36127.9465032122.4879838477676.58094976092526126.824072791308-5.45851935223307
37130.2962757134.764532308618-1.22827288696546127.0562919783484.46825660861754
38108.442463199.7896090805199-9.83925378432986126.93457090381-8.6528540194801
39129.3675118133.485636582765-1.56346281203655126.8128498292724.11812478276454
40143.6797622153.7094965465856.51743637118031127.13259148223510.0297343465851
41131.8844618131.9309563831104.38563408169314127.4523331351970.0464945831096912
42117.6186496108.706608844477-2.14583051444291128.676520869966-8.91204075552338
43118.9560695112.960663723462-4.94923332819754129.900708604735-5.99540577653786
44104.820284286.0557232806419-7.96658501707058131.551430136429-18.7645609193581
45134.624315126.8799492773489.1665290545296133.202151668122-7.74436572265154
46140.401226149.666649281305-3.36348626690186134.4992889855979.26542328130472
47143.8005015147.3990102177434.40556647918489135.7964263030723.59850871774273
48153.4317823163.6814355584716.58094976092526136.60117928060410.2496532584711
49153.2924677170.407276028831-1.22827288696546137.40593225813517.1148083288306
50127.3149438127.585662220552-9.83925378432986136.8834791637780.270718420551560
51153.5525216172.307479942615-1.56346281203655136.36102606942218.7549583426149
52136.9276493134.5888816715336.51743637118031132.748980557287-2.33876762846734
53131.7730101130.0234510731544.38563408169314129.136935045152-1.74955902684552
54144.3391845165.440826143392-2.14583051444291125.38337337105121.1016416433922
55107.420822998.1610674312486-4.94923332819754121.629811696949-9.25975546875138
56113.6249652117.530294181302-7.96658501707058117.6862212357693.90532898130171
57124.2221603125.5351607708829.1665290545296113.7426307745891.31300047088159
58102.061855797.9037301976577-3.36348626690186109.583467469244-4.15812550234233
5996.3685334882.90719631691554.40556647918489105.424304163900-13.4613371630845
60111.6838488115.6703841341926.58094976092526101.1163637048833.98653533419166
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/13d8s1259944460.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/13d8s1259944460.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/2kwoc1259944460.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/2kwoc1259944460.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/3cmyo1259944460.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599445190w58j749cjs3hee/3cmyo1259944460.ps (open in new window)


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


 
Parameters (Session):
par1 = TRUE ; par2 = 1 ; par3 = 1 ; par4 = 0 ; 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