View source: R/find.binary.prob.R
find.binary.prob | R Documentation |
Collapses the ordinal categories to binary ones and counts the number of categories in each variable.
find.binary.prob(ordPmat)
ordPmat |
Input matrix of ordinal marginal probabilities. |
p |
Vector of binary probabilities |
Mlocation |
Vector of points where ordinal variables will be dichotomized |
validation.ordPmat
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.