Home » date » 2008 » Jan » 06 » attachments

CVWS5Q2

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Sun, 06 Jan 2008 12:43:57 -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/Jan/06/t119964862642y5eu6kb8xykao.htm/, Retrieved Sun, 06 Jan 2008 20:43:49 +0100
 
User-defined keywords:
Various EDA topics Q2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
59.9 8.6 13.5 -12.7 59.9 8.6 16.2 -2.4 59.9 8.5 17.6 7.1 60.9 8.4 15.8 -3.9 60.9 8.3 17.6 9.5 60.9 8.3 15.2 5 61.1 8.2 15.9 -16.1 61.1 8.2 12 -10.8 61.1 8.1 13.3 7 60.2 8 14.8 13.6 60.2 8 16.1 8.1 60.2 7.9 16.9 -8.1 60.1 7.8 17.6 4.9 60.1 7.8 13.9 -0.8 60.1 7.8 10 4.3 59.7 7.8 7.6 4 59.7 7.8 7.1 1.5 59.7 7.8 8.1 5.4 60.5 7.8 8.1 -11.3 60.5 7.8 7.7 -16.4 60.5 7.8 4 -2 59.5 7.9 1.4 8.9 59.5 7.9 0.3 -7.2 59.5 7.9 -1 -18 59.5 8 -1.9 1.3 59.5 8 -1.5 6.3 59.5 8 -0.2 -6 59.7 8.1 3.4 2.8 59.7 8.1 3 2 59.7 8.2 4.1 5.1 60.4 8.3 3.4 -7.6 60.4 8.3 3.2 -18.6 60.4 8.3 6.1 5.8 60 8.4 5.8 20.3 60 8.5 6.2 0.7 60 8.5 5.8 -11.2 59 8.6 5.9 -5.7 59 8.6 6.7 -0.1 59 8.7 5.9 3.4 59.3 8.6 3.8 3.3 59.3 8.7 1.7 -1.2 59.3 8.7 1.4 4.2 59.7 8.6 1.8 -8.8 59.7 8.6 3 -25.3 59.7 8.7 3.6 8.5 60.4 8.7 4.8 14.5 60.4 8.7 4.3 -3.1 60.4 8.7 4.2 -10.4 59.9 8.7 2.9 -2.9 59.9 8.7 4.9 0.3 59.9 8.8 7.2 22.6 60.5 8.8 8.7 15.4 60.5 8.8 9.1 9 60.5 8.8 8.9 29.1 60.4 8.8 9 2.8 60.4 8.8 11.6 -3.8 60.4 8.8 9.6 27.7 60.6 8.8 9.1 28.9 60.6 8.9 9.2 26.5 60.6 8.9 10.8 19.8 60.9 8.9 11 13.2 60.9 8.9 8.5 14.1 60.9 9 6.5 34.1 61 8.9 7.2 30 61 8.9 7.8 21.8 61 8.9 8.7 32.1 61.2 8.8 7.8 5.3 61.2 8.8 7.5 3 61.2 8.8 7.7 17.1 61.2 8.8 7.5 26.3 61.2 8.7 8.3 38.1 61.2 8.6 7.9 19.5 60.3 8.7 10.4 38 60.3 8.6 11.5 35.5 60.3 8.6 14 78.6 60.4 8.4 11.9 62.2 60.4 8.4 11.9 76.9 60.4 8.3 10.3 104.9 61.2 8.1 11.3 32.2 61.2 8.1 9.9 42.5 61.2 8 8.9 64.3 62.1 8 9.2 74.9 62.1 7.9 8.8 75.4 62.1 7.8 6.7 43 61.7 7.7 7.1 58.7 61.7 7.6 6.6 55.4 61.7 7.6 7.2 76.6 61.6 7.5 5 63.3 61.6 7.5 5.3 78.9 61.6 7.4 6.3 82.7
 
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.300000000000002
20.648074069840785
30.894427190999916
41.28452325786651
51.30384048104053
61.37840487520902
71.37840487520902
81.40907963602565
91.45602197785610
101.48660687473185
111.48996644257514
121.70536408068075
131.71172427686237
141.82897753068128
151.84390889145858
161.85741756210067
171.89472953214964
182.00748598998848
192.14009345590327
202.22671857676547
212.28691932520586
222.38327505756260
232.41660919471891
242.54797936166666
252.56594870588678
262.58069758011279
272.58069758011279
282.62106848441623
292.62654537166831
302.71108834234518
312.73130005674953
322.94844006287196
333.14506484040901
343.33916157141280
353.37490740613724
363.38661576116449
373.42397879407604
383.45148328045934
393.46265793863616
403.48134344863488
413.75956240366417
423.76961536499415
433.82192593113324
443.84189941282978
453.93064880140671
463.95937960933793
474.11766124540764
484.12663855583454
494.2537965954796
504.35545634807651
514.8474175205637
525.01597448159378
535.08008492814831
545.83974492554578
555.85402223327977
565.97067544203687
575.99439349000009
586.22552231194132
596.37622410423759
606.48245210035963
616.71956554000458
626.78682726665869
636.84106276988688
647.46080136205138
657.50461950934662
668.61614539991405
678.62052179215741
689.73718763856807
699.99829682296205
7011.2487563021847
7112.1566640279717
7212.2269262798163
7314.6273567179914
7415.1905131241842
7519.6735568521933
7620.5120658481265
7720.9911764473469
7825.4291090086481
7934.3830906949259
8035.3254006135116
8139.1237380841873
8243.9162340786723
8362.5083311668986
8483.2626851702502
8584.5140409798898
86124.373069127176
87177.789746110888
88577.903469029596
891098.118125411
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/06/t119964862642y5eu6kb8xykao/17mfj1199648635.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/06/t119964862642y5eu6kb8xykao/17mfj1199648635.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