Home » date » 2007 » Dec » 17 » attachments

hc

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Mon, 17 Dec 2007 04:02:41 -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/17/t11978883485xdrfv4w6q8eo8g.htm/, Retrieved Mon, 17 Dec 2007 11:45:50 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1 0.76 0.4 0.9383 1.04 0.77 0.37 0.9217 1.02 0.76 0.36 0.9095 1.07 0.77 0.36 0.892 1.12 0.78 0.36 0.8742 1.08 0.79 0.36 0.8532 1.02 0.78 0.32 0.8607 1.01 0.76 0.31 0.9005 1.04 0.78 0.32 0.9111 0.98 0.76 0.33 0.9059 0.95 0.74 0.33 0.8883 0.94 0.73 0.29 0.8924 0.94 0.72 0.33 0.8833 0.96 0.71 0.32 0.87 0.97 0.73 0.31 0.8758 1.03 0.75 0.33 0.8858 1.01 0.75 0.32 0.917 0.99 0.72 0.32 0.9554 1 0.72 0.3 0.9922 1 0.72 0.3 0.9778 1.02 0.74 0.33 0.9808 1.01 0.78 0.35 0.9811 0.99 0.74 0.35 1.0014 0.98 0.74 0.37 1.0183 1.01 0.75 0.38 1.0622 1.03 0.78 0.39 1.0773 1.03 0.81 0.4 1.0807 1 0.75 0.32 1.0848 0.96 0.7 0.29 1.1582 0.97 0.71 0.29 1.1663 0.98 0.71 0.3 1.1372 1.02 0.73 0.3 1.1139 1.04 0.74 0.32 1.1222 1.01 0.74 0.32 1.1692 1.01 0.75 0.34 1.1702 1 0.74 0.34 1.2286 1.01 0.74 0.34 1.2613 1.02 0.73 0.33 1.2646 1.03 0.76 0.33 1.2262 1.06 0.8 0.33 1.1985 1.12 0.83 0.34 1.2007 1.12 0.81 0.35 1.2138 1.13 0.83 0.34 1.2266 1.13 0.88 0.36 1.2176 1.13 0.89 0.39 1.2218 1.17 0.93 0.43 1.249 1.14 0.91 0.42 1.2991 1.08 0.9 0.39 1.3408 1.07 0.86 0.37 1.3119 1.12 0.88 0.36 1.3014 1.14 0.93 0.39 1.3201 1.21 0.98 0.39 1.2938 1.2 0.97 0.37 1.2694 1.23 1.03 0.36 1.2165 1.29 1.06 0.38 1.2037 1.31 1.06 0.38 1.2292 1.37 1.08 0.44 1.2256 1.35 1.09 0.49 1.2015 1.26 1.04 0.47 1.1786 1.26 1 0.48 1.1856 1.28 1.01 0.51 1.2103 1.28 1.02 0.5 1.1938 1.27 1.04 0.47 1.202 1.35 1.06 0.47 1.2271 1.37 1.06 0.44 1.277 1.37 1.06 0.43 1.265 1.4 1.06 0.45 1.2684 1.4 1.06 0.46 1.2811 1.28 1.02 0.46 1.2727 1.23 0.98 0.45 1.2611 1.23 0.99 0.45 1.2881 1.25 0.99 0.45 1.3213 1.21 0.94 0.44 1.2999 1.22 0.96 0.43 1.3074 1.29 0.98 0.45 1.3242 1.32 1.01 0.45 1.3516 1.36 1.01 0.44 1.3511 1.36 1.02 0.47 1.3419 1.37 1.04 0.46 1.3716 1.32 1.03 0.48 1.3622
 
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
10.0144000000000000
20.0156204993518133
30.0161644672043343
40.0162975458275165
50.0176320730488505
60.0217313138121007
70.0217313138121008
80.0223830292855994
90.0229128784747792
100.0251722068957015
110.0254472002389260
120.0256173769148990
130.0259154394136004
140.0273649410743016
150.0280287352550913
160.0282956006446605
170.0287923600977759
180.031126997927844
190.0318050310485622
200.0319004702159702
210.0324075608461977
220.0329338731399754
230.0345739786544737
240.0374934660974416
250.0375813783674841
260.0376468013177884
270.0403776059848985
280.0412583324917525
290.0413329166645666
300.0415933888977564
310.0417252920900502
320.0431302489412267
330.0441642234516014
340.0447821392968224
350.0450076530244069
360.0458267389195435
370.0463777899445907
380.0500939558719245
390.050135589799016
400.0519250991829043
410.0541775783881118
420.0556201040928801
430.0568964615604369
440.0592655344638424
450.0594341122981788
460.0620895055872947
470.0622067245321938
480.0636045554087139
490.0709702216674465
500.0725156329596912
510.07268519222509
520.0742282752942826
530.0750516914191688
540.0794675489356025
550.0857254251438111
560.094188646674126
570.0957471992434861
580.120780474186338
590.125942241702014
600.126471760316274
610.146269465848395
620.15479335133955
630.157323818416109
640.168667152831649
650.171697164227033
660.172773426655809
670.235536027213647
680.332369072476967
690.343333349632724
700.398665619918125
710.428286201114464
720.432952550652445
730.482820456353776
740.560168446199355
750.806188151980381
760.936724048808193
771.54130104277556
784.54269490306882
7910.2940025314705
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11978883485xdrfv4w6q8eo8g/1mezx1197889359.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11978883485xdrfv4w6q8eo8g/1mezx1197889359.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:

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