DATA: A data matrix to compute distances between row items.
method: which distance metric should be used. method matches dist; Two additional distances are avaialble: "correlation" and "chi2". For "chi2" see chi2Dist. Default is "euclidean".
masses: a diagonal matrix (or vector) that contains the masses (for the row items).
Returns
D: Distance matrix for analysis
MW: a list item with masses and weights. Weights are not used in epMDS.