powered by
Collapses the ordinal categories to binary ones and counts the number of categories in each variable.
find.binary.prob(ordPmat)
Vector of binary probabilities
Vector of points where ordinal variables will be dichotomized
Input matrix of ordinal marginal probabilities.
validation.ordPmat
if (FALSE) { ordPmat1 = matrix( c(0.15,0.70,0.40, 0.55,0.10,0.25, 0.25,0.10,0.15, 0.05,0.10,0.20),4,3,byrow=TRUE) find.binary.prob(ordPmat1) }
Run the code above in your browser using DataLab