Home » date » 2007 » Nov » 05 » attachments

hierarchical clustering

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Mon, 05 Nov 2007 03:06:16 -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/Nov/05/y5kd1ibe3kin5bg1194257197.htm/, Retrieved Mon, 05 Nov 2007 11:06:39 +0100
 
User-defined keywords:
hierarchical clustering
 
Dataseries X:
» Textbox « » Textfile « » CSV «
96,8 96,9 96,7 95,4 96,8 91,2 98,0 88,0 101,2 87,0 97,1 97,9 96,7 101,5 96,3 104,9 100,9 106,8 101,9 107,1 110,9 103,9 114,3 101,7 115,2 104,8 103,1 105,7 100,1 106,1 94,1 102,5 90,1 97,4 89,5 95,8 104,3 91,6 96,5 91,3 99,3 102,6 97,7 99,2 97,6 101,1 101,7 100,8 102,2 100,7 104,0 102,8 104,6 105,3 104,6 99,0 105,4 95,9 111,1 94,7 105,4 110,9 102,7 114,9 101,8 107,1 113,5 104,0 124,5 102,5 110,7 116,3 107,9 142,2 105,3 117,1 124,0 113,8 159,7 110,3 118,7 128,8 113,8 165,2 109,8 126,5 133,5 123,1 198,6 117,3 127,5 132,6 125,1 207,8 118,8 134,6 128,4 137,6 219,6 131,3 131,8 127,3 134,0 239,6 125,9 135,9 126,7 140,3 235,3 133,1 142,7 123,3 152,1 218,5 147,0 141,7 123,2 150,6 213,8 145,8 153,4 124,4 167,3 205,5 164,4 145,0 128,2 153,2 198,4 149,8 137,7 128,7 142,0 198,5 137,7 148,3 135,7 154,4 190,2 151,7 152,2 139,0 158,5 180,7 156,8 169,4 145,4 180,9 193,6 180,0 168,6 142,4 181,3 192,8 180,4 161,1 137,7 172,4 195,5 170,4 174,1 137,0 192,0 197,2 191,6 179,0 137,1 199,3 196,9 199,5 190,6 139,3 215,4 178,9 218,2 190,0 139,6 214,3 172,4 217,5 181,6 140,4 201,5 156,4 205,0 174,8 142,3 190,5 143,7 194,0 180,5 148,3 196,0 153,6 199,3 196,8 157,7 215,7 168,8 219,3 193,8 161,6 209,4 185,8 211,1 197,0 161,7 214,1 199,9 215,2 216,3 171,8 237,8 205,4 240,2 221,4 185,1 239,0 197,5 242,2 217,9 176,7 237,8 199,6 240,7 229,7 184,4 251,5 200,5 255,4 227,4 183,0 248,8 193,7 253,0 204,2 180,9 215,4 179,6 218,2 196,6 187,0 201,2 169,1 203,7 198,8 189,9 203,1 169,8 205,6 207,5 193,8 214,2 195,5 215,6 190,7 194,5 188,9 194,8 188,5 201,6 198,7 203,0 204,5 202,9 210,5 204,7 213,3 203,8 214,0 223,5 213,2 228,5 204,8 230,3 223,8 214,7 228,2 204,9 230,0 231,2 211,0 240,9 240,0 241,0 244,0 213,2 258,8 248,3 259,6 234,7 206,3 248,5 258,4 247,8 250,2 210,8 269,2 254,9 270,3
 
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.59059737205869
23.20936130717624
33.25576411921994
43.52562051276084
54.57820925690386
65.175905717843
75.68066897468951
86.12438931013497
96.20886463051015
106.66333249958307
117.48999332442961
127.77560287051749
138.15720540381325
149.62808392152875
1510.1975487250613
1610.2796543061681
1710.8430912916896
1811.2778544058699
1911.5844723660597
2011.8080481028831
2111.8241278748160
2214.1446102809515
2314.7342365347412
2415.7467456955397
2517.6184562320312
2617.8964328711026
2719.3359556887245
2819.9546986947936
2920.2349701761538
3020.3263432145169
3121.1839258603736
3221.4366382779137
3321.8380402051100
3425.589034711971
3528.5424536737741
3628.836328276247
3730.1824864808308
3830.9606046745631
3940.0243536815488
4040.4537529569372
4145.4252851537586
4246.5804363084871
4347.327049623301
4453.7458605364445
4561.6678346389096
4665.5590180930103
4766.4327692151587
4868.8183658341696
4996.987783624418
5098.8066877593632
51111.577760566497
52127.412914111299
53171.899732406559
54213.521190000939
55214.456311085589
56302.315502706050
57764.749376729712
581221.40936314200
593413.92226502828
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/y5kd1ibe3kin5bg1194257197/1xk1r1194257173.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/y5kd1ibe3kin5bg1194257197/1xk1r1194257173.ps (open in new window)


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

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