Description Usage Arguments Value See Also Examples
View source: R/find.binary.prob.R
Collapses the ordinal categories to binary ones and counts the number of categories in each variable.
1 | 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 |
1 2 3 4 5 6 7 8 9 | ## 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.