View source: R/seqmds.stress.R
seqmds.stress | R Documentation |
Computes stress measure of multidimensional scaling data for different number of dimensions of the represented space
seqmds.stress(seqdist, mds)
seqdist |
a dissimilarity matrix or a dist object (see |
mds |
a matrix with coordinates in the represented space (dimension 1 in column 1, dimension 2 in column 2, etc.) |
A numerical vector of stress values.
Nicolas Robette
Piccarreta R., Lior O. (2010). Exploring sequences: a graphical tool based on multi-dimensional scaling, Journal of the Royal Statistical Society (Series A), Vol. 173(1), 165-184.
data(trajact)
seqact <- seqdef(trajact)
dissim <- seqdist(seqact, method="HAM")
mds <- cmdscale(dissim, k=20, eig=TRUE)
stress <- seqmds.stress(dissim, mds)
plot(stress, type='l', xlab='number of dimensions', ylab='stress')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.