Description Usage Arguments Value References Examples
This function computes the tetrachoric correlation given the correlation for a pair of binary variables (phi coefficient).
1 | corr.nn4bb(p1, p2, BB.cor)
|
p1 |
Probability parameter for the first binary variable. |
p2 |
Probability parameter for the second binary variable. |
BB.cor |
Pre-specified correlation for a pair of binary variables. |
A tetrachoric correlation coefficient.
Demirtas, H. & Doganay, B. (2012). Simultaneous generation of binary and normal data with specified marginal and association structures. Journal of Biopharmaceutical Statistics, 22(2), 223-236.
1 2 3 4 | ## Not run:
corr.nn4bb(0.43, 0.7, 0.129)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.