Displaying 20 results from an estimated 1000 matches similar to: "clustering"
2003 Oct 15
2
SOM library for R
Hi.
Three years ago, I've read the question of availability of SOM library for
R using Kohonen's SOM_PAK in this mailing-list. This answer was no
availability. And no package dealing with SOM in CRAN.
Is this situation same?
Could you tell me availability this library?
Best Regards.
2009 Mar 03
1
Self-Organizing Map analysis
Dear list,
I read the SOM package manual but I don't understand how to perform (for
example) 1) the SOM analysis on Iris data 2) with a visualization similar to
that of figure 7 in
http://www.cis.hut.fi/projects/somtoolbox/package/papers/techrep.pdf
Any suggestion? Thanks in advance,
Gianandrea
--
View this message in context:
2006 Mar 16
1
about pam
Hi there,
In the description of command "pam", it mentions "For datasets larger
than (say) 200 observations". Now my dataset is a "54732 by 5" dataframe
named "test". When I try to run pam(test,4),it shows " cannot allocate
vector of length 1497768547". Is it because the row too big that it
can't handle?
Thank you!
2003 Apr 18
2
Question about PAM clustering method
Hello everyone. I just started learning R for clustering analysis in my
research project. I tried k-means method and PAM method, both of which
were properly processed with my data. I have some questions about PAM
graphical output.
Suppose to do the commands shown below;
pm<-pam(D, 6)
plot(pm)
I got two charts after prompted. In the first chart, 6 oval clusters are
drawn together
2008 Feb 22
2
Looping and Pasting
Hello R-community: Much of the time I want to use loops to look at graphs,
etc. For example,
I have 25 plots, for which the names are m.1$medoids, m.2$medoids, ...,
m.25$medoids.
I want to index the object number (1:25) as below (just to show concept).
for (i in 1:25){
plot(m.i$medoids)
}
I've tried the following, with negative results
for ...
2006 May 02
1
Cluster validation methods
Hi All,
Except the "Rand Index", "Dunn Index" and "Silhouette width", are there
other cluster validation methods in R? Could you please also specify the
function?
Thanks!
[[alternative HTML version deleted]]
2010 Aug 13
3
Delete rpart/mvpart cross-validation output
Dear all,
I was wondering if there is a simple way to avoid printing the multiple
cross-validation automatic output to the console of recursive partitionning
functions like rpart or mvpart. For example...
> data(spider)
>
mvpart(data.matrix(spider[,1:12])~herbs+reft+moss+sand+twigs+water,spider,xv="1se",xvmult=100)
*X-Val rep : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
2011 Nov 04
1
How to use 'prcomp' with CLUSPLOT?
Hello,
I have a large data set that has more columns than rows (sample data below). I am trying to perform a partitioning cluster analysis and then plot that using pca. I have tried using CLUSPLOT(), but that only allows for 'princomp' where I need 'prcomp' as I do not want to reduce my columns. Is there a way to edit the CLUSPLOT() code to use 'prcomp', please?
#
2012 Apr 23
1
change color scheme in mvpart
Hello everyone, I am currently using the mvpart package and would like to change the color scheme it uses, and was hoping someone could help me out. All of the papers I have found have used a grayscale but I can't seem to figure out how they did that! Currently, mvpart plots barplots in a repeating sequence of 3 shades of blue. So if you have 6 response variables the same shade of blue is used
2008 Mar 06
2
Clustering large data matrix
Hello,
I have a large data matrix (68x13112), each row corresponding to one
observation (patients) and each column corresponding to the variables
(points within an NMR spectrum). I would like to carry out some kind of
clustering on these data to see how many clusters are there. I have
tried the function clara() from the package cluster. If I use the matrix
as is, I can perform the clara
2010 Feb 26
2
Error in mvpart example
Dear all,
I'm getting an error in one of the stock examples in the 'mvpart' package. I tried:
require(mvpart)
data(spider)
fit3 <- rpart(gdist(spider[,1:12],meth="bray",full=TRUE,sq=TRUE)~water+twigs+reft+herbs+moss+sand,spider,method="dist") #directly from ?rpart
summary(fit3)
...which returned the following:
Error in apply(formatg(yval, digits - 3), 1,
2009 Mar 23
1
mvpart error
Hello all,
When attempting a classification tree using mvpart, I get the following
error:
> thesis2.mvp=mvpart(bat_sp~., data=alltrees.df)
Error in all(keep) :
unused argument(s) (c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE,
2006 Apr 10
2
passing known medoids to clara() in the cluster package
Greetings,
I have had good success using the clara() function to perform a simple cluster
analysis on a large dataset (1 million+ records with 9 variables).
Since the clara function is a wrapper to pam(), which will accept known medoid
data - I am wondering if this too is possible with clara() ... The
documentation does not suggest that this is possible.
Essentially I am trying to
2011 Sep 13
1
mvpart analyses with covariables
Hi all,
I am fairly new to R and I am trying to run mvpart and create a MRT using
explanatory variables and covariables. I've been following the procedures in
Numerical Ecoogy with R.
The command (no covariables) which works fine -
ABUNDTMRT <- mvpart(abundance ~
.,factors,margin=0.08,cp=0,xv="1se",xval=nrow(abundance),xvmult=100,which=4)
where abundance is 4th root
2008 Dec 17
1
bug (?!) in "pam()" clustering from fpc package ?
Hello all.
I wish to run k-means with "manhattan" distance.
Since this is not supported by the function "kmeans", I turned to the "pam"
function in the "fpc" package.
Yet, when I tried to have the algorithm run with different starting points,
I found that pam ignores and keep on starting the algorithm from the same
starting-points (medoids).
For my
2010 Sep 07
1
Multivariate Regression Trees: how to identify sample units?
Dear friends,
I am sudying the mvpart package, that implements Multivariate
Regression Trees, aiming at applying it to a biogeographical dataset of
tree speces in southern South America.
My doubt is how to access plot identities after the tree is produced.
For us it is rather important, but I could not find them with neither
'summary(fit)'[where fit is the object containing the
2006 Mar 08
1
function gdist, dist and vegdist in mvpart
Dear R community,
I am analyzing plant communities with the function mvpart, using a
dissimilarit matrix as input. The matrix is calculated with the funtion
gdist.
fit <- mvpart(gdist (ba12[,18:29], meth="maximum", full=TRUE,
sq=F) ~ beers + slope_dem + elev_dem+ plc_dem + pr_curv+
+curv+max_depth+doc_rocks+ abandon+land_use+ca_old,
data=ba12, xv="p")
This
2006 Apr 01
1
reference paper about SOM
Hi All,
I'm looking for some reference paper about SOM (self organizing map)
algorithm. I tried the paper which is mentioned in
the help page of function "som (package:som)":
http://www.cis.hut.fi/research/papers/som_tr96.ps.Z
But I can't open it for some reason. Could you please help me with it ?
Thanks a lot!
[[alternative HTML version deleted]]
2006 Jul 17
1
use "factor" for categorical covariate in Cox PH model
Hi All,
I'm learning the R codes for Cox PH modeling. Could I ask you what the
function of "factor" in modeling? Thank you!
When dealing with the categorical covariates (for example 3 groups), it
will come out different results if we add the command "factor" in front
of the categorical covariate or not: if we don't add "factor", there is
only one
2011 Dec 06
1
Problem with clusplot
Dear all
I'm trying to run a cluster analysis with R
Here are the commands:
mydata <- na.omit(matrix) # listwise deletion of missing
mydata <- scale(matrix) # standardize variables
fit <- kmeans(mydata, 8) # 8 cluster solution
# get cluster means
aggregate(mydata,by=list(fit$cluster),FUN=mean)
# append cluster assignment
mydata <- data.frame(mydata, fit$cluster)