Home » date » 2008 » Nov » 09 »

Q2

*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: Sun, 09 Nov 2008 10:18:53 -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/09/t1226251194b11kc7h3fw4xwcp.htm/, Retrieved Sun, 09 Nov 2008 17:19:54 +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/09/t1226251194b11kc7h3fw4xwcp.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 «
15 15,1 467 98,6 14,9 14,8 460 98 16,8 16,1 448 106,8 14,3 14,3 443 96,7 15,5 15,2 436 100,2 15,6 14,9 431 107,7 14,6 13,1 484 92 12,5 12,6 510 98,4 14,8 13,6 513 107,4 15,9 14,4 503 117,7 14,8 14 471 105,7 12,9 12,9 471 97,5 14,3 13,4 476 99,9 14,2 13,5 475 98,2 15,9 14,8 470 104,5 15,3 14,3 461 100,8 15,5 14,3 455 101,5 15,1 14 456 103,9 15 13,2 517 99,6 12,1 12,2 525 98,4 15,8 14,3 523 112,7 16,9 15,7 519 118,4 15,1 14,2 509 108,1 13,7 14,6 512 105,4 14,8 14,5 519 114,6 14,7 14,3 517 106,9 16 15,3 510 115,9 15,4 14,4 509 109,8 15 13,7 501 101,8 15,5 14,2 507 114,2 15,1 13,5 569 110,8 11,7 11,9 580 108,4 16,3 14,6 578 127,5 16,7 15,6 565 128,6 15 14,1 547 116,6 14,9 14,9 555 127,4 14,6 14,2 562 105 15,3 14,6 561 108,3 17,9 17,2 555 125 16,4 15,4 544 111,6 15,4 14,3 537 106,5 17,9 17,5 543 130,3 15,9 14,5 594 115 13,9 14,4 611 116,1 17,8 16,6 613 134 17,9 16,7 611 126,5 17,4 16,6 594 125,8 16,7 16,9 595 136,4 16 15,7 591 114,9 16,6 16,4 589 110,9 19,1 18,4 584 125,5 17,8 16,9 573 116,8 17,2 16,5 567 116,8 18,6 18,3 569 125,5 16,3 15,1 621 104,2 15,1 15,7 629 115,1 19,2 18,1 628 132,8 17,7 16,8 612 123,3 19,1 18,9 595 124,8 18 19 597 122 17,5 18,1 593 117,4 17,8 17,8 590 117,9 21,1 21,5 580 137,4 17,2 17,1 574 114,6 19,4 18,7 573 124,7 19,8 19 573 129,6 17,6 16,4 620 109,4 16,2 16,9 626 120,9 19,5 18,6 620 134,9 19,9 19,3 588 136,3 20 19,4 566 133,2 17,3 17,6 557 127,2
 
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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Summary of Dendrogram
LabelHeight
11.73781471969828
21.97737199332852
32.0712315177208
42.49799919935936
52.64764045897475
62.68514431641951
73.04138126514911
83.05941170815567
93.07083050655682
103.19061122670876
113.23419232575925
123.36005952328229
133.54118624192515
143.65376518128902
154.17612260356422
164.50444225182209
174.72134806872578
184.97031164946095
195.14392845984467
205.38242459293929
215.60535458289661
225.82096510129622
236.13595958265698
246.31966340767748
256.4831838042978
266.7297845433565
276.89129886160802
287.1941340607887
297.30821455623738
307.52994023880668
317.55314504031268
327.89176786277954
337.96868872525461
348.0628778981205
358.11482427699588
369.7767571115565
379.78887484361375
389.89417827264283
3910.2055830747398
4012.1626160512122
4112.8728459880171
4213.1425049937764
4313.2571198706375
4413.2930450512512
4513.8327848334833
4614.0846573386397
4714.2511624427832
4815.7339030230484
4917.6380899900536
5017.8068681733093
5118.2756993884405
5221.3991872428216
5321.4884615789213
5421.6631237113305
5525.1751611561088
5626.6299793378801
5727.4704230634099
5831.0932947418645
5931.1835991374482
6043.3794249683866
6146.2150132799487
6249.0997342838128
6351.042406278264
6451.6968654703477
6598.1717416627388
66111.984171034368
67125.760165861199
68202.127946445232
69435.417085556479
70585.19502938307
712319.68169433435
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226251194b11kc7h3fw4xwcp/1vu4e1226251128.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226251194b11kc7h3fw4xwcp/1vu4e1226251128.ps (open in new window)


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