Sammon Mapping SMACOF
An implementation to minimize Sammon stress by majorization with ratio and interval optimal scaling. Uses a repeat loop.
sammonmap( delta, type = c("ratio", "interval"), weightmat, init = NULL, ndim = 2, acc = 1e-06, itmax = 10000, verbose = FALSE, principal = FALSE )
delta
: dist object or a symmetric, numeric data.frame or matrix of distancestype
: what type of MDS to fit. Currently one of "ratio" and "interval". Default is "ratio".weightmat
: a matrix of finite weightsinit
: starting configurationndim
: dimension of the configuration; defaults to 2acc
: numeric accuracy of the iteration. Default is 1e-6.itmax
: maximum number of iterations. Default is 10000.verbose
: should iteration output be printed; if > 1 then yesprincipal
: If 'TRUE', principal axis transformation is applied to the final configurationa 'smacofP' object (inheriting from smacofB, see smacofSym
). It is a list with the components
dis<-smacof::kinshipdelta res<-sammonmap(as.matrix(dis),itmax=1000) res summary(res) plot(res)
rStressMin
Useful links