sammon | R Documentation |
sammon
for S3 classWrapper to sammon
for S3 class
sammon(d, y = NULL, k = 2, ...)
d |
a distance structure such as that returned by 'dist' or a full symmetric matrix. Data are assumed to be dissimilarities or relative distances, but must be positive except for self-distance. This can contain missing values. |
y |
An initial configuration. If NULL, 'cmdscale' is used to provide the classical solution. (If there are missing values in 'd', an initial configuration must be provided.) This must not have duplicates. |
k |
The dimension of the configuration |
... |
Additional parameters passed to |
overloads MASS::sammon and adds class attributes for which there are methods. The functionality is duplicated in the stops package.
Object of class sammonE' inheriting from sammon
. This wrapper only adds an extra slot to the list with the call, adds column labels to the $points and assigns S3 classes 'sammonE', 'sammon' and 'cmdscale'. It also adds a slot obsdiss with normalized dissimilarities.
dis<-as.matrix(smacof::kinshipdelta) res<-sammon(dis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.