LimitforOO function

Finds the feasible correlation range for a pair of ordinal variables

Finds the feasible correlation range for a pair of ordinal variables

The function computes the lower and upper bounds of correlation between two ordinal variables via the method of Demirtas and Hedeker (2011).

LimitforOO(pvec1, pvec2) Limit_forOO(pvec1, pvec2) #deprecated

Arguments

  • pvec1: A vector of marginal probabilities for the first ordinal variable.
  • pvec2: A vector of marginal probabilities for the second ordinal variable.

Returns

A vector of two elements. The first element is the lower bound and the second element is the upper bound.

References

Demirtas, H., Hedeker, D. (2011). A practical way for computing approximate lower and upper correlation bounds. The American Statistician, 65(2) , 104-109.

Examples

pvec1 = cumsum( c(0.30, 0.40) ) pvec2=cumsum(c(0.4, 0, 0.3) ) # The second category is skipped in this setting LimitforOO(pvec1, pvec2)
  • Maintainer: Ran Gao
  • License: GPL
  • Last published: 2021-03-05

Useful links