LimitforOO: Finds the feasible correlation range for a pair of ordinal...

Description Usage Arguments Value References Examples

View source: R/LimitforOO.R

Description

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

Usage

1
2
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.

Value

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

1
2
3
	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)

OrdNor documentation built on March 6, 2021, 1:08 a.m.