Home » date » 2010 » Dec » 07 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 07 Dec 2010 19:10:31 +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/07/t1291749722p71a5rxpxwn3rqc.htm/, Retrieved Tue, 07 Dec 2010 20:22:03 +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/07/t1291749722p71a5rxpxwn3rqc.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:
KDGP2W92 - Sofie Baert
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,59 6,59 6,59 6,59 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,79 6,79 6,79 6,81 6,80 6,80 6,85 6,85 6,85 6,85 6,85 6,85 6,86 6,86 6,88 6,88 6,88 6,91 6,91 6,91 6,91 6,99 6,99 6,99 7,02 7,02 7,05 7,05 7,05 7,05 7,10 7,10 7,10 7,10 7,12 7,13 7,18 7,24 7,24 7,24 7,27 7,27 7,27 7,27 7,30 7,30 7,57 7,76 7,94 7,94 7,96
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16.59NANA1.00234327714714NA
26.59NANA1.00096284469815NA
36.59NANA0.999400711893269NA
46.59NANA0.99944231821516NA
56.63NANA0.996415066966497NA
66.63NANA0.994194739876087NA
76.636.619221685946426.618333333333331.000134226030691.00162833556043
86.636.615659266120426.621666666666670.9990927660891641.00216769535774
96.636.610028412403036.6250.9977401377212121.00302140722414
106.636.650997883831466.628333333333331.003419343801580.99684289723163
116.636.653179138981546.631.00349609939390.996516080734136
126.636.652266643948266.631.003358468167160.99665277338687
136.636.645535927485566.631.002343277147140.997662200963912
146.636.636383660348726.631.000962844698150.99903808148
156.636.626026719852376.630.9994007118932691.00059964746833
166.636.632965518554626.636666666666670.999442318215160.99955291211053
176.636.626160195327216.650.9964150669664971.00057949167536
186.636.6246509500416.663333333333330.9941947398760871.00080744630915
196.636.67839629431996.67751.000134226030690.992753306005355
206.636.68601204839926.692083333333330.9990927660891640.991622502622829
216.636.691094798592886.706250.9977401377212120.990869237332323
226.796.745486538706116.72251.003419343801581.00659899935141
236.796.764399956664376.740833333333331.00349609939391.00378452538283
246.796.781867112753186.759166666666671.003358468167161.0011992106468
256.816.793381560864766.77751.002343277147141.00244626906149
266.86.802376665427836.795833333333331.000962844698150.999650612492556
276.86.810083017626056.814166666666670.9994007118932690.998519398720992
286.856.822443124716246.826250.999442318215161.00403915060632
296.856.807590772104026.832083333333330.9964150669664971.0062296970126
306.856.799049277327596.838750.9941947398760871.00749380105867
316.856.846335499774226.845416666666671.000134226030691.00053524987578
326.856.845450602320926.851666666666660.9990927660891641.00066458702916
336.856.844081619710136.859583333333330.9977401377212121.00086474425916
346.866.890146160770846.866666666666671.003419343801580.99562474292019
356.866.895690696335076.871666666666661.00349609939390.994824202838153
366.886.899761732762826.876666666666671.003358468167160.997135881856763
376.886.901133463158086.8851.002343277147140.996937682299451
386.886.903307085601566.896666666666661.000962844698150.99662377968812
396.916.904193251329336.908333333333330.9994007118932691.00084104665951
406.916.916973710647426.920833333333330.999442318215160.99899179743351
416.916.909308143523526.934166666666670.9964150669664971.0001001339732
426.916.90758220309746.947916666666670.9941947398760871.00035002072093
436.996.963017826144476.962083333333331.000134226030691.00387506890392
446.996.969920909429546.976250.9990927660891641.00288082043274
456.996.97337211255656.989166666666670.9977401377212121.00238448302702
467.027.02686204636387.002916666666671.003419343801580.99902345509012
477.027.043288247620927.018751.00349609939390.996693554657686
487.057.058208757527557.034583333333331.003358468167160.998836991394057
497.057.063596602662357.047083333333331.002343277147140.998075116201112
507.057.063878208605227.057083333333331.000962844698150.998035327309535
517.057.064097365232267.068333333333330.9994007118932690.998004364251597
527.17.076884481561857.080833333333330.999442318215161.00326634107118
537.17.071225591905587.096666666666670.9964150669664971.00406922501912
547.17.072452830793517.113750.9941947398760871.0038949951121
557.17.130540309004617.129583333333331.000134226030690.9957169712699
567.127.140182968317237.146666666666670.9990927660891640.997173326172903
577.137.148808086772487.1650.9977401377212120.997369059772736
587.187.205805162675087.181251.003419343801580.996418837022023
597.247.220572558513847.195416666666671.00349609939391.00269056800257
607.247.235050687542017.210833333333331.003358468167161.00068407433088
617.247.244436035580987.22751.002343277147140.999387663089412
627.277.26156837043317.254583333333331.000962844698151.00116113064517
637.277.295208779857577.299583333333330.9994007118932690.996544474514948
647.277.353396856268047.35750.999442318215160.988658730393838
657.277.391739105113137.418333333333330.9964150669664970.983530383935098
667.37.434091167423447.47750.9941947398760870.98196266841453
677.3NANA1.00013422603069NA
687.57NANA0.999092766089164NA
697.76NANA0.997740137721212NA
707.94NANA1.00341934380158NA
717.94NANA1.0034960993939NA
727.96NANA1.00335846816716NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/1vn5i1291749027.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/1vn5i1291749027.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/2vn5i1291749027.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/2vn5i1291749027.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/36em31291749027.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/36em31291749027.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/46em31291749027.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291749722p71a5rxpxwn3rqc/46em31291749027.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.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