Learn R Programming

MultiOrd (version 2.4.4)

find.binary.prob: Collapses the ordinal categories to binary ones

Description

Collapses the ordinal categories to binary ones and counts the number of categories in each variable.

Usage

find.binary.prob(ordPmat)

Value

p

Vector of binary probabilities

Mlocation

Vector of points where ordinal variables will be dichotomized

Arguments

ordPmat

Input matrix of ordinal marginal probabilities.

See Also

validation.ordPmat

Examples

Run this code
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