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, |
k |
The dimension of the configuration |
... |
Additional parameters passed to |
Overloads MASS::sammon and adds new slots and class attributes for which there are methods.
Object of class 'sammonx' inheriting from sammon
. This wrapper adds an extra slot to the list with the call, adds column labels to the $points, adds slots conf=points, delta=d, dhat=normalized dissimilarities, confdist=distance between points in conf, stress.m=stress, stress=sqrt(stress.m) and assigns S3 classes 'sammonx', 'sammon' and 'cmdscalex'.
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.