Dual and primal approach for spherical SMACOF.
smacofSphere(delta, ndim = 2, type = c("ratio", "interval", "ordinal","mspline"),
algorithm = c("dual", "primal"), weightmat = NULL,
init = "torgerson", ties = "primary", verbose = FALSE, penalty = 100,
relax = FALSE, modulus = 1, itmax = 1000, eps = 1e-6,
spline.degree = 2, spline.intKnots = 2)
Observed dissimilarities
Observed dissimilarities, normalized
Dual SMACOF: Observed dissimilarities
Dual SMACOF: Restriction matrix
Configuration dissimilarities
Matrix with fitted configurations
Stress per point
Matrix with squared residuals
Residual sum-of-squares
Stress-1 value
Starting configurations
Number of dimensions
Dummy vector of restriction matrix
Type of smacof model
Number of iterations
Number of objects
Either a symmetric dissimilarity matrix or an object of class dist
Number of dimensions
MDS type: "interval"
, "ratio"
, or "ordinal"
(nonmetric MDS)
Algorithm type (see details)
Optional matrix with dissimilarity weights
Either "torgerson"
(classical scaling starting solution), "random"
(random configuration), or a user-defined matrix
Tie specification for non-metric MDS only
If TRUE
, intermediate stress is printed out
Penalty parameter for dual algorithm (larger 0), see details
If TRUE
, block relaxation is used for majorization (dual algorithm)
Number of smacof iterations per monotone regression call
Maximum number of iterations
Convergence criterion
Degree of the spline for "mspline"
MDS type
Number of interior knots of the spline for "mspline"
MDS type
Jan de Leeuw and Patrick Mair
For large scale problems it is suggested to use the dual algorithm. Using the penalty parameter (dual algorithm), the user allow for slight point deviations from the circle (the higher the penalty, the stricter the algorithm is in terms of placing points in the sphere, see examples section below).
De Leeuw, J. & Mair, P. (2009). Multidimensional scaling using majorization: The R package smacof. Journal of Statistical Software, 31(3), 1-30, tools:::Rd_expr_doi("10.18637/jss.v031.i03")
smacofRect
, smacofIndDiff
, smacofSym
,smacofConstraint
## spherical SMACOF solution for trading data
## dual algorithm
res <- smacofSphere(trading, type = "ordinal")
res
plot(res)
## lower penalty
res <- smacofSphere(trading, penalty = 20, type = "ordinal")
res
plot(res)
## primal algorithm, interval
res <- smacofSphere(trading, type = "interval", algorithm = "primal")
res
Run the code above in your browser using DataLab