Home » date » 2008 » Nov » 21 »

*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: Fri, 21 Nov 2008 10:22:54 -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/21/t1227288238ih9tt56c6rzmmpv.htm/, Retrieved Fri, 21 Nov 2008 17:23:58 +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/21/t1227288238ih9tt56c6rzmmpv.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 «
11947.20 3423.40 12300.00 11714.10 3242.80 12092.80 12192.50 3277.20 12380.80 11268.80 3833.00 12196.90 9097.40 2606.30 9455.00 12639.80 3643.80 13168.00 13040.10 3686.40 13427.90 11687.30 3281.60 11980.50 11191.70 3669.30 11884.80 11391.90 3191.50 11691.70 11793.10 3512.70 12233.80 13933.20 3970.70 14341.40 12778.10 3601.20 13130.70 11810.30 3610.00 12421.10 13698.40 4172.10 14285.80 11956.60 3956.20 12864.60 10723.80 3142.70 11160.20 13938.90 3884.30 14316.20 13979.80 3892.20 14388.70 13807.40 3613.00 14013.90 12973.90 3730.50 13419.00 12509.80 3481.30 12769.60 12934.10 3649.50 13315.50 14908.30 4215.20 15332.90 13772.10 4066.60 14243.00 13012.60 4196.80 13824.40 14049.90 4536.60 14962.90 11816.50 4441.60 13202.90 11593.20 3548.30 12199.00 14466.20 4735.90 15508.90 13615.90 4130.60 14199.80 14733.90 4356.20 15169.60 13880.70 4159.60 14058.00 13527.50 3988.00 13786.20 13584.00 4167.80 14147.90 16170.20 4902.20 16541.70 13260.60 3909.40 13587.50 14741.90 4697.60 15582.40 15486.50 4308.90 15802.80 13154.50 4420.40 14130.50 12621.20 3544.20 12923.20 15031.60 4433.00 15612.20 15452.40 4479.70 16033.70 15428.00 4533.20 16036.60 13105.90 4237.50 14037.80 14716.80 4207.40 15330.60 14180.00 4394.00 15038.30 16202.20 5148.40 17401.80 14392.40 4202.20 14992.50 15140.60 4682.50 16043.70 15960.10 4884.30 16929.60 14351.30 5288.90 15921.30 13230.20 4505.20 14417.20 15202.10 4611.50 15961.00 17157.30 5081.10 17851.90 16159.10 4523.10 16483.90 13405.70 4412.80 14215.50 17224.70 4647.40 17429.70 17338.40 4778.60 17839.50 17370.60 4495.30 17629.20
 
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
158.8729139757833
271.3796889878341
380.0403648167603
483.6150106141234
5100.792445908091
6121.798891620572
7125.150069916082
8135.623670500397
9149.442095809716
10170.763679975343
11190.009841850364
12191.672585415860
13199.89829914234
14207.233998175975
15210.731250648783
16251.974593153570
17253.234418514006
18267.655720944961
19282.879656391194
20287.888224837348
21290.209355466014
22341.899488154048
23345.201057669090
24352.784948658529
25357.21805787034
26360.761015077849
27363.050870074737
28383.641577517348
29392.680881666245
30443.864905025195
31548.478861594952
32571.270450835997
33581.558481809988
34585.976917785901
35608.01978586227
36632.160129724235
37642.886134365859
38666.958226427777
39700.040271060167
40713.685381017474
41893.954512908427
421060.98916492270
431072.80352467187
441089.61183145671
451177.53254740611
461447.22537256197
471625.68516796945
481968.03073310601
492024.67027961783
502112.43457532737
512832.07038734833
523964.85128236961
534208.12007657897
546160.60497568623
556947.41051606335
568441.3301180984
5714286.1809364894
5829735.2824558029
5972382.460959145
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/21/t1227288238ih9tt56c6rzmmpv/16umm1227288170.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/21/t1227288238ih9tt56c6rzmmpv/16umm1227288170.ps (open in new window)


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