Home » date » 2007 » Nov » 05 » attachments

opdr 4 q2

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:12:22 -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/3dbhx937628s2yl1194257494.htm/, Retrieved Mon, 05 Nov 2007 11:11:37 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
91,19 1,79 89,28 92,58 91,53 1,95 89,47 93,15 91,88 2,26 89,53 93,7 92,06 2,04 90,72 93,34 92,32 2,16 90,91 93,93 92,67 2,75 91,38 94,41 92,85 2,79 91,49 94,3 92,82 2,88 90,9 94,44 93,46 3,36 90,93 96,09 93,23 2,97 90,57 95,99 93,54 3,1 91,28 96,23 93,29 2,49 90,83 95,64 93,2 2,2 91,5 94,88 93,6 2,25 91,58 95,48 93,81 2,09 92,49 95,52 94,62 2,79 94,16 96,18 95,22 3,14 95,46 96,82 95,38 2,93 95,8 96,81 95,31 2,65 95,32 96,25 95,3 2,67 95,41 96,24 95,57 2,26 95,35 96,95 95,42 2,35 95,68 96,25 95,53 2,13 95,59 96,04 95,33 2,18 94,96 95,78 95,9 2,9 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,6 96,5 1,26 96,05 96,64 96,77 1,26 96,76 97,2 96,66 1,29 96,51 97,5 96,58 1,1 96,55 96,99 96,63 1,37 95,97 97,08 97,06 1,21 97 97,55 97,73 1,74 97,46 98,42 98,01 1,76 97,9 98,78 97,76 1,48 98,42 97,49 97,49 1,04 98,54 96,99 97,77 1,62 99 97,16 97,96 1,49 98,94 97,29 98,23 1,79 99,02 97,8 98,51 1,8 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,6 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,2 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,6 100,51 2,03 99,96 100,85 101 2,86 99,76 101,96 100,88 2,55 100,11 101,4 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,9 102,54 2,51 103,39 102,68 102,85 2,87 102,8 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,5 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,4 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,6 104,29 105,9 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,2 1,66 106,47 104,84 105,77 1,77 106,62 105,47 105,78 1,82 106,52 105,4 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.0932737905308925
20.132287565553233
30.192873015219849
40.223830292855996
50.241246761636290
60.271108834234523
70.29949958263743
80.317962261911684
90.334428631382339
100.335708206631887
110.336749164809658
120.342490875790878
130.387169213652126
140.399874980462637
150.402492235949963
160.423438307194805
170.427901857906695
180.430581002832221
190.464865571966776
200.468934963507739
210.476982278767515
220.487945044257233
230.509850396423737
240.525620748250331
250.529905651979672
260.530565735795285
270.581713292969237
280.631774772905535
290.634034699365903
300.648577076857977
310.651229606206597
320.662640772349327
330.66887966032763
340.675615940718174
350.682788400604461
360.700499821556008
370.701355829803949
380.70866070866107
390.72725511342307
400.728628849277879
410.73932401557097
420.770068401848224
430.775114041702953
440.789213895019265
450.790569415042089
460.87476948236093
470.895631120704817
480.896930059486853
490.905615946026887
500.952158678866097
510.982134002514492
520.993400978785342
530.998287697681918
541.00289580715047
551.05855923917272
561.06805644813109
571.14202726120121
581.19276725267891
591.21127983953589
601.27774522245076
611.28662759632268
621.36937584873134
631.3747741900212
641.43272709512621
651.57809583153990
661.64931679875173
671.71855568619222
681.97131627083975
692.00284658245665
702.24492661574405
712.33907058716814
722.36252230774184
732.39686588400049
742.77902356129487
752.96298859056425
763.29095060994493
773.93224420812851
784.10922383106238
794.19766221723655
804.3354098598628
815.56688477000092
825.95361628067893
836.26554264877576
8410.0302969509425
8510.8948116458561
8613.2890158967772
8714.3210913697586
8834.0009672003357
8948.4865205353351
9079.5701360346146
91145.492403118318
92394.560827491326
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/3dbhx937628s2yl1194257494/11wmt1194257539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/3dbhx937628s2yl1194257494/11wmt1194257539.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