Home » date » 2008 » Nov » 10 »

hier. clustering

*Unverified author*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Mon, 10 Nov 2008 06:59:06 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/10/t1226325587djtde90uk1paxov.htm/, Retrieved Mon, 10 Nov 2008 13:59:49 +0000
 
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/2008/Nov/10/t1226325587djtde90uk1paxov.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
94,71 1995,37 10511 512238 93,77 1946,81 10812 519164 95,73 1765,9 10738 517009 95,99 1635,25 10171 509933 95,82 1833,42 9721 509127 95,47 1910,43 9897 500857 95,82 1959,67 9828 506971 94,71 1969,6 9924 569323 96,33 2061,41 10371 579714 96,5 2093,48 10846 577992 96,16 2120,88 10413 565464 96,33 2174,56 10709 547344 96,33 2196,72 10662 554788 95,05 2350,44 10570 562325 96,84 2440,25 10297 560854 96,92 2408,64 10635 555332 97,44 2472,81 10872 543599 97,78 2407,6 10296 536662 97,69 2454,62 10383 542722 96,67 2448,05 10431 593530 98,29 2497,84 10574 610763 98,2 2645,64 10653 612613 98,71 2756,76 10805 611324 98,54 2849,27 10872 594167 98,2 2921,44 10625 595454 96,92 2981,85 10407 590865 99,06 3080,58 10463 589379 99,65 3106,22 10556 584428 99,82 3119,31 10646 573100 99,99 3061,26 10702 567456 100,33 3097,31 11353 569028 99,31 3161,69 11346 620735 101,1 3257,16 11451 628884 101,1 3277,01 11964 628232 100,93 3295,32 12574 612117 100,85 3363,99 13031 595404 100,93 3494,17 13812 597141 99,6 3667,03 14544 593408 101,88 3813,06 14931 590072 101,81 3917,96 14886 579799 102,38 3895,51 16005 574205 102,74 3801,06 17064 572775 102,82 3570,12 15168 572942 101,72 3701,61 16050 619567 103,47 3862,27 15839 625809 102,98 3970,1 15137 619916 102,68 4138,52 14954 587625 102,9 4199,75 15648 565742 103,03 4290,89 15305 557274 101,29 4443,91 15579 560576 103,69 4502,64 16348 548854 103,68 4356,98 15928 531673 104,2 4591,27 16171 525919 104,08 4696,96 15937 511038 104,16 4621,4 15713 498662 103,05 4562,84 15594 555362 104,66 4202,52 15683 564591 104,46 4296,49 16438 541657 104,95 4435,23 17032 527070 105,85 4105,18 17696 509846 106,23 4116,68 17745 514258
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Summary of Dendrogram
LabelHeight
1584.444552117650
2659.637584435575
3829.859640240444
4872.485521541762
5944.143727300033
61004.28130451582
71013.63626005584
81151.53669958886
91445.84613431029
101490.33022934516
111498.81254338226
121549.71508533020
131701.84744266341
141786.59942734794
151886.95706514709
161908.94652591423
171911.39195037440
181949.58659123214
191952.7472450115
202163.84686835737
212194.41793364471
222205.70888861155
232468.65608208191
242684.93955176392
253126.44037663352
263584.29538038284
273989.68988006835
284423.67837931419
294698.40877053591
305037.25682415873
315266.79343195292
325554.54397524532
335850.84742380214
346389.8807912099
356516.77260209315
366781.83712993758
376962.56314802277
387021.07438875741
397152.26377536558
407200.51438547275
417963.43289697721
4210289.4841285626
4311607.2851195226
4411805.4984737415
4511940.5446326579
4616000.1869639818
4716704.9477317962
4817542.4953564001
4918536.3572001604
5020168.0904998403
5121848.3494011471
5227832.3394847137
5340011.3661816668
5445422.6126143287
5547694.8313514359
5680667.9841637241
57195858.141475331
58201906.993643512
59506301.218772732
601113728.30418665
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t1226325587djtde90uk1paxov/1dz4p1226325545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t1226325587djtde90uk1paxov/1dz4p1226325545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t1226325587djtde90uk1paxov/2wswh1226325545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t1226325587djtde90uk1paxov/2wswh1226325545.ps (open in new window)


 
Parameters (Session):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
 
Parameters (R input):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
 
R code (references can be found in the software module):
par3 <- as.logical(par3)
par4 <- as.logical(par4)
if (par3 == 'TRUE'){
dum = xlab
xlab = ylab
ylab = dum
}
x <- t(y)
hc <- hclust(dist(x),method=par1)
d <- as.dendrogram(hc)
str(d)
mysub <- paste('Method: ',par1)
bitmap(file='test1.png')
if (par4 == 'TRUE'){
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
if (par2 != 'ALL'){
if (par3 == 'TRUE'){
ylab = 'cluster'
} else {
xlab = 'cluster'
}
par2 <- as.numeric(par2)
memb <- cutree(hc, k = par2)
cent <- NULL
for(k in 1:par2){
cent <- rbind(cent, colMeans(x[memb == k, , drop = FALSE]))
}
hc1 <- hclust(dist(cent),method=par1, members = table(memb))
de <- as.dendrogram(hc1)
bitmap(file='test2.png')
if (par4 == 'TRUE'){
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
str(de)
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- length(x[,1])-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,hc$labels[i])
a<-table.element(a,hc$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
if (par2 != 'ALL'){
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Cut Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- par2-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,i)
a<-table.element(a,hc1$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.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