metagMisc icon indicating copy to clipboard operation
metagMisc copied to clipboard

`dissimilarity_to_distance` - error if number of OTUs > number of samples

Open vmikk opened this issue 3 years ago • 0 comments

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)

vmikk avatar Aug 11 '20 11:08 vmikk