Frequentist confidence intervals about the relative risk:
binomial interval (`rr_interval_binomial`

) and Sahai and Khurshid confidence interval (`rr_interval_SK`

)

1 2 3 4 5 | ```
rr_interval_SK(x, y, S, T, conf = 0.95)
rr_interval_binomial(x, y, S, T, conf = 0.95)
rr_intervals(x, y, S, T, conf = 0.95)
``` |

`x,y` |
Observed counts |

`S,T` |
sample sizes |

`conf` |
confidence level |

The binomial interval (`rr_interval_binomial`

) is the classical
confidence interval obtained by conditionning on the sum `x+y`

of
the two counts. The same interval
is implemented in the `rateratio.test`

package.
The Sahai and Khurshid interval (`rr_interval_SK`

) is an unconditional confidence interval. See the
reference for more details and a study of its performance.

`rr_interval_binomial`

and `rr_interval_SK`

return
the bounds of the confidence interval
in a vector, `rr_intervals`

returns a list with the two confidence intervals

S. Laurent, C. Legrand: A Bayesian framework for the ratio of two Poisson rates in the context of vaccine efficacy trials. ESAIM, Probability & Statistics 16 (2012), 375–398.

1 2 3 | ```
x <- 3; y <- 10; S <- 100; T <- 100
rr_intervals(x, y, S, T)
brr_intervals(x, y, S, T)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.