makeDistancesAndWeights function

Makes distances and weights for MDS analyses (see epMDS).

Makes distances and weights for MDS analyses (see epMDS).

makeDistancesAndWeights(DATA, method = "euclidean", masses = NULL)

Arguments

  • 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.

Author(s)

Derek Beaton

See Also

link{computeMW}, link{epMDS}, link{coreMDS}

  • Maintainer: Derek Beaton
  • License: GPL-2
  • Last published: 2019-01-07

Useful links