c_inequality function

c-inequality Calculates c-inequality (as in an economic measure of inequality) as Pearsons coefficient of variation of the fitted distance matrix. This can help with avoiding degenerate solutions. This is one of few c-structuredness indices not between 0 and 1, but 0 and infinity.

c-inequality Calculates c-inequality (as in an economic measure of inequality) as Pearsons coefficient of variation of the fitted distance matrix. This can help with avoiding degenerate solutions. This is one of few c-structuredness indices not between 0 and 1, but 0 and infinity.

c_inequality(confs, ...)

Arguments

  • confs: a numeric matrix or data frame
  • ...: additional arguments (don't do anything)

Returns

a numeric value; inequality (Pearsons coefficient of variation of the fitted distance matrix)

Examples

x<-1:10 y<-2+3*x+rnorm(10) z<- sin(y-x) confs<-cbind(z,y,x) c_inequality(confs)