Home » date » 2009 » Dec » 04 »

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 04 Dec 2009 10:35:06 -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/t1259948172hq20z6zc008zfdt.htm/, Retrieved Fri, 04 Dec 2009 18:36: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/2009/Dec/04/t1259948172hq20z6zc008zfdt.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 «
92.9 107.7 103.5 91.1 79.8 71.9 82.9 90.1 100.7 90.7 108.8 44.1 93.6 107.4 96.5 93.6 76.5 76.7 84 103.3 88.5 99 105.9 44.7 94 107.1 104.8 102.5 77.7 85.2 91.3 106.5 92.4 97.5 107 51.1 98.6 102.2 114.3 99.4 72.5 92.3 99.4 85.9 109.4 97.6 104.7 56.9 86.7 108.5 103.4 86.2 71 75.9 87.1 102 88.5 87.8 100.8 50.6 85.9
 
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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
192.9NANA1.01439710936772NA
2107.7NANA1.15553139141945NA
3103.5NANA1.13714573088061NA
491.1NANA1.03762251436317NA
579.8NANA0.811294061553772NA
671.9NANA0.89800314598119NA
782.987.395446471825188.71250.9851536871559830.948562005764518
890.191.266059120565788.72916666666671.028591415305740.987223518449226
9100.791.199931026516488.4251.031381747543301.10416750173552
1090.794.69343811296588.23751.073165469476870.95782772077405
11108.897.935704676752788.20416666666671.110329685975751.1109329366558
1244.163.32109801685488.26666666666670.7173840409764430.696450336162238
1393.689.786824142910588.51251.014397109367721.04246921409115
14107.4102.96747640373589.10833333333331.155531391419451.04304780257880
1596.5101.37654190800689.151.137145730880610.951896742419648
1693.692.33543349689388.98751.037622514363171.01369535459158
1776.572.377571466365989.21250.8112940615537721.05695726521509
1876.780.027047026023789.11666666666670.898003145981190.958425967848822
198487.834660824015589.15833333333330.9851536871559830.956342282328629
20103.391.711782067198289.16251.028591415305741.12635473514527
2188.592.304368981177489.49583333333331.031381747543300.958784518835147
229996.81293991518290.21251.073165469476871.02259057608140
23105.9100.63288053893590.63333333333331.110329685975751.05233994528286
2444.765.308849630392991.03750.7173840409764430.68444016780228
259493.015988274397791.69583333333331.014397109367721.01057895254200
26107.1106.46295886277892.13333333333331.155531391419451.00598368807354
27104.8105.10543228385292.42916666666671.137145730880610.997094039030948
28102.596.010346568595892.52916666666671.037622514363171.06759327159357
2977.775.054841869493492.51250.8112940615537721.03524300451004
3085.283.35714202570492.8250.898003145981191.02210797934660
3191.391.89841978353493.28333333333330.9851536871559830.993488247295835
32106.595.937578465079393.27083333333331.028591415305741.11009681194700
3392.496.395516579765893.46251.031381747543300.958550804834792
3497.5100.58690514950993.72916666666671.073165469476870.96931106345383
35107103.68628717536993.38333333333331.110329685975751.03195902674214
3651.167.048505929760893.46250.7173840409764430.76213480511455
3798.695.450541336880394.09583333333331.014397109367721.03299571295258
38102.2108.12884995207593.5751.155531391419450.945168657997355
39114.3106.23783990752193.4251.137145730880611.07588783901760
4099.497.679189445863394.13751.037622514363171.01761696185133
4172.576.298826097209294.04583333333330.8112940615537720.95021121173779
4292.384.584412991878294.19166666666660.898003145981191.09121759831640
4399.492.542874487215193.93750.9851536871559831.07409674219415
4485.996.383301411711793.70416666666671.028591415305740.891233219259307
45109.496.44708566714393.51251.031381747543301.13430073333226
4697.699.276748972189392.50833333333331.073165469476870.983110355752494
47104.7102.03467176748091.89583333333331.110329685975751.02612178964611
4856.965.389555335002891.150.7173840409764430.870169550909022
4986.791.24924664224989.95416666666671.014397109367720.950144830673675
50108.5104.12782250928590.11251.155531391419451.0419885616097
51103.4102.24361552780389.91251.137145730880611.01131008979121
5286.291.967942189722688.63333333333331.037622514363170.937283122222918
537171.444583295579188.06250.8112940615537720.993777228796482
5475.978.698750705926587.63750.898003145981190.964437164747575
5587.186.044964959015587.34166666666670.9851536871559831.01226143844079
56102NANA1.02859141530574NA
5788.5NANA1.03138174754330NA
5887.8NANA1.07316546947687NA
59100.8NANA1.11032968597575NA
6050.6NANA0.717384040976443NA
6185.9NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/1hgnu1259948104.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/1hgnu1259948104.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/26u481259948104.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/26u481259948104.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/42w0a1259948104.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259948172hq20z6zc008zfdt/42w0a1259948104.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