Home » date » 2007 » Dec » 13 » attachments

PAPER, TIM, GIEL, RIK

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Thu, 13 Dec 2007 08:44:03 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/13/t1197559783oyv19k35jlfrz9s.htm/, Retrieved Thu, 13 Dec 2007 16:29:45 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
513 96 87 503 86 75 471 82 74 471 92 91 476 99 101 475 101 103 470 102 106 461 100 102 455 101 105 456 100 105 517 99 100 525 97 95 523 97 96 519 97 98 509 96 99 512 92 92 519 91 84 517 87 81 510 82 72 509 89 89 501 91 96 507 90 91 569 87 88 580 89 90 578 95 98 565 85 87 547 94 100 555 94 100 562 97 104 561 99 107 555 97 105 544 96 102 537 94 98 543 100 106 594 96 97 611 98 101 613 98 100 611 94 93 594 93 94 595 94 96 591 94 96 589 97 98 584 98 102 573 95 95 567 89 85 569 89 84 621 89 82 629 90 87 628 86 77 612 92 90 595 91 90 597 95 94 593 99 97 590 98 96 580 95 93 574 96 93 573 94 93 573 98 97 620 98 100 626 98 95 620 98 97 588 102 103 566 101 102 557 92 93 561 99 99 549 101 100 532 99 97 526 102 104 511 102 102 499 101 103 555 99 100 565 98 90 542 98 90
 
Text written by user:
 
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 compuational 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
11.41421356237310
22.23606797749979
32.23606797749979
42.23606797749979
52.23606797749979
62.37834915435538
72.44948974278318
82.44948974278318
93
103
113
123.46410161513775
133.60555127546399
143.74165738677394
153.74165738677394
163.99799417759798
174.12310562561766
184.44963707594643
194.58257569495584
205
215.13693670846109
225.3851648071345
235.3851648071345
245.74456264653803
255.76888632699231
265.81074446798654
276.11558533183886
286.16441400296898
296.5393508155804
307
317.14142842854285
327.93745006452268
338.36980642695081
348.37801753654748
358.42320333082894
368.45981170682914
378.52178669896025
388.60232526704263
398.70941816520992
409.1104335791443
419.47577370407846
429.80520170752668
4310.4403065089106
4410.4988466782166
4511.3035679147011
4612.3693168768530
4712.6157901770694
4813.0101700953678
4914.7947440081781
5015.1181111474822
5115.2593928311363
5217.2734065130170
5317.7738377046698
5419.723082923316
5521.731327948564
5622.5276661977805
5724.5359216827102
5824.8175859939419
5925.537562529629
6036.5028889710196
6139.4145995864668
6248.323348523303
6351.8970759488582
6453.4572015541466
6555.7247118616402
6675.1065954108895
6779.6727124239736
68169.515336084662
69323.841086541599
70357.233404318646
71513.666710879263
721693.07389679627
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197559783oyv19k35jlfrz9s/1kpzq1197560641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197559783oyv19k35jlfrz9s/1kpzq1197560641.ps (open in new window)


 
Parameters:
 
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:

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