`dissimilarity_to_distance` - error if number of OTUs > number of samples
vmikk opened this issue · comments
Vladimir Mikryukov commented
It seems that dissimilarity_to_distance
function (which transforms non-metric dissimilarity matrix to a weighted Euclidean distance) works only with data where number of samples > number of species.
Otherwise, smacof::smacofConstraint
returns error "For C diagonal the number of dimensions needs to match the number of covariates!
".
This function is based on code from Greenacre 2017 (DOI:10.1002/ecy.1937)