View source: R/binary_multiESS.R
bin_corr | R Documentation |
Correlation between binary variables#'
bin_corr(pij, pi, pj)
pij |
joint probability. |
pi |
marginal probability of the first variable. |
pj |
marginal probability of the second variable. |
correlation coefficient.
bin_corr(pij = 0.1, pi = 0.1, pj = .2)
bin_corr(pij = 0.0, pi = .2, pj = .2)
# bin_corr(pij = 0.5, pi = .2, pj = .2) ## Error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.