validation.ordPmat: Validates matrix of ordinal probabilities
Description
Validates the range of input matrix of marginal probabilities. It also counts the ordinal categories for each variable.
Usage
validation.ordPmat(ordPmat)
Value
J
Number of ordinal variables
K
Vector of number of categories for each variable
Arguments
ordPmat
Matrix of marginal probabilities.
Details
Number of columns of input matrix is the number of variables and each column contains probability
of each category within each variable. Any probability with 0 value must be entered at the end of corresponding column.
For example if a column contains c(0.3,0.5,0.2,0), then it is assumed that particular variable has only
3 (1, 2 and 3) categories.