seqhandbook (version 0.1.0)

seqmds.stress: Stress measure of multidimensional scaling factors

Description

Computes stress measure of multidimensional scaling data for different number of dimensions of the represented space

Usage

seqmds.stress(seqdist, mds)

Value

A numerical vector of stress values.

Arguments

seqdist

a dissimilarity matrix or a dist object (see dist)

mds

a matrix with coordinates in the represented space (dimension 1 in column 1, dimension 2 in column 2, etc.)

Author

Nicolas Robette

References

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.

Examples

Run this code
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')

Run the code above in your browser using DataCamp Workspace