Home » date » 2008 » May » 28 »

decompositie roomijs - Sophie Volckaerts - 2mar03

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 28 May 2008 05:57:52 -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/28/t121197592508kx37ybtp9yvov.htm/, Retrieved Wed, 28 May 2008 13:58:45 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,6900 2,7200 2,6800 2,7200 2,7000 2,7200 2,7200 2,7100 2,6800 2,6500 2,6600 2,6900 2,6700 2,6700 2,6500 2,6600 2,7600 2,7900 2,7900 2,7800 2,8100 2,8100 2,7900 2,7900 2,7900 2,8000 2,8000 2,8000 2,7700 2,7800 2,7500 2,7400 2,7400 2,7200 2,7100 2,7100 2,7000 2,6900 2,7000 2,7100 2,7600 2,7600 2,7500 2,7400 2,7100 2,7300 2,7300 2,7300 2,7200 2,7200 2,7500 2,8200 2,8500 2,8300 2,8500 2,8500 2,7900 2,8100 2,8000 2,7900 2,7900 2,8000 2,8000 2,8600 2,8600 2,8500 2,8100 2,7900 2,7800 2,7700 2,7800 2,8500 2,8200
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
12.69NANA-0.0225347222222223NA
22.72NANA-0.0253472222222223NA
32.68NANA-0.0229513888888891NA
42.72NANA-0.00326388888888887NA
52.7NANA0.0311111111111110NA
62.72NANA0.033611111111111NA
72.722.720486111111112.694166666666670.0263194444444444-0.000486111111110521
82.712.707465277777782.691250.01621527777777770.00253472222222273
92.682.686215277777782.68791666666667-0.00170138888888885-0.00621527777777775
102.652.683819444444442.68416666666667-0.000347222222221971-0.0338194444444446
112.662.670694444444442.68416666666667-0.0134722222222219-0.0106944444444439
122.692.671944444444442.68958333333333-0.01763888888888880.0180555555555557
132.672.672881944444442.69541666666667-0.0225347222222223-0.00288194444444434
142.672.675902777777782.70125-0.0253472222222223-0.00590277777777715
152.652.686631944444442.70958333333333-0.0229513888888891-0.0366319444444443
162.662.718402777777782.72166666666667-0.00326388888888887-0.0584027777777774
172.762.764861111111112.733750.0311111111111110-0.00486111111111143
182.792.776944444444442.743333333333330.0336111111111110.0130555555555554
192.792.778819444444442.75250.02631944444444440.0111805555555557
202.782.779131944444442.762916666666670.01621527777777770.000868055555555802
212.812.772881944444442.77458333333333-0.001701388888888850.0371180555555557
222.812.786319444444442.78666666666667-0.0003472222222219710.0236805555555559
232.792.779444444444442.79291666666667-0.01347222222222190.0105555555555563
242.792.775277777777782.79291666666667-0.01763888888888880.0147222222222227
252.792.768298611111112.79083333333333-0.02253472222222230.0217013888888893
262.82.762152777777782.7875-0.02534722222222230.0378472222222221
272.82.759965277777782.78291666666667-0.02295138888888910.0400347222222219
282.82.772986111111112.77625-0.003263888888888870.0270138888888884
292.772.800277777777782.769166666666670.0311111111111110-0.0302777777777776
302.782.796111111111112.76250.033611111111111-0.0161111111111114
312.752.781736111111112.755416666666670.0263194444444444-0.0317361111111114
322.742.763298611111112.747083333333330.0162152777777777-0.0232986111111111
332.742.736631944444442.73833333333333-0.001701388888888850.00336805555555575
342.722.730069444444442.73041666666667-0.000347222222221971-0.0100694444444440
352.712.712777777777782.72625-0.0134722222222219-0.00277777777777732
362.712.707361111111112.725-0.01763888888888880.00263888888888886
372.72.701631944444442.72416666666667-0.0225347222222223-0.00163194444444459
382.692.698819444444442.72416666666667-0.0253472222222223-0.00881944444444471
392.72.699965277777782.72291666666667-0.02295138888888913.47222222227828e-05
402.712.718819444444442.72208333333333-0.00326388888888887-0.00881944444444427
412.762.754444444444442.723333333333330.03111111111111100.00555555555555554
422.762.758611111111112.7250.0336111111111110.00138888888888911
432.752.752986111111112.726666666666670.0263194444444444-0.00298611111111091
442.742.744965277777782.728750.0162152777777777-0.00496527777777755
452.712.730381944444442.73208333333333-0.00170138888888885-0.0203819444444449
462.732.738402777777782.73875-0.000347222222221971-0.00840277777777798
472.732.733611111111112.74708333333333-0.0134722222222219-0.00361111111111123
482.732.736111111111112.75375-0.0176388888888888-0.00611111111111118
492.722.738298611111112.76083333333333-0.0225347222222223-0.0182986111111112
502.722.744236111111112.76958333333333-0.0253472222222223-0.0242361111111107
512.752.754548611111112.7775-0.0229513888888891-0.00454861111111127
522.822.780902777777782.78416666666667-0.003263888888888870.0390972222222219
532.852.821527777777782.790416666666670.03111111111111100.0284722222222222
542.832.829444444444442.795833333333330.0336111111111110.000555555555556086
552.852.827569444444442.801250.02631944444444440.0224305555555562
562.852.823715277777782.80750.01621527777777770.0262847222222229
572.792.811215277777782.81291666666667-0.00170138888888885-0.0212152777777774
582.812.816319444444442.81666666666667-0.000347222222221971-0.00631944444444432
592.82.805277777777782.81875-0.0134722222222219-0.00527777777777771
602.792.802361111111112.82-0.0176388888888888-0.0123611111111104
612.792.796631944444442.81916666666667-0.0225347222222223-0.00663194444444404
622.82.789652777777782.815-0.02534722222222230.0103472222222223
632.82.789131944444442.81208333333333-0.02295138888888910.0108680555555556
642.862.806736111111112.81-0.003263888888888870.0532638888888886
652.862.838611111111112.80750.03111111111111100.0213888888888891
662.852.842777777777782.809166666666670.0336111111111110.0072222222222229
672.812.839236111111112.812916666666670.0263194444444444-0.029236111111111
682.79NANA0.0162152777777777NA
692.78NANA-0.00170138888888885NA
702.77NANA-0.000347222222221971NA
712.78NANA-0.0134722222222219NA
722.85NANA-0.0176388888888888NA
732.82NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/1sfih1211975867.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/1sfih1211975867.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/253z61211975867.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/253z61211975867.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/3ygk71211975867.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/3ygk71211975867.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/45cny1211975867.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t121197592508kx37ybtp9yvov/45cny1211975867.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