Home » date » 2008 » Nov » 13 »

*Unverified author*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Thu, 13 Nov 2008 15:20:25 -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/13/t12266148438alhntmpmxvnhjj.htm/, Retrieved Thu, 13 Nov 2008 22:20:46 +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/13/t12266148438alhntmpmxvnhjj.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.3 2.36 5.41 2.86 1.95 5.46 2.27 2.16 5.64 1.95 2.76 5.76 2.98 2.09 5.82 1.71 1.49 5.84 1.31 1.17 5.83 1.37 1.3 5.85 1.8 1.26 5.85 2.14 2.17 5.88 2.05 2.03 5.87 2.43 2.18 5.87 5.28 2.61 5.85 4.07 2.58 5.89 3.24 3.86 5.88 1.22 3.81 5.89 1.18 2.41 5.9 1 1.47 5.91 1.18 1.33 5.89 1.86 1.38 5.92 2.38 1.57 5.91 1.48 2.6 5.96 1.62 2.18 5.96 2.44 2.36 5.99 3.91 2.24 5.92 3.83 2.41 5.96 2.9 2.51 5.96 1.67 2.98 5.97 1.19 1.87 5.96 1.26 1.9 5.95 1.6 1.47 5.97 2.61 1.45 5.98 2.19 2.71 5.99 1.46 2.9 6.03 2.17 2.11 6.05 2.6 2.18 6.08 4.33 2.24 6.1 2.9 2.05 6.11 2.05 2.42 6.09 1.51 2.77 6.1 1.19 1.99 6.12 1.08 1.47 6.13 1.1 1.09 6.13 1.39 0.93 6.17 1.35 1.32 6.19 1.69 2.03 6.23 2.35 2.04 6.21 3.7 2.78 6.23 3.55 2.8 6.25 3.75 3.03 6.23 4.23 3.11 6.23 2.13 2.75 6.24 1.33 2.78 6.28 1.46 1.76 6.3 2.1 1.29 6.34 1.76 1.28 6.27 1.28 1.43 6.22 1.26 1.71 6.31 1.99 1.89 6.33 3.06 1.84 6.31 3.33 2.08 6.35 4.02 2.09 6.33 2.43 2.36 6.36 1.39 2.99 6.37 1.52 2.75 6.33 1.75 1.58 6.34 2.22 1.69 6.42 2.57 1.3 6.42 2.37 1.97 6.48 1.69 1.84 6.47 2.71 1.96 6.5 3.06 1.86 6.52 4.64 2.75 6.49 3.22 2.62 6.51 2.35 2.41 6.52 2.01 3.61 6.54 1.49 2.03 6.59 1.31 1.45 6.6 1.29 1.4 6.59 1.33 1.3 6.58 1.33 1.58 6.55 1.39 2.1 6.57 2.39 2.27 6.61 3.04 2.54 6.61
 
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'George Udny Yule' @ 72.249.76.132


Summary of Dendrogram
LabelHeight
10.0547722557505166
20.076811457478686
30.12369316876853
40.133790881602596
50.144568322948010
60.151327459504216
70.152643375224738
80.155615857075599
90.155884572681199
100.166733320005331
110.171172427686237
120.171464281994822
130.192093727122985
140.198746069143518
150.206397674405503
160.210950231097290
170.216564078277077
180.220027507143814
190.220907220343746
200.225929180737146
210.234093998214392
220.244192777443496
230.245904079478557
240.252900297914676
250.260192236625154
260.268700576850888
270.275139657420847
280.279334856818157
290.279642629082192
300.296816441593117
310.299287040028603
320.303479818109870
330.316701752442263
340.317804971641414
350.32271985003553
360.333616546352245
370.347275107083707
380.360138862107382
390.360183346655995
400.385541607703055
410.388826001396361
420.414125584816974
430.424261224035659
440.430357979240401
450.446707566957678
460.505138777179615
470.521325188166175
480.53099376991057
490.561065427687481
500.603489850784584
510.604400529450462
520.62651269641963
530.636356585975002
540.672467871668472
550.695821987958553
560.749705787810854
570.76536477615575
580.818409704475618
590.823626603383826
600.82813391390275
610.89092478058693
620.892515726876682
631.04240107444304
641.10415466868235
651.13516835177840
661.22475908917341
671.29987267647895
681.51873904684064
691.59356596819206
701.70206372699082
711.89838849836904
721.95976012340632
732.04880599979331
742.0876408931404
752.62298046404135
762.65933696139283
773.01057698770479
784.10638032289735
794.92238409302335
805.21196383486164
8110.0989974059155
8218.2546356063909
8329.8884060752202
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/13/t12266148438alhntmpmxvnhjj/1vxcr1226614823.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/13/t12266148438alhntmpmxvnhjj/1vxcr1226614823.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/13/t12266148438alhntmpmxvnhjj/2frez1226614823.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/13/t12266148438alhntmpmxvnhjj/2frez1226614823.ps (open in new window)


 
Parameters (Session):
 
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