Home » date » 2008 » Nov » 12 »

*The author of this computation has been verified*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Wed, 12 Nov 2008 12:24:42 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu.htm/, Retrieved Wed, 12 Nov 2008 19:26:05 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-3 17 -1 -2 22 1 0 29 1 1 26 -4 11 29 0 14 42 -2 14 40 -5 16 34 2 14 46 0 10 43 0 15 44 4 18 40 2 18 41 3 12 42 2 8 35 2 2 40 1 -2 43 0 -1 47 0 1 41 1 -6 44 0 -16 38 0 -21 35 -3 -38 34 -5 -32 31 -6 -22 25 -2 -31 35 -1 -22 36 -3 -26 41 -1 -19 41 -1 -20 38 -6 -24 39 -2 -29 45 -7 -28 46 -7 -31 48 -5 -30 48 -10 -32 48 -9 -38 45 -7 -43 44 -9 -51 45 -9 -43 45 -10 -43 45 -9 -42 42 -8 -47 43 -9 -45 50 -10 -38 46 -8 -46 46 -7 -38 45 -8 -32 49 -6 -27 46 -7 -26 45 -3 -21 49 -6 -23 47 -6 -24 45 -4 -17 48 -4 -23 51 -7 -16 48 -5 -22 49 -6 -26 51 -7 -25 54 -4 -21 52 -6 -21 52 -5 -18 53 -3 -12 51 -4 -19 55 -6 -31 53 -8 -38 51 -5 -38 52 -7 -32 54 -8 -43 58 -8 -33 57 -6 -28 52 -7 -25 50 -6 -19 53 -2 -20 50 -4 -21 50 -5 -19 51 -2 -17 53 -4 -16 49 -4 -10 54 -5 -16 57 -7 -10 58 -5 -8 56 -6 -7 60 -4 -15 55 -2 -7 54 -3 -6 52 0 -6 55 -4 2 56 -3 -4 54 -3 -4 53 -3 -8 59 -4 -10 62 -5 -16 63 -5 -14 64 -6 -30 75 -10 -33 77 -11 -40 79 -13 -38 77 -12 -39 82 -13 -46 83 -12 -50 81 -15 -55 78 -14 -66 79 -16 -63 79 -16 -56 73 -12 -66 72 -16
 
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 computational 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
21
31
41
51
61
71.27614237491540
81.27614237491540
91.41421356237310
101.41421356237310
111.41421356237310
121.41421356237310
131.41421356237310
141.41421356237310
151.41421356237310
161.41421356237310
171.41421356237310
181.73205080756888
191.73205080756888
201.73205080756888
212.10018769324859
222.23606797749979
232.23606797749979
242.23606797749979
252.35702260395516
262.44948974278318
273
283
293
303
313
323.0139866373784
333.04299673483065
343.05564289266583
353.60555127546399
363.63567207895494
373.65602689891371
383.74165738677394
393.74165738677394
403.74165738677394
414.12310562561766
424.18485036622741
434.34144901387458
444.35889894354067
454.43985829769134
464.47409727145224
474.57228672191667
484.58257569495584
495.18326519198119
505.20818633861417
515.26166980510275
525.28902006076917
535.3851648071345
545.3851648071345
555.38568855777618
565.45891802445299
575.47722557505166
585.47722557505166
595.91607978309962
606.46012505731802
616.48074069840786
626.499429854633
636.67730737729928
647
657.77733202570487
667.87891182183953
677.94048465109872
688.05240734993719
698.67445617120195
708.7438487372426
719.86763307331605
7210.2468541205562
7310.3356051329469
7410.5385829089376
7510.5776049762708
7611.2067585082948
7711.2399987437027
7812.2780199508657
7912.8917332850617
8012.9134612582702
8115.0621100076282
8215.2125905313638
8315.3296192883557
8415.5927145117494
8515.8730994654282
8616.4862522940672
8718.3038171540339
8819.2718803222194
8921.7400169271709
9023.4095496288911
9127.2113841846241
9231.7947473739433
9332.1847436168481
9433.0496719966370
9535.263627510865
9637.9809303467244
9765.3196425437514
9884.1906208167678
9984.5219977880397
10089.5522048261265
101135.927420790659
102213.091533560960
103343.574267602878
104528.888615338023
105730.948013317262
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu/1tx7s1226517880.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu/1tx7s1226517880.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu/2pb491226517880.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/12/t1226517962euedop32fm8z1lu/2pb491226517880.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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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