Home » date » 2008 » Nov » 09 »

Various EDA topics - 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 04:12:16 -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/t1226229257jiszrxtv2oshlo1.htm/, Retrieved Sun, 09 Nov 2008 11:14:17 +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/t1226229257jiszrxtv2oshlo1.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 «
97.40 104.20 65.40 95.40 97.00 103.20 72.20 98.70 105.40 112.70 80.40 99.90 102.70 106.40 77.70 98.60 98.10 102.60 76.50 100.30 104.50 110.60 100.10 100.20 87.40 95.20 73.50 100.40 89.90 89.00 77.30 101.40 109.80 112.50 98.60 103.00 111.70 116.80 112.40 109.10 98.60 107.20 77.30 111.40 96.90 113.60 139.30 114.10 95.10 101.80 75.40 121.80 97.00 102.60 64.20 127.60 112.70 122.70 86.80 129.90 102.90 110.30 79.10 128.00 97.40 110.50 71.70 123.50 111.40 121.60 100.00 124.00 87.40 100.30 82.10 127.40 96.80 100.70 74.80 127.60 114.10 123.40 92.30 128.40 110.30 127.10 83.30 131.40 103.90 124.10 83.70 135.10 101.60 131.20 148.00 134.00 94.60 111.60 71.40 144.50 95.90 114.20 71.20 147.30 104.70 130.10 84.60 150.90 102.80 125.90 80.90 148.70 98.10 119.00 80.60 141.40 113.90 133.80 105.50 138.90 80.90 107.50 79.20 139.80 95.70 113.50 78.40 145.60 113.20 134.40 92.60 147.90 105.90 126.80 88.30 148.50 108.80 135.60 98.20 151.10 102.30 139.90 157.40 157.50 99.00 129.80 73.90 167.50 100.70 131.00 80.90 172.30 115.50 153.10 93.00 173.50 100.70 134.10 84.90 187.50 109.90 144.10 96.20 205.50 114.60 155.90 106.50 195.10 85.40 123.30 81.70 204.50 100.50 128.10 82.90 204.50 114.80 144.30 96.00 201.70 116.50 153.00 92.60 207.00 112.90 149.90 116.50 206.60 102.00 150.90 155.00 210.60 106.00 141.00 95.10 211.10 105.30 138.90 86.20 215.00 118.80 157.40 105.00 223.90 106.10 142.90 89.70 238.20 109.30 151.70 97.10 238.90 117.20 161.00 120.80 229.60 92.50 138.50 92.20 232.20 104.20 135.90 98.80 222.10 112.50 151.50 104.10 221.60 122.40 164.00 106.50 227.30 113.30 159.10 113.40 221.00 100.00 157.00 192.40 213.60 110.70 142.10 103.60 243.40 112.80 144.80 97.60 253.80 109.80 152.10 99.90 265.30 117.30 154.60 106.20 268.20 109.10 148.70 104.90 268.50 115.90 157.70 114.20 266.90 95.70 146.70 94.50 268.40
 
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
14.04103947023537
24.75604878023764
35.63737527578216
45.91185250154298
56.17251974480438
66.2072538211354
76.46451854355759
86.87677249878168
97.48064168370602
107.64787552199954
117.70956081228366
127.75435361587283
137.8993670632526
147.9881161734166
158.386298349093
168.73899307700836
178.7897667773383
189.96594200264079
1910.2615788258922
2011.6768205803551
2111.9553335377981
2212.0519707931940
2312.4843902534325
2413.0108159147509
2513.6430643785755
2614.0307284758347
2714.0760358538234
2815.0816505999458
2915.0882777902309
3015.8899339205674
3116.0081229380587
3216.3377918292690
3316.3830504573684
3416.466329281294
3518.0118434406908
3618.1742115724294
3719.4615792594989
3819.6257566684387
3920.3210357140386
4020.524412101805
4120.9252850609764
4223.2932375377684
4326.0434556677486
4426.7729340939689
4529.0472898862976
4631.4734240938864
4732.9319741717726
4837.0866753543346
4937.7393374631991
5038.0653385641058
5138.5555382588199
5245.4790219287071
5346.0724137488915
5465.3562398009453
5566.7129536912145
5674.8966415340184
5779.5452942893965
58101.206957604599
59119.639990653523
60141.100565887340
61156.987505043749
62214.744248106761
63281.502004609666
64371.61218083215
65450.278470396741
662005.19317692777
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226229257jiszrxtv2oshlo1/1xcxz1226229131.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226229257jiszrxtv2oshlo1/1xcxz1226229131.ps (open in new window)


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