Mainly for use in prr
. Produces (symmetric,
normality based) confidence bounds for the PRR, for a passed probability.
Called twice in prr
to create confidence intervals.
ci_for_prr(
obs = NULL,
n_drug = NULL,
n_event_prr = NULL,
n_tot_prr = NULL,
conf_lvl_probs = 0.95
)
The confidence 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 of interest.
Number of reports with the event in the background.
Number of reports in the background.
The probabilities of the normal distribution, based on
a passed confidence level (conf_lvl
) in prr
. If
sgn_lvl = .95
in prr
, quantiles of the normal distribution will
be extracted at sgn_lvl_probs
of 0.025 and 0.975.
prr