Home » date » 2009 » Dec » 07 »

blog 4

*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: Mon, 07 Dec 2009 13:38:59 -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/07/t1260218370n9m0ck1raprrqyx.htm/, Retrieved Mon, 07 Dec 2009 21:39:34 +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/07/t1260218370n9m0ck1raprrqyx.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 «
8,00 8,10 7,70 7,50 7,60 7,80 7,80 7,80 7,50 7,50 7,10 7,50 7,50 7,60 7,70 7,70 7,90 8,10 8,20 8,20 8,20 7,90 7,30 6,90 6,60 6,70 6,90 7,00 7,10 7,20 7,10 6,90 7,00 6,80 6,40 6,70 6,60 6,40 6,30 6,20 6,50 6,80 6,80 6,40 6,10 5,80 6,10 7,20 7,30 6,90 6,10 5,80 6,20 7,10 7,70 7,90 7,70 7,40 7,50 8,00
 
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
18NANA1.00552962104264NA
28.1NANA0.98856941755259NA
37.7NANA0.964370654622362NA
47.5NANA0.953544306799368NA
57.6NANA0.990249195263794NA
67.8NANA1.04307103653197NA
77.88.007032339808757.63751.048383939745830.974143686321904
87.87.808998394569167.595833333333331.028063420020080.998847689023035
97.57.68389209289967.5751.014375193782130.976067845477746
107.57.510622729679267.583333333333330.9904117885291330.998585639292294
117.17.2873842585837.604166666666670.9583409435944770.974286485804244
127.57.744294472858867.629166666666671.015090482515630.968454909131487
137.57.70068101448497.658333333333331.005529621042640.973939835436967
147.67.603746436675337.691666666666670.988569417552590.999507290688014
157.77.461817940140537.73750.9643706546223621.03192011139513
167.77.421753187921757.783333333333330.9535443067993681.03749071210440
177.97.732195799684797.808333333333330.9902491952637941.02170201126077
188.18.127261826311627.791666666666671.043071036531970.99664563208443
198.28.103134200952127.729166666666671.048383939745831.01195411511715
208.27.8689687607377.654166666666671.028063420020081.04206793155854
218.27.692345219514457.583333333333331.014375193782131.06599479950506
227.97.448721992896197.520833333333330.9904117885291331.06058462210486
237.37.147626204308817.458333333333330.9583409435944771.02131809797207
246.97.498980939584257.38751.015090482515630.920125021731625
256.67.344555940365637.304166666666671.005529621042640.89862478461447
266.77.121818845618457.204166666666670.988569417552590.940770910526886
276.96.847031647818777.10.9643706546223621.00773595842778
2876.67878324887397.004166666666670.9535443067993681.04809510043319
297.16.853349638888176.920833333333330.9902491952637941.03598975305626
307.27.171113376157316.8751.043071036531971.00402819232209
317.17.198903052921346.866666666666671.048383939745830.98626137174035
326.97.046518024720946.854166666666671.028063420020080.979207031869228
3376.914657570948166.816666666666671.014375193782131.01234224951506
346.86.693533004142726.758333333333330.9904117885291331.01590594918877
356.46.4208843220836.70.9583409435944770.99674743835344
366.76.758810796083266.658333333333331.015090482515630.99129864737191
376.66.665823446161856.629166666666671.005529621042640.990125234084958
386.46.520439116607296.595833333333330.988569417552590.981528986859101
396.36.304573154593696.53750.9643706546223620.999274628990488
406.26.158306981412596.458333333333330.9535443067993681.00677020790182
416.56.341720888001886.404166666666670.9902491952637941.02495838508087
426.86.688693021761276.41251.043071036531971.01664106543335
436.86.775181210607416.46251.048383939745831.00366319196802
446.46.695263022880746.51251.028063420020080.955899712696619
456.16.618798139428376.5251.014375193782130.921617470649562
465.86.437676625439366.50.9904117885291330.900946154561492
476.16.201264522509266.470833333333330.9583409435944770.983670343017671
487.26.568481330611586.470833333333331.015090482515631.09614378691240
497.36.556891070548896.520833333333331.005529621042641.11333251101103
506.96.54515335204616.620833333333330.988569417552591.05421517707342
516.16.509501918700946.750.9643706546223620.937091666334025
525.86.563563311802326.883333333333330.9535443067993680.883666344708017
536.26.939996443473767.008333333333330.9902491952637940.893372215749529
547.17.405804359377017.11.043071036531970.958707475307553
557.7NANA1.04838393974583NA
567.9NANA1.02806342002008NA
577.7NANA1.01437519378213NA
587.4NANA0.990411788529133NA
597.5NANA0.958340943594477NA
608NANA1.01509048251563NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/188d71260218337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/188d71260218337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/2nfvy1260218337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/2nfvy1260218337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/3dhvb1260218337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/3dhvb1260218337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/4l8cn1260218337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218370n9m0ck1raprrqyx/4l8cn1260218337.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