Home » date » 2007 » Nov » 05 » attachments

dendrogram

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 14:10:29 -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/5bu8xlts671kjg11194297116.htm/, Retrieved Mon, 05 Nov 2007 22:11:58 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97.3 93.5 93.5 124.9 101 94.7 94.7 132 113.2 112.9 112.9 151.4 101 99.2 99.2 108.9 105.7 105.6 105.6 121.3 113.9 113 113 123.4 86.4 83.1 83.1 90.3 96.5 81.1 81.1 79.3 103.3 96.9 96.9 117.2 114.9 104.3 104.3 116.9 105.8 97.7 97.7 120.8 94.2 102.6 102.6 96.1 98.4 89.9 89.9 100.8 99.4 96 96 105.3 108.8 112.7 112.7 116.1 112.6 107.1 107.1 112.8 104.4 106.2 106.2 114.5 112.2 121 121 117.2 81.1 101.2 101.2 77.1 97.1 83.2 83.2 80.1 112.6 105.1 105.1 120.3 113.8 113.3 113.3 133.4 107.8 99.1 99.1 109.4 103.2 100.3 100.3 93.2 103.3 93.5 93.5 91.2 101.2 98.8 98.8 99.2 107.7 106.2 106.2 108.2 110.4 98.3 98.3 101.5 101.9 102.1 102.1 106.9 115.9 117.1 117.1 104.4 89.9 101.5 101.5 77.9 88.6 80.5 80.5 60 117.2 105.9 105.9 99.5 123.9 109.5 109.5 95 100 97.2 97.2 105.6 103.6 114.5 114.5 102.5 94.1 93.5 93.5 93.3 98.7 100.9 100.9 97.3 119.5 121.1 121.1 127 112.7 116.5 116.5 111.7 104.4 109.3 109.3 96.4 124.7 118.1 118.1 133 89.1 108.3 108.3 72.2 97 105.4 105.4 95.8 121.6 116.2 116.2 124.1 118.8 111.2 111.2 127.6 114 105.8 105.8 110.7 111.5 122.7 122.7 104.6 97.2 99.5 99.5 112.7 102.5 107.9 107.9 115.3 113.4 124.6 124.6 139.4 109.8 115 115 119 104.9 110.3 110.3 97.4 126.1 132.7 132.7 154 80 99.7 99.7 81.5 96.8 96.5 96.5 88.8 117.2 118.7 118.7 127.7 112.3 112.9 112.9 105.1 117.3 130.5 130.5 114.9 111.1 137.9 137.9 106.4 102.2 115 115 104.5 104.3 116.8 116.8 121.6 122.9 140.9 140.9 141.4 107.6 120.7 120.7 99 121.3 134.2 134.2 126.7 131.5 147.3 147.3 134.1 89 112.4 112.4 81.3 104.4 107.1 107.1 88.6 128.9 128.4 128.4 132.7 135.9 137.7 137.7 132.9 133.3 135 135 134.4 121.3 151 151 103.7 120.5 137.4 137.4 119.7 120.4 132.4 132.4 115 137.9 161.3 161.3 132.9 126.1 139.8 139.8 108.5 133.2 146 146 113.9 146.6 154.6 154.6 142.9 103.4 142.1 142.1 95.2 117.2 120.5 120.5 93
 
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.80277563773199
21.82482875908947
32.54165300542776
43.12249899919920
53.13368792319849
63.16701752442263
74.10365690573665
84.15932686861707
94.25793377120875
104.32203655699487
114.47101778122163
124.52658811910250
134.65080638169338
144.85695377783234
154.85901224530255
165.00699510684802
176.67083203206317
186.7483331275212
196.84032162986506
206.93757882838096
216.98068764521088
227.38715100698503
237.53790421801711
247.68505042273633
257.79999999999999
268.1363382427232
278.18413098624405
288.37376856618334
299.1706052144883
309.43663075467087
319.54253635046783
329.8
339.90807751281752
3410.0094954917818
3510.7851750101702
3610.7907367681730
3710.8189648303338
3810.8374351209131
3911.1162043881893
4012.5079974416371
4112.9903810567666
4213.1468627436358
4313.2939836016147
4413.4996296245490
4513.5136967555144
4614.0185591271000
4714.4627106726229
4814.8327340702920
4914.9003355666911
5015.1990131258579
5115.2865954352171
5215.2973853975116
5316.1499226004337
5416.2932501361760
5516.7758755360190
5617.2325273828304
5717.3942519241271
5820.0902961650644
5920.4389334359697
6020.4406457823621
6123.7667835434246
6224.3156328315757
6324.5521893117498
6424.914654322306
6524.9595673039418
6629.1803015748638
6732.3191893462692
6833.0678091200491
6933.8252863993788
7037.914113467151
7140.0282400312579
7244.0159062158216
7347.3905053781873
7451.0383189378334
7554.7241263064108
7666.7385196119902
7777.943890074848
78104.431987436800
79145.664099901108
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/5bu8xlts671kjg11194297116/1u56o1194297027.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/05/5bu8xlts671kjg11194297116/1u56o1194297027.ps (open in new window)


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