similar to: cmdscale question

Displaying 20 results from an estimated 1000 matches similar to: "cmdscale question"

2008 Dec 10
1
convert dataframe to matrix for cmdscale
I have a dataframe like this (toy example): x y z "a" "a" 0 "a" "b" 1 "a" "c" 2 "b" "a" .9 "b" "b" 0 "b" "c" 1.3 "c" "a" 2.2 "c" "b" 1.1 "c" "c" 0 The observations are from a matrix like this: c 2.2 1.1 0.0 b 0.9 0.0
2002 Feb 15
1
cmdscale k=1
In applying multidimensional scaling, it seems to me that sometimes the underlying dimensionality of the matrix is 1. However I found a case where cmdscale failed when I tried k=1. Here it is: m<-matrix( c(.5,.81,.23,.47,.61, .19,.5,.06,.17,.28, .77,.94,.5,.74,.85, .53,.83,.26,.5,.64, .39,.72,.15,.36,.5), nrow=5) # BTW I think cmdscale uses only the lower triangle--how to enter only # that
2014 Nov 06
1
limit of cmdscale function
Hi We have a few questions regarding the use of the "isoMDS" function. When we run "isoMDS" function using 60,000 x 60,000 data matrix, we get the following error message: ------------------------------------ cmdscale(d, k) : invalid value of 'n' Calls: isoMDS -> cmdscale ------------------------------------ We checked the source code of "cmdscale" and
2007 Jun 14
2
Difference between prcomp and cmdscale
I'm looking for someone to explain the difference between these procedures. The function prcomp() does principal components anaylsis, and the function cmdscale() does classical multi-dimensional scaling (also called principal coordinates analysis). My confusion stems from the fact that they give very similar results: my.d <- matrix(rnorm(50), ncol=5) rownames(my.d) <-
2013 Apr 26
1
prcomp( and cmdscale( not equivalent?
Hello, I have a dilemma that I'm hoping the R gurus will be able to help resolve. For background: My data is in the form of a (dis)similarity matrix created from taking the inverse of normalized reaction times. That is, each cell of the matrix represents how long it took to distinguish two stimuli from one another-- a square matrix of 45X45 where the diagonal values are all zero (since this
2001 Jul 17
2
cmdscale in package mva (PR#1027)
Full_Name: Laurent Gautier Version: 1.3.0-patched OS: IRIX 6.5 Submission from: (NULL) (130.225.67.199) Hello, The function La.eigen, called by cmdscale in the package mva behaves an unexplicable way (for me). The following lines show what happened. I tried the very same on linux, and it worked fine. >a <- matrix(c(1,2,3,2),3,3) >a [,1] [,2] [,3] [1,] 1 2 3 [2,]
2016 Apr 25
1
how to create initial configuraton for isoMDS
Hi, I'm trying to use isoMDS to project a directed graph to 2-dim vectors, but I got an error. #here is the code to create the graph using igraph package and run isoMDS on it. library(igraph) library(MASS) g<-make_graph(c(1,2, 2,3, 2,4, 3,4, 4,5, 5,6, 3,6, 1,6, 2,5),directed=TRUE) dist<-distances(g, mode="out") loc<-isoMDS(dist) # below is content of the dist matrix
2004 Feb 26
2
Multidimensional scaling and distance matrices
Dear All, I am in the somewhat unfortunate position of having to reproduce the results previously obtained from (non-metric?) MDS on a "kinship" matrix using Statistica. A kinship matrix measures affinity between groups, and has its maximum values on the diagonal. Apparently, starting with a nxn kinship matrix, all it was needed to do was to feed it to Statistica flagging that the
2005 Jan 08
0
cmdscale problem
Dear R developers, there appears to be a small problem with function cmdscale: for non-Euclidean distance matrices, using option add=FALSE (the default), cmdscale misses the smallest eigenvalue. This affects GOF statistic g.1 (See Mardia, Kent + Bibby (1979): Multivariate Analysis, eq. (14.4.7). The corresponding formula in Cox + Cox (2001): Multidimensional Scaling, 2nd ed., p 38, would
2003 Oct 07
0
NaN values returned by cmdscale
Hello all, I'm using R1.7.1 on Linux, generating sammon-optimized MDS plots from distance matrices. This is a calculation I run routinely, often on sample sets of up to 100 samples. This time, with three samples, the sammon function returned an error (shown below), which I tracked down to the cmdscale function it uses to find a starting configuration. In short, cmdscale is returning NaN
2001 Dec 18
0
cmdscale: labels missing (PR#1220)
The function cmdscale tries to copy names from the source to the result. This only works if the source is a matrix. If m is a matrix with labels (rownames) and d is an object of class "dist" with labels, this works: cmdscale(m) ...but with this, there are no labels in the results: cmdscale(d) However, this works: cmdscale(as.matrix(d)) My suggestion is to change, in
2013 Apr 09
0
How does clusplot exactly make use of cmdscale?
Dear people, I used clusplot to plot a partition result. The partition result was from pamk with a distance object as input. Then I applied cmdscale on the same distance object for coordinates to make another scatterplot. My problem is this: the coordinates from the cmdscale calculation, though with the same shape, were different in scale and rotation from the scatter plot yielded by clusplot.
2002 Nov 23
0
Intermittant hang in cmdscale (PR#2323)
Full_Name: Cam Webb Version: 1.6.0 (fink X11 compile) OS: Mac OS X (Jaguar) Submission from: (NULL) (64.168.28.87) This is an unpredictable, intermittant hang during cmdscale of the mva library. Some data never cause a problem, other data always do, abut I can't track down the difference in the structure of the data. Sometimes the function will work for `difficult' data after it has
2005 Jun 28
1
enhanced multidimensional scaling?
Dear R list Would anyone be able to tell me whether it is possible to do "enhanced multidimensional scaling" (enhanced MDS) in R? In other words, something that goes beyond "cmdscale" by iteratively improving the fit between observed dissimilarities and inter-object distances, using the KYST algorithm (Kruskal, 1964). I have found several implementations of non-metric MDS
2004 Sep 08
8
isoMDS
Dear List: I have a question regarding an MDS procedure that I am accustomed to using. I have searched around the archives a bit and the help doc and still need a little assistance. The package isoMDS is what I need to perform the non-metric scaling, but I am working with similarity matrices, not dissimilarities. The question may end up being resolved simply. Here is a bit of substantive
2010 Jun 09
1
ordisurf (pkg vegan) gives implausible result
I'm having trouble with the ordisurf function in the vegan package. I have created an ordination plot (cmdscale) of 60 samples based on Bray-Curtis dissimilarities, and would like to overlay various soil edaphic characteristics as possible clues to the clustering I observe in my plot. However, I find that ordisurf creates a surface on the plot that is a perfect, even gradient - and
2004 Mar 26
2
Fwd: MDS problems [ajtee@ajtee.uklinux.net]
Hi all, I'm trying to perform an MDS of some data that I have. When I use cmdscale everything is fine and I get some interesting results however, the tends to be low. What I wnat to do is compare this with the Non-Metric MDS using isoMDS or sammon. However, when I try using these I get the following message. Error in isoMDS(x.dist) : zero or negative distance between objects 2 and 4
2002 Dec 19
1
newbie question on dist
hi, i have just begun using R, so please bear with me. i am trying to use cmdscale and display the result. i read the data using read.table(), calculate the proximity matrix using dist() and the display the result using the cmdscale(). this is very fine. in addition, i want the display to distinguish between two classes of records in my data. i have my data records marked as "1" or
2004 Dec 09
1
more clustering questions
Sorry to bother you kind folks again with my questions. I am trying to learn as much as I can about all this, and I will admit that I don't have the proper background, but I hope that someone can at least point me in the correct direction. I have created a test matrix for what I want to do: s1 s2 s3 s4 s5 s1 10 5 0 8 7 s2 5 10 0 0 5 s3 0 0 10 0 0 s4 8 0 0 10 0 s5 7
2002 Jan 10
1
Size of type double in object type dist (PR#1255)
The following problem occurs in R 1.4.0 and 1.3.1 for Windows95, but not in R 1.2.0 for Windows95. The problem does not occur in R 1.4.0 for Linux PC, Linux Alpha and HP-UX. Sometimes, the type of 'Size' of an object of type 'dist' changes from integer into double. Running cmdscale on such a 'dist' object gives invalid results. I don't know what should be considered