Home » date » 2010 » Nov » 27 »

ws 8: productie

*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: Sat, 27 Nov 2010 18:26:46 +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/Nov/27/t1290882317l0yab3l57glatke.htm/, Retrieved Sat, 27 Nov 2010 19:25:18 +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/Nov/27/t1290882317l0yab3l57glatke.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 «
94,6 95,9 104,7 102,8 98,1 113,9 80,9 95,7 113,2 105,9 108,8 102,3 99 100,7 115,5 100,7 109,9 114,6 85,4 100,5 114,8 116,5 112,9 102 106 105,3 118,8 106,1 109,3 117,2 92,5 104,2 112,5 122,4 113,3 100 110,7 112,8 109,8 117,3 109,1 115,9 96 99,8 116,8 115,7 99,4 94,3 91 93,2 103,1 94,1 91,8 102,7 82,6 89,1 104,5 105,1 95,1 88,7 86,3 91,8 111,5 99,7 97,5 111,7 86,2 95,4
 
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


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
194.695.7196452563907-5.0179561293560298.49831087296531.11964525639068
295.995.922353197718-3.1037727018326898.98141950411470.0223531977179476
3104.7102.5250643451577.4104075195792299.4645281352642-2.17493565484338
4102.8105.4165843307810.22417939206934699.95923627714942.61658433078127
598.196.4247711393204-0.678715558355041100.453944419035-1.6752288606796
6113.9117.5141648178339.32622876514923100.9596064170173.61416481783343
780.976.4535497217298-16.1188181367298101.465268415-4.44645027827023
895.795.446792202734-6.01812676901854101.971334566285-0.253207797266057
9113.2115.2644882972788.65811098515259102.4774007175692.06448829727823
10105.999.41655934728099.41562234245817102.967818310261-6.48344065271912
11108.8111.9486355900612.19312850698615103.4582359029533.1486355900611
12102.3107.02067678298-6.2902874220305103.8696106390514.72067678297954
139998.7369707542069-5.01795612935602104.280985375149-0.26302924579312
14100.799.8686562745178-3.10377270183268104.635116427315-0.831343725482242
15115.5118.600345000947.41040751957922104.9892474794813.10034500094008
16100.795.86804622574860.224179392069346105.307774382182-4.83195377425143
17109.9114.852414273472-0.678715558355041105.6263012848834.95241427347158
18114.6113.9125678156339.32622876514923105.961203419218-0.687432184366912
1985.480.622712583178-16.1188181367298106.296105553552-4.77728741682206
20100.5100.333479362707-6.01812676901854106.684647406312-0.16652063729299
21114.8113.8686997557768.65811098515259107.073189259071-0.931300244223792
22116.5116.162563170889.41562234245817107.421814486661-0.337436829119582
23112.9115.8364317787622.19312850698615107.7704397142522.93643177876223
24102102.217369742014-6.2902874220305108.0729176800160.217369742014114
25106108.642560483575-5.01795612935602108.3753956457812.64256048357491
26105.3105.119696334622-3.10377270183268108.58407636721-0.180303665377735
27118.8121.3968353917817.41040751957922108.792757088642.59683539178106
28106.1103.1050223505760.224179392069346108.870798257355-2.9949776494241
29109.3110.329876132285-0.678715558355041108.948839426071.02987613228527
30117.2116.0128205577499.32622876514923109.060950677102-1.18717944225074
3192.591.9457562085965-16.1188181367298109.173061928133-0.554243791403479
32104.2105.044866947619-6.01812676901854109.37325982140.844866947618613
33112.5106.7684313001818.65811098515259109.573457714667-5.73156869981919
34122.4125.5831363920519.41562234245817109.8012412654913.18313639205132
35113.3114.3778466766992.19312850698615110.0290248163141.07784667669941
3610096.1222193090731-6.2902874220305110.168068112957-3.87778069092688
37110.7116.110844719756-5.01795612935602110.30711140965.41084471975572
38112.8118.437760880382-3.10377270183268110.2660118214515.63776088038215
39109.8101.964680247127.41040751957922110.224912233301-7.83531975287998
40117.3124.6096310590520.224179392069346109.7661895488797.30963105905205
41109.1109.571248693899-0.678715558355041109.3074668644560.471248693898602
42115.9114.1528950399119.32622876514923108.32087619494-1.74710496008926
4396100.784532611306-16.1188181367298107.3342855254244.78453261130618
4499.899.6166988675608-6.01812676901854106.001427901458-0.183301132439155
45116.8120.2733187373568.65811098515259104.6685702774923.47331873735564
46115.7118.7608591125669.41562234245817103.2235185449763.06085911256577
4799.494.82840468055352.19312850698615101.77846681246-4.57159531944652
4894.394.4627470024499-6.2902874220305100.4275404195810.16274700244989
499187.9413421026552-5.0179561293560299.0766140267008-3.0586578973448
5093.291.461420101592-3.1037727018326898.0423526002407-1.73857989840806
51103.1101.781501306647.4104075195792297.0080911737807-1.3184986933599
5294.191.62527109022360.22417939206934696.350549517707-2.47472890977636
5391.888.5857076967217-0.67871555835504195.6930078616333-3.2142923032783
54102.7100.7246134211989.3262287651492395.3491578136528-1.97538657880199
5582.686.3135103710576-16.118818136729895.00530776567223.71351037105761
5689.189.1805898900068-6.0181267690185495.03753687901180.0805898900067632
57104.5105.2721230224968.6581109851525995.06976599235140.772123022496046
58105.1105.3384485852499.4156223424581795.44592907229280.238448585249046
5995.192.18477934077962.1931285069861595.8220921522342-2.91522065922035
6088.787.2136738915749-6.290287422030596.4766135304556-1.4863261084251
6186.380.486821220679-5.0179561293560297.131134908677-5.81317877932096
6291.888.9386565017545-3.1037727018326897.7651162000781-2.86134349824546
63111.5117.1904949889417.4104075195792298.39909749147935.69049498894148
6499.7100.1001375035030.22417939206934699.07568310442750.40013750350316
6597.595.9264468409793-0.67871555835504199.7522687173757-1.57355315902066
66111.7113.5976018448389.32622876514923100.4761693900131.89760184483805
6786.287.31874807408-16.1188181367298101.200070062651.11874807408007
6895.494.8648436888571-6.01812676901854101.953283080161-0.535156311142927
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/1qyid1290882401.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/1qyid1290882401.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/2qyid1290882401.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/2qyid1290882401.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/30phy1290882401.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/30phy1290882401.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/40phy1290882401.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290882317l0yab3l57glatke/40phy1290882401.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