Mainly for use in ror
. Produces (symmetric,
normality based) confidence bounds for the ROR, for a passed probability.
Called twice in ror
to create confidence intervals.
ci_for_ror(a, b, c, d, conf_lvl_probs)
The credibility interval specified by input parameters.
Number of reports for the specific drug and event (i.e. the observed count).
Number of reports with the drug, without the event
Number of reports without the drug, with the event
Number of reports without the drug, without the event
The probabilities of the normal distribution, based on
a passed confidence level (conf_lvl
) in ror
. If
sgn_lvl = .95
in ror
, quantiles of the normal distribution will
be extracted at sgn_lvl_probs
of 0.025 and 0.975.
ror