Description Usage Arguments Value Author(s)
Confidence intervals for the single binomial or Poisson rate. Including SCAS or Jeffreys intervals, with or without continuity correction, and 'exact' Clopper-Pearson/Garwood or mid-p intervals.
1 |
x |
Numeric vector of number of events. |
n |
Numeric vector of sample size (for binomial rate) or exposure times (for Poisson rate). |
distrib |
Character string indicating distribution assumed for the input data: "bin" = binomial (default), "poi" = Poisson. |
level |
Number specifying confidence level (between 0 and 1, default 0.95). |
cc |
Number or logical (default FALSE) specifying continuity correction. |
precis |
Number (default 6) specifying precision (i.e. number of decimal places) to be used in optimisation subroutine for the SCAS and exact methods. |
A list containing, for each method, a matrix containing lower and upper confidence limits for each value of x and n. Methods shown depend on the cc parameter, which specifies whether the continuity correction is applied to the SCAS and Jeffreys methods. The corresponding 'exact' method is Clopper-Pearson/Garwood if cc == TRUE and mid-p if cc == FALSE.
Pete Laud, p.j.laud@sheffield.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.