stress0: Zero-Iterations Stress

Description Usage Arguments Details Value See Also Examples

View source: R/stress0.R

Description

Computes the stress for 0 iterations based on a starting configuration provided by the user.

Usage

1
2
stress0(delta, init, type = c("interval", "ratio", "ordinal", "mspline"), 
        weightmat = NULL, ties = "primary", spline.degree = 2, spline.intKnots = 2)

Arguments

delta

Either a symmetric dissimilarity matrix or an object of class "dist"

init

An initial configuration provided by the user

weightmat

Optional matrix with dissimilarity weights

type

MDS type: "interval", "ratio", "ordinal" (nonmetric MDS), or "mspline"

ties

Tie specification (ordinal MDS only): "primary", "secondary", or "tertiary"

spline.degree

Degree of the spline for "mspline" MDS type

spline.intKnots

Number of interior knots of the spline for "mspline" MDS type

Details

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.

Value

Stress-1 value

See Also

mds

Examples

1
2
3
4
5
6
7
## rectangle starting solution
rect_constr
stress0(rectangles, init = rect_constr)

## torgerson starting solution
tstart <- torgerson(rectangles)
stress0(rectangles, init = tstart)

smacof documentation built on Feb. 11, 2021, 3 a.m.