rho_bounds | R Documentation |
Calculate lower and upper the bounds for pairwise correlations
rho_bounds(R, p)
R |
Correlation matrix |
p |
Vector of marginal frequencies |
The function calculates upper and lower bounds for pairwise correlations given a vector of marginal probabilities as detailed in Emrich and Piedmonte (1991).
A list with three entries:
Matrix of lower bounds
Matrix of upper bounds
Matrix that indicates whether specified correlations in R are bigger or smaller than the calculated bounds
Jochen Kruppa, Klaus Jung
Emrich, L.J., Piedmonte, M.R.: A method for generating highdimensional multivariate binary variates. The American Statistician, 45(4), 302 (1991). \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/00031305.1991.10475828")}
For more information, please refer to the package's documentation and the tutorial: https://software.klausjung-lab.de/.
### A simple example
R <- diag(4)
p <- c(0.1, 0.2, 0.4, 0.5)
rho_bounds(R, p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.