dissim function

Normalized dissimilarity measure

Normalized dissimilarity measure

Compute the normalized dissimilarity measure between observed relative frequencies and estimated (theoretical) probabilities of a discrete distribution.

dissim(proba,probb)

Arguments

  • proba: Vector of observed relative frequencies
  • probb: Vector of estimated (theoretical) probabilities

Returns

Numeric value of the dissimilarity index, assessing the distance to a perfect fit.

Examples

proba<-c(0.01,0.03,0.08,0.07,0.27,0.37,0.17) probb<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24) dissim(proba,probb)
  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links