Home » date » 2008 » Nov » 10 »

Various EDA Topics Q2

*Unverified author*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Mon, 10 Nov 2008 03:59:30 -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/10/t12263148363ildvrl971y86it.htm/, Retrieved Mon, 10 Nov 2008 11:00:38 +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/10/t12263148363ildvrl971y86it.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 «
107,2 80,6 88,6 96,1 107 104,1 105,4 94,9 119 108,2 119,9 99,9 110,4 93,4 107,2 96,3 101,7 71,9 84,1 89,5 102,4 94,1 101,4 104,6 98,8 94,9 105,1 101,5 105,6 96,4 118,7 109,8 104,4 91,1 113,8 112,1 106,3 84,4 113,8 110,1 107,2 86,4 118,9 107,1 108,5 88 98,5 108,1 106,9 75,1 91 99 114,2 109,7 120,7 104 125,9 103 127,9 106,7 110,6 82,1 112,4 101,1 110,5 68 93,1 97,8 106,7 96,4 107,5 113,8 104,7 94,3 107,3 107,1 107,4 90 114,8 117,5 109,8 88 120,8 113,7 103,4 76,1 112,2 106,6 114,8 82,5 123,3 109,8 114,3 81,4 100,6 108,8 109,6 66,5 86,7 102 118,3 97,2 123,6 114,5 127,3 94,1 125,3 116,5 112,3 80,7 111,1 108,6 114,9 70,5 98,4 113,9 108,2 87,8 102,3 109,3 105,4 89,5 105 112,5 122,1 99,6 128,2 123,4 113,5 84,2 124,7 115,2 110 75,1 116,1 110,8 125,3 92 131,2 120,4 114,3 80,8 97,7 117,6 115,6 73,1 88,8 111,2 127,1 99,8 132,8 131,1 123 90 113,9 118,9 122,2 83,1 112,6 115,7 126,4 72,4 104,3 119,6 112,7 78,8 107,5 113,1 105,8 87,3 106 106,4 120,9 91 117,3 115,5 116,3 80,1 123,1 111,8 115,7 73,6 114,3 109,6 127,9 86,4 132 121,5 108,3 74,5 92,3 109,5 121,1 71,2 93,7 109 128,6 92,4 121,3 113,4 123,1 81,5 113,6 112,7 127,7 85,3 116,3 114,4 126,6 69,9 98,3 109,2 118,4 84,2 111,9 116,2 110 90,7 109,3 113,8 129,6 100,3 133,2 123,6 115,8 79,4 118 112,6 125,9 84,8 131,6 117,7 128,4 92,9 134,1 113,3 114 81,6 96,7 110,7 125,6 76 99,8 114,7 128,5 98,7 128,3 116,9 136,6 89,1 134,9 120,6 133,1 88,7 130,7 111,6 124,6 67,1 107,3 111,9 123,5 93,6 121,6 116,1 117,2 97 120,6 111,9 135,5 100,8 140,5 125,1 124,8 80,1 124,8 115,1 127,8 80,7 129,9 116,7 133,1 89,4 159,4 115,8 125,7 81,5 111 117,2 128,4 73,6 110,1 113,6 131,9 90,9 132,7 107,2 146,3 97,3 135 115,2 140,6 84,3 118,6 111,4 129,5 65,6 94 109,4 132,4 87,3 117,9 123,5 125,9 90,5 114,7 123 126,9 82,4 113,6 119,8 135,8 80,4 130,6 115
 
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
13.47131099154196
23.65650105975644
33.97114593033295
44.00124980474851
54.12431812546025
64.35315977193578
74.6
85.10979451641648
95.34228415567723
105.44426303552647
115.81673022743975
125.92835792877741
136.07453701939497
146.08111831820431
156.15873363606514
166.2785348609369
176.31030902571341
186.35373905665003
196.53758365147246
206.54064217030713
216.67158152164838
226.74017803919155
236.75203672975792
246.87994220520335
257.23809367167903
267.41551669909477
277.60657610229464
287.83034960872623
297.85238817176023
307.91896457878175
317.93158243984137
328.05535733216122
338.08893158585323
348.1207534876451
358.21096827420494
369.16678787798649
379.42173191914622
3810.2587700928432
3910.3941721397983
4010.8687625790611
4111.1038137852181
4211.2329871361094
4311.3534212821534
4411.4564392373896
4511.6557745400327
4612.0424592338157
4712.3131033418548
4812.3957590630407
4912.9181281251883
5013.0139217772653
5113.6733830454473
5214.9015839005963
5315.2847136400259
5415.3605845684059
5515.3611041385723
5616.5742254073960
5717.8126857858071
5818.4060420513804
5918.7771316500654
6020.0108814138884
6120.4451644314627
6221.5311787617314
6322.0013899244736
6422.3649155424736
6522.9001809788249
6623.4277332816846
6727.7755363103518
6834.8582217574273
6937.5831180619026
7038.2686171631047
7141.7603043030867
7246.3794159395195
7354.6821208469289
7456.2972865730866
7593.2719880611973
7696.1094504114136
77102.244240970264
78153.918391829125
79251.406122616451
80500.061493998301
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t12263148363ildvrl971y86it/1vjch1226314768.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t12263148363ildvrl971y86it/1vjch1226314768.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t12263148363ildvrl971y86it/25k851226314769.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t12263148363ildvrl971y86it/25k851226314769.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