seqmds.stress: Stress measure of multidimensional scaling factors

View source: R/seqmds.stress.R

seqmds.stressR Documentation

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)

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.)

Value

A numerical vector of stress values.

Author(s)

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

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')

nicolas-robette/seqhandbook documentation built on April 9, 2023, 7:08 a.m.