Home » date » 2010 » Jan » 25 »

decompositie porto

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 25 Jan 2010 10:20:25 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob.htm/, Retrieved Mon, 25 Jan 2010 18:23:03 +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/2010/Jan/25/t1264440177qfhlzvkndp7tzob.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8,2 8,21 8,22 8,2 8,18 8,2 8,19 8,24 8,31 8,27 8,36 8,32 8,29 8,27 8,27 8,43 8,46 8,48 8,46 8,46 8,43 8,4 8,38 8,3 8,39 8,53 8,52 8,54 8,62 8,52 8,49 8,44 8,31 8,26 8,21 8,03 7,89 7,83 7,85 7,84 7,88 8,01 8,08 8,11 8,11 8,07 8,06 7,95 7,95 8,07 8,17 8,21 8,2 8,19 8,18 8,16 8,17 8,17 8,19 8,01 8,04 8,13 8,14 8,17 8,25 8,27 8,27 8,26 8,24 8,21 8,25 8,06 8,16 8,32 8,43 8,39 8,41
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
18.2NANA-0.113965277777777NA
28.21NANA-0.0607986111111114NA
38.22NANA-0.0363819444444442NA
48.2NANA0.0127013888888886NA
58.18NANA0.0581180555555551NA
68.2NANA0.0732013888888888NA
78.198.323868055555558.245416666666670.0784513888888885-0.133868055555554
88.248.320784722222228.251666666666670.0691180555555553-0.080784722222221
98.318.289618055555568.256250.03336805555555560.0203819444444449
108.278.270284722222228.267916666666670.00236805555555576-0.0002847222222222
118.368.288284722222228.28916666666667-0.0008819444444441310.071715277777777
128.328.197201388888898.3125-0.1152986111111110.122798611111113
138.298.221451388888898.33541666666667-0.1139652777777770.0685486111111118
148.278.295034722222228.35583333333333-0.0607986111111114-0.0250347222222214
158.278.333618055555558.37-0.0363819444444442-0.0636180555555548
168.438.393118055555558.380416666666670.01270138888888860.0368819444444455
178.468.444784722222228.386666666666670.05811805555555510.0152152777777790
188.488.459868055555558.386666666666670.07320138888888880.0201319444444454
198.468.468451388888898.390.0784513888888885-0.00845138888888819
208.468.474118055555558.4050.0691180555555553-0.0141180555555529
218.438.459618055555568.426250.0333680555555556-0.0296180555555559
228.48.443618055555568.441250.00236805555555576-0.0436180555555552
238.388.451618055555568.4525-0.000881944444444131-0.0716180555555557
248.38.345534722222228.46083333333333-0.115298611111111-0.0455347222222198
258.398.349784722222228.46375-0.1139652777777770.0402152777777811
268.538.403368055555568.46416666666667-0.06079861111111140.126631944444444
278.528.421951388888898.45833333333333-0.03638194444444420.0980486111111123
288.548.460201388888898.44750.01270138888888860.0797986111111104
298.628.492701388888898.434583333333330.05811805555555510.12729861111111
308.528.489451388888898.416250.07320138888888880.0305486111111115
318.498.462618055555558.384166666666670.07845138888888850.0273819444444463
328.448.403284722222228.334166666666670.06911805555555530.0367152777777786
338.318.310451388888898.277083333333330.0333680555555556-0.000451388888887294
348.268.222368055555558.220.002368055555555760.0376319444444455
358.218.159118055555558.16-0.0008819444444441310.0508819444444466
368.037.992618055555568.10791666666667-0.1152986111111110.0373819444444443
377.897.955618055555568.06958333333333-0.113965277777777-0.0656180555555554
387.837.977951388888898.03875-0.0607986111111114-0.147951388888889
397.857.980284722222228.01666666666667-0.0363819444444442-0.130284722222222
407.848.013118055555568.000416666666670.0127013888888886-0.173118055555555
417.888.044368055555557.986250.0581180555555551-0.164368055555554
428.018.049868055555557.976666666666670.0732013888888888-0.0398680555555551
438.088.054284722222227.975833333333330.07845138888888850.0257152777777776
448.118.057451388888897.988333333333330.06911805555555530.0525486111111109
458.118.045034722222228.011666666666670.03336805555555560.0649652777777767
468.078.042784722222228.040416666666670.002368055555555760.0272152777777777
478.068.068284722222228.06916666666667-0.000881944444444131-0.0082847222222231
487.957.974701388888898.09-0.115298611111111-0.0247013888888894
497.957.987701388888898.10166666666667-0.113965277777777-0.0377013888888893
508.078.047118055555558.10791666666667-0.06079861111111140.0228819444444461
518.178.076118055555568.1125-0.03638194444444420.093881944444444
528.218.131868055555568.119166666666670.01270138888888860.0781319444444453
538.28.186868055555568.128750.05811805555555510.013131944444444
548.198.209868055555558.136666666666670.0732013888888888-0.0198680555555555
558.188.221368055555568.142916666666670.0784513888888885-0.0413680555555569
568.168.218284722222228.149166666666670.0691180555555553-0.0582847222222203
578.178.183784722222228.150416666666670.0333680555555556-0.0137847222222227
588.178.149868055555558.14750.002368055555555760.0201319444444454
598.198.147034722222228.14791666666667-0.0008819444444441310.0429652777777783
608.018.038034722222228.15333333333333-0.115298611111111-0.0280347222222215
618.048.046451388888898.16041666666667-0.113965277777777-0.0064513888888893
628.138.107534722222228.16833333333333-0.06079861111111140.0224652777777798
638.148.139034722222228.17541666666667-0.03638194444444420.000965277777780216
648.178.192701388888898.180.0127013888888886-0.0227013888888905
658.258.242284722222228.184166666666670.05811805555555510.0077152777777787
668.278.261951388888898.188750.07320138888888880.00804861111111244
678.278.274284722222228.195833333333330.0784513888888885-0.00428472222222176
688.268.277868055555558.208750.0691180555555553-0.0178680555555548
698.248.262118055555568.228750.0333680555555556-0.0221180555555556
708.218.252368055555568.250.00236805555555576-0.0423680555555546
718.258.264951388888898.26583333333333-0.000881944444444131-0.0149513888888890
728.06NANA-0.115298611111111NA
738.16NANANANA
748.32NANANANA
758.43NANANANA
768.39NANANANA
778.41NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/1pd521264440023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/1pd521264440023.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/29hla1264440023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/29hla1264440023.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/33pe71264440023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/33pe71264440023.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/4osye1264440023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/25/t1264440177qfhlzvkndp7tzob/4osye1264440023.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