Usage
moverci(x1, n1, x2 = NULL, n2 = NULL, a1 = 0.5, b1 = 0.5, a2 = 0.5,
b2 = 0.5, cc = 0, level = 0.95, distrib = "bin", contrast = "RD",
type = "jeff", adj = FALSE, ...)
Arguments
x1, x2
Numeric vectors of numbers of events in group 1 & group 2
respectively.
n1, n2
Numeric vectors of sample sizes (for binomial rates) or exposure
times (for Poisson rates) in each group.
a1, b1, a2, b2
Numbers defining the Beta(ai,bi) prior distributions for
each group (default ai = bi = 0.5 for Jeffreys method). Gamma priors for
Poisson rates require only a1, a2.
cc
Number or logical specifying (amount of) continuity correction
(default 0).
level
Number specifying confidence level (between 0 and 1, default
0.95).
distrib
Character string indicating distribution assumed for the input
data: "bin" = binomial (default), "poi" = Poisson.
contrast
Character string indicating the contrast required: "RD"
(default), "RR", or "OR". "p" gives an interval for the single proportion
x1/n1.
type
Character string indicating the method used for the intervals for
the individual group rates. "jeff" = Jeffreys equal-tailed intervals
(default), "exact" = Clopper-Pearson exact intervals (also obtained using
type = "jeff" with cc = 0.5), "wilson" = Wilson score intervals (as per
Newcombe 1998). NB: "wilson" option is included only for legacy validation
against previous published method by Newcombe. It is not recommended, as
type="jeff" achieves much better coverage properties.
adj
Logical (default FALSE) indicating whether to apply the boundary
adjustment for Jeffreys intervals recommended on p108 of Brown et al.
(type = "jeff" only: set to FALSE if using informative priors)