Skip to contents

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.

Usage

ci_for_prr(
  obs = NULL,
  n_drug = NULL,
  n_event_prr = NULL,
  n_tot_prr = NULL,
  conf_lvl_probs = 0.95
)

Arguments

obs

Number of reports for the specific drug and event (i.e. the observed count).

n_drug

Number of reports with the drug of interest.

n_event_prr

Number of reports with the event in the background.

n_tot_prr

Number of reports in the background.

conf_lvl_probs

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.

Value

The confidence interval specified by input parameters.

See also