Home » date » 2007 » Nov » 05 » attachments

hierarhcical 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:13:00 -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/de1ve7higzngski1194257477.htm/, Retrieved Mon, 05 Nov 2007 11:11:19 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
95,90 2,90 96,92 95,86 96,06 2,63 96,06 96,02 96,31 2,67 96,59 96,34 96,34 1,81 96,67 96,84 96,49 1,33 97,27 96,73 96,22 0,88 96,38 96,34 96,53 1,28 96,47 96,60 96,50 1,26 96,05 96,64 96,77 1,26 96,76 97,20 96,66 1,29 96,51 97,50 96,58 1,10 96,55 96,99 96,63 1,37 95,97 97,08 97,06 1,21 97,00 97,55 97,73 1,74 97,46 98,42 98,01 1,76 97,90 98,78 97,76 1,48 98,42 97,49 97,49 1,04 98,54 96,99 97,77 1,62 99,00 97,16 97,96 1,49 98,94 97,29 98,23 1,79 99,02 97,80 98,51 1,80 100,07 98,12 98,19 1,58 98,72 98,03 98,37 1,86 98,73 98,11 98,31 1,74 98,04 98,07 98,60 1,59 99,08 98,21 98,97 1,26 99,22 98,48 99,11 1,13 99,57 98,83 99,64 1,92 100,44 99,20 100,03 2,61 100,84 99,88 99,98 2,26 100,75 99,71 100,32 2,41 100,49 100,03 100,44 2,26 99,98 100,60 100,51 2,03 99,96 100,85 101,00 2,86 99,76 101,96 100,88 2,55 100,11 101,40 100,55 2,27 99,79 100,81 100,83 2,26 100,29 100,66 101,51 2,57 101,12 101,55 102,16 3,07 102,65 102,23 102,39 2,76 102,71 102,90 102,54 2,51 103,39 102,68 102,85 2,87 102,80 103,41 103,47 3,14 102,07 104,62 103,57 3,11 102,15 104,93 103,69 3,16 101,21 105,88 103,50 2,47 101,27 105,18 103,47 2,57 101,86 104,54 103,45 2,89 101,65 104,58 103,48 2,63 101,94 104,34 103,93 2,38 102,62 104,66 103,89 1,69 102,71 104,73 104,40 1,96 103,39 105,44 104,79 2,19 104,51 105,72 104,77 1,87 104,09 105,68 105,13 1,60 104,29 105,90 105,26 1,63 104,57 105,97 104,96 1,22 105,39 105,21 104,75 1,21 105,15 104,75 105,01 1,49 106,13 104,89 105,15 1,64 105,46 105,26 105,20 1,66 106,47 104,84 105,77 1,77 106,62 105,47 105,78 1,82 106,52 105,40 106,26 1,78 108,04 105,73 106,13 1,28 107,15 105,72 106,12 1,29 107,32 105,63 106,57 1,37 107,76 105,97 106,44 1,12 107,26 105,92 106,54 1,51 107,89 106,32
 
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.132287565553233
20.192873015219849
30.223830292855996
40.271108834234523
50.29949958263743
60.317962261911684
70.334428631382339
80.336749164809658
90.342490875790878
100.387169213652126
110.399874980462637
120.402492235949963
130.423438307194805
140.427901857906695
150.468934963507739
160.476982278767515
170.487945044257233
180.509850396423737
190.525620748250331
200.529905651979672
210.530565735795285
220.581713292969237
230.631774772905535
240.634034699365903
250.648577076857977
260.662640772349327
270.66887966032763
280.700499821556008
290.701355829803949
300.728628849277879
310.73932401557097
320.770068401848224
330.775114041702953
340.789213895019265
350.790569415042089
360.87476948236093
370.895631120704817
380.905615946026887
390.952158678866097
400.982134002514492
410.993400978785342
421.00289580715047
431.06805644813109
441.21127983953589
451.28662759632268
461.36937584873134
471.3747741900212
481.43272709512621
491.57809583153990
501.64931679875173
511.71855568619222
522.00284658245665
532.33907058716814
542.39686588400049
552.77902356129487
562.96298859056425
573.93224420812851
584.10922383106238
594.3354098598628
605.56688477000092
615.7163090099975
626.26554264877576
6310.0302969509425
6413.2890158967772
6527.7197022374139
6645.7316410082011
6785.9532780967705
68235.957597303874
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/de1ve7higzngski1194257477/14dgd1194257576.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/de1ve7higzngski1194257477/14dgd1194257576.ps (open in new window)


 
Parameters:
par1 = single ; 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