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 07:27:44 -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/t1259937000hmvjbkzw8k0zzwp.htm/, Retrieved Fri, 04 Dec 2009 15:30:06 +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/t1259937000hmvjbkzw8k0zzwp.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:
WS9,DT
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.3 1.2 1.1 1.4 1.2 1.5 1.1 1.3 1.5 1.1 1.4 1.3 1.5 1.6 1.7 1.1 1.6 1.3 1.7 1.6 1.7 1.9 1.8 1.9 1.6 1.5 1.6 1.6 1.7 2 2 1.9 1.7 1.8 1.9 1.7 2 2.1 2.4 2.5 2.5 2.6 2.2 2.5 2.8 2.8 2.9 3 3.1 2.9 2.7 2.2 2.5 2.3 2.6 2.3 2.2 1.8 1.8
 
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
11.3NANA0.977823099788985NA
21.2NANA0.978955275625813NA
31.1NANA1.04782014325768NA
41.4NANA0.90585122934769NA
51.2NANA1.01108505242803NA
61.5NANA0.996841862713922NA
71.11.300521674405481.291666666666671.006855489862310.845814430968907
81.31.301490852797531.316666666666670.9884740654158440.998854503822041
91.51.352758373673931.358333333333330.9958957352200751.10884547395273
101.11.424428788868231.370833333333331.039096988840050.77223937665146
111.41.420119965152851.3751.032814520111160.98583220738631
121.31.408906376720681.383333333333331.018486537388440.922701480722823
131.51.368952339704581.40.9778230997889851.09572843151260
141.61.407248208712111.43750.9789552756258131.13697071354903
151.71.528071042250791.458333333333331.047820143257681.11251372023644
161.11.358776844021531.50.905851229347690.809551623461849
171.61.567181831263441.551.011085052428031.02094088132077
181.31.586639964819661.591666666666670.9968418627139220.819341519704983
191.71.631944939818491.620833333333331.006855489862311.04170181145271
201.61.602151714361511.620833333333330.9884740654158440.998656984639952
211.71.605881873042371.61250.9958957352200751.05860837496056
221.91.692862177651911.629166666666671.039096988840051.12235953114352
231.81.708447352017211.654166666666671.032814520111161.05358821732182
241.91.718696031843001.68751.018486537388441.10548925743582
251.61.690819110051791.729166666666670.9778230997889850.946286915311122
261.51.717250712660281.754166666666670.9789552756258130.8734892284169
271.61.851148919755241.766666666666671.047820143257680.864328084534416
281.61.596562791725301.76250.905851229347691.00215288010751
291.71.78203740490441.76251.011085052428030.95396426321994
3021.752780275271981.758333333333330.9968418627139221.14104433294679
3121.778778032090071.766666666666671.006855489862311.12436738250584
321.91.787490601626991.808333333333330.9884740654158441.06294265170995
331.71.859005372410811.866666666666670.9958957352200750.914467502477089
341.82.013250415877601.93751.039096988840050.89407655689735
351.92.074235827889912.008333333333331.032814520111160.915999991154737
361.72.104872177269452.066666666666671.018486537388440.807649993362223
3722.053428509556872.10.9778230997889850.97398082801120
382.12.088437921335072.133333333333330.9789552756258131.00553623286899
392.42.309570232430482.204166666666671.047820143257681.03915437006406
402.52.075909067255122.291666666666670.905851229347691.20429167126556
412.52.401326999516572.3751.011085052428031.04109103029421
422.62.463030102455652.470833333333330.9968418627139221.05561032218315
432.22.588457655187682.570833333333331.006855489862310.849926980876374
442.52.619456273351992.650.9884740654158440.954396538485017
452.82.684768919530782.695833333333330.9958957352200751.04292029739727
462.82.80123229908132.695833333333331.039096988840050.99956008679405
472.92.771385628964952.683333333333331.032814520111161.04640796635836
4832.720207793608302.670833333333331.018486537388441.10285692403688
493.1NA2.675NANA
502.9NA2.68333333333333NANA
512.7NA2.65NANA
522.2NA2.58333333333333NANA
532.5NA2.49583333333333NANA
542.3NANANANA
552.6NANANANA
562.3NANANANA
572.2NANANANA
581.8NANANANA
591.8NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259937000hmvjbkzw8k0zzwp/1i3vb1259936861.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259937000hmvjbkzw8k0zzwp/1i3vb1259936861.ps (open in new window)


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


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


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


 
Parameters (Session):
par1 = 36 ; par2 = 0.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
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