| cmdscale {smacofx} | R Documentation |
Wrapper to cmdscale for S3 class
Description
Wrapper to cmdscale for S3 class
Usage
cmdscale(d, k = 2, eig = FALSE, ...)
Arguments
d |
a distance structure such as that returned by 'dist' or a full symmetric matrix containing the dissimilarities |
k |
the maximum dimension of the space which the data are to be represented in |
eig |
indicates whether eigenvalues should be returned. Defaults to TRUE. |
... |
additional parameters passed to cmdscale. See |
Details
overloads stats::cmdscale turns on the liosting and adds slots and class attributes for which there are methods.
Value
Object of class 'cmdscalex' and 'cmdscale' extending cmdscale. This wrapper always returns the results of cmdscale as a list, adds column labels to the $points and adds extra elements (conf=points, delta=d, confdist=dist(conf), dhat=d) and the call to the list, and assigns S3 class 'cmdscalex' and 'cmdscale'.
Examples
dis<-as.matrix(smacof::kinshipdelta)
res<-cmdscale(dis)