A function to run curvilinear distance analysis via CCA
and returning a 'smacofP' object. Note this functionality is rather rudimentary.
clda(
delta,
Epochs = 20,
alpha0 = 0.5,
lambda0,
ndim = 2,
weightmat = 1 - diag(nrow(delta)),
init = NULL,
acc = 1e-06,
itmax = 10000,
verbose = 0,
method = "euclidean",
principal = FALSE,
epsilon,
k,
path = "shortest",
fragmentedOK = FALSE
)
a 'smacofP' object. It is a list with the components
delta: Observed, untransformed dissimilarities
tdelta: Observed explicitly transformed dissimilarities, normalized
dhat: Explicitly transformed dissimilarities (dhats), optimally scaled and normalized
confdist: Configuration dissimilarities
conf: Matrix of fitted configuration
stress: Default stress (stress-1; sqrt of explicitly normalized stress)
spp: Stress per point
ndim: Number of dimensions
model: Name of model
niter: Number of iterations (training length)
nobj: Number of objects
type: Type of MDS model. Only ratio here.
weightmat: weighting matrix as supplied
stress.m: Default stress (stress-1^2)
tweightmat: transformed weighting matrix; it is weightmat here.
dist object or a symmetric, numeric data.frame or matrix of distances. Will be turne dinto geodesci distances.
Scalar; gives the number of passes through the data.
(scalar) initial step size, 0.5 by default
the boundary/neighbourhood parameter(s) (called lambda_y in the original paper). It is supposed to be a numeric scalar. It defaults to the 90% quantile of delta.
dimension of the configuration; defaults to 2
not used
starting configuration, not used
numeric accuracy of the iteration; not used
maximum number of iterations. Not used.
should iteration output be printed; not used
Distance calculation; currently not used.
If 'TRUE', principal axis transformation is applied to the final configuration
Shortest dissimilarity retained.
Number of shortest dissimilarities retained for a point. If both 'epsilon' and 'k' are given, 'epsilon' will be used.
Method used in 'stepacross' to estimate the shortest path, with alternatives '"shortest"' and '"extended"'.
What to do if dissimilarity matrix is fragmented. If 'TRUE', analyse the largest connected group, otherwise stop with error.
This implements CLDA as CLCA with geodesic distances. The geodesic distances are calculated via 'vegan::isomapdist', see isomapdist
for a documentation of what these distances do. 'clda' is just a wrapper for 'clca' applied to the geodesic distances obtained via isomapdist.
dis<-smacof::morse
res<-clda(dis,lambda0=0.4,k=4)
res
summary(res)
plot(res)
Run the code above in your browser using DataLab