Home » date » 2008 » Nov » 11 »

*Unverified author*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Tue, 11 Nov 2008 13:17:55 -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/11/t1226434925lnv9zq71qqhexp2.htm/, Retrieved Tue, 11 Nov 2008 20:22: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/11/t1226434925lnv9zq71qqhexp2.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 «
98.1 98.6 101.1 98 111.1 106.8 93.3 96.7 100 100.2 108 107.7 70.4 92 75.4 98.4 105.5 107.4 112.3 117.7 102.5 105.7 93.5 97.5 86.7 99.9 95.2 98.2 103.8 104.5 97 100.8 95.5 101.5 101 103.9 67.5 99.6 64 98.4 106.7 112.7 100.6 118.4 101.2 108.1 93.1 105.4 84.2 114.6 85.8 106.9 91.8 115.9 92.4 109.8 80.3 101.8 79.7 114.2 62.5 110.8 57.1 108.4 100.8 127.5 100.7 128.6 86.2 116.6 83.2 127.4 71.7 105 77.5 108.3 89.8 125 80.3 111.6 78.7 106.5 93.8 130.3 57.6 115 60.6 116.1 91 134 85.3 126.5 77.4 125.8 77.3 136.4 68.3 114.9 69.9 110.9 81.7 125.5 75.1 116.8 69.9 116.8 84 125.5 54.3 104.2 60 115.1 89.9 132.8 77 123.3 85.3 124.8 77.6 122 69.2 117.4 75.5 117.9 85.7 137.4 72.2 114.6 79.9 124.7 85.3 129.6 52.2 109.4 61.2 120.9 82.4 134.9 85.4 136.3 78.2 133.2 70.2 127.2 70.2 122.7 69.3 120.5 77.5 137.8 66.1 119.1 69 124.3 79.2 134.4 56.2 121.1 63.3 122.2 77.8 127.7 92 137.4 78.1 132.2 65.1 129.2 71.1 124.9
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Summary of Dendrogram
LabelHeight
10.82462112512353
20.921954445729296
31.00498756211209
41.10453610171872
51.14017542509913
61.16619037896906
71.17046999107197
81.4142135623731
91.43178210632763
101.47648230602334
111.62788205960996
121.65529453572469
131.73458719578267
141.76918060129541
151.94164878389476
161.96977156035922
172.00000000000000
182.16333076527839
192.34615395291672
202.37400388772340
212.45967477524977
222.46981780704569
232.51793566240283
242.56460717060354
252.66833281282527
262.82842712474619
272.87568186013709
282.8813658765197
293.0413812651491
303.12002486528499
313.34286420142828
323.4928498393146
333.70000000000000
343.96064341423952
354.35660418215838
364.45533388198908
374.52483772222214
384.58703311186446
394.84658438878933
405.00099990001999
415.06739052216257
425.19116450095807
435.43686786184238
445.63501072255688
455.96405902049937
466.39038585731383
476.59381489130811
487.05761999543756
497.08387594524669
507.13933410483038
517.14997625373978
527.3025303176202
537.4016805900942
547.58885977071102
557.65924438634794
567.95983298127758
578.50021693152008
589.28683891342324
599.8043682780299
6010.2236408345506
6111.2167210440661
6211.5054230199636
6311.7209214654821
6412.7344250300822
6513.5225706199227
6614.4358872001098
6716.4716310662616
6816.6049963828214
6917.8695730943227
7018.7520495770721
7126.6897761887862
7228.5773569819621
7329.7434794530085
7432.1626239138844
7536.6587999790875
7641.9831924484983
7757.5835498566356
7862.971859867484
7977.0964785677452
8082.716741676011
8189.7331766015637
82203.650845020251
83340.920650788671
84509.721820395504
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226434925lnv9zq71qqhexp2/1ozxf1226434670.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226434925lnv9zq71qqhexp2/1ozxf1226434670.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226434925lnv9zq71qqhexp2/27k5n1226434670.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226434925lnv9zq71qqhexp2/27k5n1226434670.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