Description Usage Arguments Details Value Examples

Pearson's correlation between two binary outcomes takes values between two bounds defined according to the probabilities of the binary outcomes. This function calculates the lower bound of the correlation based on the probabilities of two binary outcomes.

1 | ```
lower_corr(p_e1, p_e2)
``` |

`p_e1` |
numeric parameter, probability of the event E1 |

`p_e2` |
numeric parameter, probability of the event E2 |

lower_corr returns a numeric value between -1 and 0.

Returns the minimum value that the correlation between the two outcomes can take.

1 | ```
CompAREdesign::lower_corr(p_e1=0.1, p_e2=0.6)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.