ci_oddsratio | R Documentation |

This function calculates a CI for the odds ratio in a 2x2 table/matrix or a
data frame with two columns. The CI is obtained through `stats::fisher.test()`

.
Bootstrap CIs are not available.

```
ci_oddsratio(x, probs = c(0.025, 0.975))
```

`x` |
A 2x2 matrix/table of counts, or a |

`probs` |
Lower and upper probabilities, by default |

An object of class "cint", see `ci_mean()`

for details.

`oddsratio()`

.

```
x <- cbind(c(10, 5), c(4, 4))
ci_oddsratio(x)
```

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.