Home » date » 2008 » May » 21 »

Clélia Comes - verbetering taak 9 (2)

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 21 May 2008 08:21:19 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/21/t1211379725t653smyw9d58ehf.htm/, Retrieved Wed, 21 May 2008 16:22:09 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.48 1.57 1.58 1.58 1.58 1.58 1.59 1.6 1.6 1.61 1.61 1.61 1.62 1.63 1.63 1.64 1.64 1.64 1.64 1.64 1.65 1.65 1.65 1.65 1.65 1.66 1.66 1.67 1.68 1.68 1.68 1.68 1.69 1.7 1.7 1.71 1.72 1.73 1.74 1.74 1.75 1.75 1.75 1.76 1.79 1.83
 
Text written by user:
 
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.48NANA-0.00173611111111094NA
21.57NANA0.00451388888888871NA
31.58NANA0.000763888888889008NA
41.58NANA0.00701388888888888NA
51.58NANA0.00368055555555546NA
61.58NANA0.000347222222222054NA
71.591.585763888888891.58833333333333-0.002569444444444400.00423611111111133
81.61.591597222222221.59666666666667-0.005069444444444350.0084027777777782
91.61.603680555555561.601250.00243055555555549-0.00368055555555524
101.611.605763888888891.60583333333333-6.94444444444553e-050.00423611111111133
111.611.607847222222221.61083333333333-0.002986111111111130.00215277777777789
121.611.609513888888891.61583333333333-0.006319444444444320.000486111111110965
131.621.618680555555561.62041666666667-0.001736111111110940.00131944444444443
141.631.628680555555561.624166666666670.004513888888888710.00131944444444443
151.631.628680555555561.627916666666670.0007638888888890080.00131944444444443
161.641.638680555555561.631666666666670.007013888888888880.00131944444444443
171.641.638680555555561.6350.003680555555555460.00131944444444443
181.641.638680555555561.638333333333330.0003472222222220540.00131944444444443
191.641.638680555555561.64125-0.002569444444444400.00131944444444443
201.641.638680555555561.64375-0.005069444444444350.00131944444444443
211.651.648680555555561.646250.002430555555555490.00131944444444443
221.651.648680555555561.64875-6.94444444444553e-050.00131944444444443
231.651.648680555555561.65166666666667-0.002986111111111130.00131944444444443
241.651.648680555555561.655-0.006319444444444320.00131944444444443
251.651.656597222222221.65833333333333-0.00173611111111094-0.00659722222222237
261.661.666180555555561.661666666666670.00451388888888871-0.00618055555555519
271.661.665763888888891.6650.000763888888889008-0.0057638888888889
281.671.675763888888891.668750.00701388888888888-0.0057638888888889
291.681.676597222222221.672916666666670.003680555555555460.00340277777777787
301.681.677847222222221.67750.0003472222222220540.00215277777777789
311.681.680347222222221.68291666666667-0.00256944444444440-0.000347222222222054
321.681.683680555555561.68875-0.00506944444444435-0.00368055555555524
331.691.697430555555551.6950.00243055555555549-0.00743055555555494
341.71.701180555555561.70125-6.94444444444553e-05-0.00118055555555507
351.71.704097222222221.70708333333333-0.00298611111111113-0.00409722222222197
361.711.706597222222221.71291666666667-0.006319444444444320.00340277777777787
371.72NA1.71875NANA
381.73NA1.725NANA
391.74NA1.7325NANA
401.74NA1.74208333333333NANA
411.75NANANANA
421.75NANANANA
431.75NANANANA
441.76NANANANA
451.79NANANANA
461.83NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/104hd1211379677.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/104hd1211379677.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/2hyq41211379677.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/2hyq41211379677.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/30ygy1211379677.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/30ygy1211379677.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/4ew9q1211379677.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211379725t653smyw9d58ehf/4ew9q1211379677.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