Home » date » 2011 » May » 12 »

KDGP2W92

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 12 May 2011 16:32:53 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx.htm/, Retrieved Thu, 12 May 2011 18:29:37 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7,24 7,52 7,57 7,59 7,58 7,55 7,52 7,55 7,62 7,64 7,68 7,69 7,7 7,6 7,51 7,66 7,69 7,66 7,7 7,72 7,74 7,76 7,72 7,73 7,75 8,1 8,22 8,32 8,07 8,18 8,33 8,34 8,25 8,36 8,36 8,34 8,41 8,39 8,43 8,44 8,49 8,47 8,53 8,52 8,51 8,53 8,54 8,53 8,47 8,63 8,67 8,73 8,57 8,55 8,63 8,65 8,44 8,62 8,37 8,59 8,84 8,72 8,8 8,69 8,68 8,57 8,85 8,85 8,85 8,93 8,75 8,78 8,77 9,03 9,01 9,07 8,99 9,02 8,99 8,98 8,94 8,94 8,75 8,86
 
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
17.24NANA-0.0279629629629631NA
27.52NANA0.0402314814814815NA
37.57NANA0.0494675925925928NA
47.59NANA0.076273148148148NA
57.58NANA-0.0101851851851851NA
67.55NANA-0.0324074074074065NA
77.527.612731481481487.581666666666670.0310648148148149-0.0927314814814819
87.557.625787037037047.604166666666670.0216203703703701-0.0757870370370375
97.627.569467592592597.605-0.03553240740740790.0505324074074087
107.647.621273148148157.605416666666670.01585648148148140.0187268518518522
117.687.53870370370377.61291666666667-0.07421296296296310.141296296296297
127.697.567870370370377.62208333333333-0.05421296296296310.122129629629631
137.77.60620370370377.63416666666667-0.02796296296296310.093796296296298
147.67.688981481481487.648750.0402314814814815-0.08898148148148
157.517.710300925925927.660833333333330.0494675925925928-0.200300925925925
167.667.747106481481487.670833333333330.076273148148148-0.0871064814814808
177.697.667314814814827.6775-0.01018518518518510.0226851851851846
187.667.648425925925937.68083333333333-0.03240740740740650.0115740740740735
197.77.715648148148157.684583333333330.0310648148148149-0.0156481481481467
207.727.729120370370377.70750.0216203703703701-0.00912037037037017
217.747.722384259259267.75791666666667-0.03553240740740790.0176157407407418
227.767.830856481481487.8150.0158564814814814-0.0708564814814823
237.727.784120370370377.85833333333333-0.0742129629629631-0.0641203703703699
247.737.841620370370377.89583333333333-0.0542129629629631-0.111620370370369
257.757.915787037037047.94375-0.0279629629629631-0.165787037037038
268.18.036064814814817.995833333333330.04023148148148150.0639351851851861
278.228.092384259259268.042916666666670.04946759259259280.12761574074074
288.328.165439814814828.089166666666670.0762731481481480.154560185185185
298.078.130648148148158.14083333333333-0.0101851851851851-0.0606481481481485
308.188.160509259259268.19291666666667-0.03240740740740650.019490740740741
318.338.276898148148158.245833333333330.03106481481481490.0531018518518511
328.348.307037037037048.285416666666670.02162037037037010.032962962962964
338.258.27071759259268.30625-0.0355324074074079-0.0207175925925931
348.368.335856481481488.320.01585648148148140.0241435185185175
358.368.268287037037048.3425-0.07421296296296310.0917129629629638
368.348.317870370370378.37208333333333-0.05421296296296310.0221296296296298
378.418.364537037037048.3925-0.02796296296296310.0454629629629633
388.398.448564814814818.408333333333330.0402314814814815-0.0585648148148135
398.438.476134259259268.426666666666670.0494675925925928-0.0461342592592597
408.448.520856481481488.444583333333330.076273148148148-0.080856481481483
418.498.448981481481488.45916666666666-0.01018518518518510.0410185185185199
428.478.442175925925938.47458333333333-0.03240740740740650.0278240740740756
438.538.516064814814818.4850.03106481481481490.0139351851851863
448.528.519120370370378.49750.02162037037037010.000879629629629619
458.518.48196759259268.5175-0.03553240740740790.028032407407407
468.538.555439814814818.539583333333330.0158564814814814-0.0254398148148152
478.548.480787037037048.555-0.07421296296296310.0592129629629632
488.538.50745370370378.56166666666667-0.05421296296296310.0225462962962943
498.478.54120370370378.56916666666667-0.0279629629629631-0.0712037037037039
508.638.618981481481488.578750.04023148148148150.0110185185185188
518.678.63071759259268.581250.04946759259259280.0392824074074039
528.738.658356481481488.582083333333330.0762731481481480.0716435185185187
538.578.568564814814828.57875-0.01018518518518510.00143518518518526
548.558.541759259259268.57416666666666-0.03240740740740650.00824074074074232
558.638.623148148148158.592083333333330.03106481481481490.00685185185185233
568.658.632870370370378.611250.02162037037037010.0171296296296308
578.448.584884259259268.62041666666667-0.0355324074074079-0.144884259259261
588.628.640023148148158.624166666666670.0158564814814814-0.0200231481481481
598.378.552870370370378.62708333333333-0.0742129629629631-0.18287037037037
608.598.578287037037048.6325-0.05421296296296310.0117129629629638
618.848.614537037037048.6425-0.02796296296296310.225462962962965
628.728.700231481481488.660.04023148148148150.0197685185185197
638.88.734884259259268.685416666666670.04946759259259280.0651157407407421
648.698.791689814814818.715416666666670.076273148148148-0.101689814814815
658.688.733981481481488.74416666666667-0.0101851851851851-0.0539814814814825
668.578.735509259259268.76791666666667-0.0324074074074065-0.16550925925926
678.858.803981481481488.772916666666670.03106481481481490.0460185185185171
688.858.804537037037038.782916666666670.02162037037037010.045462962962965
698.858.769050925925938.80458333333333-0.03553240740740790.0809490740740735
708.938.845023148148158.829166666666660.01585648148148140.0849768518518541
718.758.78370370370378.85791666666667-0.0742129629629631-0.0337037037037025
728.788.835370370370378.88958333333333-0.0542129629629631-0.0553703703703725
738.778.88620370370378.91416666666667-0.0279629629629631-0.116203703703704
749.038.965648148148158.925416666666670.04023148148148150.0643518518518515
759.018.984050925925938.934583333333330.04946759259259280.0259490740740738
769.079.015023148148158.938750.0762731481481480.054976851851853
778.998.928981481481488.93916666666667-0.01018518518518510.0610185185185177
789.028.91009259259268.9425-0.03240740740740650.109907407407407
798.99NANA0.0310648148148149NA
808.98NANA0.0216203703703701NA
818.94NANA-0.0355324074074079NA
828.94NANA0.0158564814814814NA
838.75NANA-0.0742129629629631NA
848.86NANA-0.0542129629629631NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/17ph21305217969.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/17ph21305217969.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/2eczx1305217969.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/2eczx1305217969.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/3ulmf1305217969.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/3ulmf1305217969.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/4gu5q1305217969.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t13052177760yirg0dvbo24wgx/4gu5q1305217969.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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