stress0 {smacof} | R Documentation |
Computes the stress for 0 iterations based on a starting configuration provided by the user.
stress0(delta, init, type = c("interval", "ratio", "ordinal", "mspline"), weightmat = NULL, ties = "primary", spline.degree = 2, spline.intKnots = 2)
delta |
Either a symmetric dissimilarity matrix or an object of class |
init |
An initial configuration provided by the user |
weightmat |
Optional matrix with dissimilarity weights |
type |
MDS type: |
ties |
Tie specification (ordinal MDS only): |
spline.degree |
Degree of the spline for |
spline.intKnots |
Number of interior knots of the spline for |
Computes stress-1 for a particular starting configuration the user needs to provide. It can also be helpful if the user wants to move some points in a particular configuration such that it fits some theoretical expectations.
Stress-1 value
## rectangle starting solution rect_constr stress0(rectangles, init = rect_constr) ## torgerson starting solution tstart <- torgerson(rectangles) stress0(rectangles, init = tstart)