Displaying 20 results from an estimated 182 matches for "agn".
Did you mean:
ag
2003 Dec 11
1
cutree with agnes
Hi,
this is rather a (presumed) bug report than a question because I can solve
my personal statistical problem by working with hclust instead of agnes.
I have done a complete linkage clustering on a dist object dm with 30
objects with agnes (R 1.8.0 on
RedHat) and I want to obtain the partition that results from a cut at
height=0.4.
I run
> cl1a <- agnes(dm, method="complete")
> cutree(cl1a,h=0.4)
[1] 1 2 3 4 5 6...
2003 Dec 11
1
cutree with agnes
Hi,
this is rather a (presumed) bug report than a question because I can solve
my personal statistical problem by working with hclust instead of agnes.
I have done a complete linkage clustering on a dist object dm with 30
objects with agnes (R 1.8.0 on
RedHat) and I want to obtain the partition that results from a cut at
height=0.4.
I run
> cl1a <- agnes(dm, method="complete")
> cutree(cl1a,h=0.4)
[1] 1 2 3 4 5 6...
2008 Sep 02
2
cluster a distance(analogue)-object using agnes(cluster)
...ength: num 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ...
$ Petal.Width : num 0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ...
$ Species : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1
1 1 1 ...
Test.Gower <- distance(iris2, method ="mixed")
Test.Gower.agnes<-agnes(Test.Gower, diss=T)
Fehler in agnes(Test.Gower, diss = T) :
(list) Objekt kann nicht nach 'logical' umgewandelt werden
Error in agnes(Test.Gower, diss=T).
(list) object can`t be transformed to "logical"
working example only numerics used:
library(cluster)
library(...
2011 Jan 27
3
agnes clustering and NAs
Hello,
In the documentation for agnes in the package 'cluster', it says that NAs are allowed, and sure enough it works for a small example like :
> m <- matrix(c(
1, 1, 1, 2,
1, NA, 1, 1,
1, 2, 2, 2), nrow = 3, byrow = TRUE)
> agnes(m)
Call: agnes(x = m)
Agglomerative coefficient: 0.1614168
Order of objects:
[...
2013 Jun 09
1
agnes() in package cluster on R 2.14.1 and R 3.0.1
Dear R users,
I discovered something strange using the function agnes() of the cluster
package on R 3.0.1 and on R 2.14.1. Indeed, the clusterings obtained are
different whereas I ran exactly the same code.
I quickly looked at the source code of the function and I discovered that
there was an important change: agnes() in R 2.14.1 used a FORTRAN code
whereas agnes(...
2004 Feb 04
1
Clustering with 'agnes'
Hello,
I had a question regarding clustering using the agnes() function from the 'cluster' package.
I was wondering if anyone knew how I can identify cluster points after running the agnes function.
For example, I created a dataset with points randomly scattered around (0,0), (0,1) and (1,0). After clustering, the dendrogram shows all the cluste...
2011 Jun 27
3
New to R, trying to use agnes, but can't load my ditance matrix
Hi,
I'm mighty new to R. I'm using it on Windows. I'm trying to cluster using a
distance matrix I created from the data on my own and called it D10.dist. I
loaded the cluster package. Then tried the following command...
> agnes("E:D10.dist", diss = TRUE, metric = "euclidean", stand = FALSE,
> method = "average", par.method, keep.diss = n < 1000, keep.data = !diss)
And it responded...
Error in agnes("E:D10.dist", diss = TRUE, metric = "euclidean", stand =
FALSE,...
2006 Oct 23
1
Agnes Help
Hi,
I'm trying to use the cluster package and I'm having some trouble... I
always get the message:
> myagnes <- agnes("datafile.dat")
> Error: could not find function "agnes"
the package cluster is listed in the library() command, and I can reach the
help files from Agnes as well
I know that this can be some really easy thing to fix, but right now I have
no idea how to solve...
2011 Aug 31
1
agnes not working
Hello!
I created a distances matrix for 13 objects using daisy (see the attached file).
I am trying to clusteranalyse it using agnes but it's not working.
What might be the problem:
mydistances<-read.csv("Results of daisy.csv")
mycluster<-agnes(mydistances, method="ward")
I am getting:
Error in agnes(mydistances, method = "ward") :
NA/NaN/Inf in foreign function call (arg 15)
I am u...
2007 Nov 28
2
Clustering
Hello all!
I am performingsome clustering analysis on microarray data using
agnes{cluster} and I have created my own dissimilarity matrix according to a
distance measure different from "euclidean" or "manhattan" etc. My question
is, if I choose for example method="complete", how are the distances
between the elements calculated? Are they taken fo...
2005 Jan 25
4
agglomerative coefficient in agnes (cluster)
I haven't read the book, but could anyone explain more
about this parameter?
help(agnes) says that ac measures the amount of
clustering structure found. From the definition given
in help(agnes.object), however, it seems that as long
as
the dissimilarity of the merger in the final step of
the
algorithm is large enough, the ac value will be close
to
1. So what does ac really mean?...
2010 Nov 16
2
Plotting an agnes tree with images instead of labels?
...ords). I think this is possible because someone who worked in my
office before I arrived did this. However I'm not sure if this person made
the image manually or plotted it only with R.
Thanks in advance for your help.
--
View this message in context: http://r.789695.n4.nabble.com/Plotting-an-agnes-tree-with-images-instead-of-labels-tp3045682p3045682.html
Sent from the R devel mailing list archive at Nabble.com.
2005 Aug 18
3
help with unknown function
Hello
I am working on radio tracking data, with a short programme someone gave me
and ... which should, supposedly, work ... In this programme, there is the
function : getareahr(kern, levels = 95). But i cannot find any 'getareahr'
in R ...
could anyone help me?
thanks!
Agn??s
-------------------------------------------------------------------------------------------------------------------
Agn??s GAULT
graduate student
UMR 5173 MNHN-CNRS-UPMC
case postale 50
Species Conservation, Restoration and Population Survey (CERSP)
61 rue Buffon, 1er ??tage
75005 PARIS
FRANCE...
2004 May 25
0
Agnes and Hclust
Hi,
I want to know if there is a difference between the two
hierarchical methods Agnes and hclust when there are used with
the same method and the same metric on the same data! I ask
this question because I executed the following program:
hc <- hclust(dist(AGRIINSTTableFinaleCR), "ward")
agnes<-agnes(dist(AGRIINSTTableFinaleCR),method="ward")
And clusters...
2006 Dec 05
1
cluster package
Hi list,
I am doing cluster analysis using the cluster package. I created a dendrogram using the function plot(agnes(myData)). When I try to change the sise of labels, it does not work. I tried cex = 1.5, etc. Nothing worked. Can anyone give me a hint on how to change the sise of the labels, as well as the sise of axes labels.
Thanks
Mahdi
--
-----------------------------------
Mahdi Osman (PhD)
E-mail: m_os...
2007 Nov 14
0
Question about AGNES by Rousseeuw et al. in the package "cluster": How many clusters?
Dear all,
I am no stat wiz and I am just trying to use the AGNES algorithm at my
very modest level of statistical of understanding. I have difficulties
understanding the ouput from AGNES. My question is: how to interpret
the output, especially how do you I know which cluster solution is the
best? In SPSS, an Agglomeration Schedule table is produced and I used...
2009 Jun 22
1
coloring agnes plots
Hi all,
I am creating dendrograms using agnes and was wondering if it is
possible to add color to the leaves (and just the leaves).
For example, in the documentation, they have an example using the
"votes.repub" data set. If I wanted to make the word "Washington" green
(and only Washington), is it possible and if so...
2010 Apr 05
0
Agnes in Cluster Package and index.G1 in the clusterSim package questions
Dear R Users:
I am new to R and I am trying to do a cluster analysis on a
single continuous variable using the Agnes [Agglomerative Nesting (Hierarchical
Clustering) ] in the Package ‘cluster’. I was able to apply this clustering method to
my data:
ward1 <- Agnes(balances, diss= FALSE, metric =
"euclidean", stand = TRUE, method = "ward", keep.diss
=TRUE, keep.data = TRUE)
Now I am w...
2009 Jan 17
1
Dendrogram with the UPGMA method
Hi,
I am clustering objects using the agnes() function and the UPGMA
clustering method (function = "average"). Everything works well, but
apparently something is wrong with the dendrogram. For example:
x<-c(102,102.1,112.5,113,100.3,108.2,101.1,104,105.5,106.3)
y<-c(110,111,110.2,112.1,119.5,122.1,102,112,112.5,115)
xy<...
2009 Jul 30
1
stepwise variable selection method wanted
...usted easily to other metrics/methods
require(cluster)
require(ade4)
dta->dta.sic
lhs<-dta
for(j in 1:ncol(dta)){
print(paste("round", j))
as.data.frame(matrix(ncol=4, nrow=0))->testm
for(i in 0:ncol(lhs)) {
if(i == 0){
daisy(lhs, metric="gower")->d.all
agnes(lingoes(d.all),method="ward")->agnes.d.all
cophenetic(agnes.d.all)->d1
cor(d1,d.all)->cc
testm<-data.frame(varID=0,cophenC=round(cc,3),varsdel=NA,round=0)
}
else {
daisy(lhs[,-i], metric="gower")->d.all
agnes(lingoes(d.all),method=&q...