Home » date » 2007 » Dec » 13 » attachments

dendogram

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Thu, 13 Dec 2007 14:38:43 -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/13/t1197580991jo8m6e94mgwgmkf.htm/, Retrieved Thu, 13 Dec 2007 22:23:13 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105,3 102,7 99,5 112,1 103 103,2 101,6 104,2 103,8 105,6 103,9 102,4 103,4 103,9 106,6 100,3 105,8 107,2 108,3 102,6 101,4 100,7 102 101,5 97 92,1 93,8 103,4 94,3 90,3 91,6 99,4 96,6 93,4 97,7 97,9 97,1 98,5 94,8 98 95,7 100,8 98 90,2 96,9 102,3 103,8 87,1 97,4 104,7 97,8 91,8 95,3 101,1 91,2 94,8 93,6 101,4 89,3 91,8 91,5 99,5 87,5 89,3 93,1 98,4 90,4 91,7 91,7 96,3 94,2 86,2 94,3 100,7 102,2 82,8 93,9 101,2 101,3 82,3 90,9 100,3 96 79,8 88,3 97,8 90,8 79,4 91,3 97,4 93,2 85,3 91,7 98,6 90,9 87,5 92,4 99,7 91,1 88,3 92 99 90,2 88,6 95,6 98,1 94,3 94,9 95,8 97 96 94,7 96,4 98,5 99 92,6 99 103,8 103,3 91,8 107 114,4 113,1 96,4 109,7 124,5 112,8 96,4 116,2 134,2 112,1 107,1 115,9 131,8 107,4 111,9 113,8 125,6 111 107,8 112,6 119,9 110,5 109,2 113,7 114,9 110,8 115,3 115,9 115,5 112,4 119,2 110,3 112,5 111,5 107,8 111,3 111,4 116,2 106,8 113,4 115,3 122,5 104,2 108,2 110,8 121,3 94,8 104,8 103,7 113,9 97,5 106 111,1 110,7 98,3 110,9 113 120,8 100,6 115 111,2 141,1 94,9 118,4 117,6 147,4 93,6 121,4 121,7 148 98 128,8 127,3 158,1 104,3 131,7 129,8 165 103,9 141,7 137,1 187 105,3 142,9 141,4 190,3 102,6 139,4 137,4 182,4 103,3 134,7 130,7 168,8 107,9 125 117,2 151,2 107,8 113,6 110,8 120,1 109,8 111,5 111,4 112,5 110,6 108,5 108,2 106,2 110,8 112,3 108,8 107,1 119,3 116,6 110,2 108,5 128,1 115,5 109,5 106,5 127,6 120,1 109,5 108,3 137,9 132,9 116 125,6 151,4 128,1 111,2 124 143,6 129,3 112,1 127,2 143,4 132,5 114 136,9 141,9 131 119,1 135,8 135,2 124,9 114,1 124,3 133,1 120,8 115,1 115,4 129,6 122 115,4 113,6 134,1 122,1 110,8 114,4 136,8 127,4 116 118,4 143,5 135,2 119,2 117 162,5 137,3 126,5 116,5 163,1 135 127,8 115,4 157,2 136 131,3 113,6 158,8 138,4 140,3 117,4 155,4 134,7 137,3 116,9 148,5 138,4 143 116,4 154,2 133,9 134,5 111,1 153,3 133,6 139,9 110,2 149,4 141,2 159,3 118,9 147,9 151,8 170,4 131,8 156 155,4 175 130,6 163 156,6 175,8 138,3 159,1 161,6 180,9 148,4 159,5 160,7 180,3 148,7 157,3 156 169,6 144,3 156,4 159,5 172,3 152,5 156,6 168,7 184,8 162,9 162,4 169,9 177,7 167,2 166,8 169,9 184,6 166,5 162,6 185,9 211,4 185,6 168,1
 
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.21243556529822
21.24498995979887
31.54443592435441
41.78325545001271
52.04450483002609
62.43926218353009
72.46981780704568
83.11929479209644
93.23573793747269
103.38969025133566
113.53977400408558
123.54118624192515
133.80525951808809
143.84057287393430
154.03236903073119
164.34280824575606
174.36463056855906
184.53479329250311
194.6108567533594
204.79270278652871
215.00199960015992
225.23354564325182
235.3851648071345
245.43852016366402
255.46443043692569
265.52630075185923
275.60089278597618
286.01165534607565
296.14848908193544
306.30015494150373
316.34113554499508
326.34428877022476
336.64153596692814
346.72829844760175
356.74759216313494
367.14002801114953
377.23611862669545
387.636098480245
398.0226709116002
408.62322445492405
418.63828684727447
428.75099994286369
438.77742123227844
449.10251155717131
459.31772504423692
4610.0140876797810
4710.1151756434954
4810.1653410694109
4910.2358534713358
5010.3008627304711
5110.4509329034980
5210.5837168732036
5311.2619923284771
5411.7938047562808
5511.9421350978038
5612.5491395303499
5712.6483498911346
5813.5279231618522
5913.8356734184559
6015.1110766450969
6115.5916168135707
6215.6039825271333
6315.6365237686499
6415.7362901431145
6515.7733132916750
6616.5647783306946
6716.7470136088330
6818.8737323321891
6919.2338059517308
7020.6816413748388
7122.1789455318448
7228.3437022521028
7331.6701041195941
7432.1170063016619
7536.0033824476328
7636.4367641574306
7747.5669959332961
7848.6917654280357
7953.2202756023082
8055.4387816941343
8155.6589575228827
8261.2391050795343
8365.811220583524
8487.6768310697424
85114.555473050499
86117.512664653131
87123.684787261690
88262.700122232823
89414.258583858880
90590.132618693753
91841.509111436755
921792.30259733093
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197580991jo8m6e94mgwgmkf/1007c1197581921.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197580991jo8m6e94mgwgmkf/1007c1197581921.ps (open in new window)


 
Parameters (Session):
par1 = 50 ; par2 = 50 ; par3 = 0 ; par4 = 0 ; par5 = 0 ; par6 = Y ; par7 = Y ;
 
Parameters (R input):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ; par5 = 0 ; par6 = Y ; par7 = Y ;
 
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