Confidence intervals for Reporting Odds Ratio
Source:R/lower_level_disprop_analysis.R
ci_for_ror.Rd
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.
Arguments
- a
Number of reports for the specific drug and event (i.e. the observed count).
- b
Number of reports with the drug, without the event
- c
Number of reports without the drug, with the event
- d
Number of reports without the drug, without the event
- conf_lvl_probs
The probabilities of the normal distribution, based on a passed confidence level (
conf_lvl
) inror
. Ifsgn_lvl = .95
inror
, quantiles of the normal distribution will be extracted atsgn_lvl_probs
of 0.025 and 0.975.