Confidence intervals for Proportional Reporting Rate
Source:R/lower_level_disprop_analysis.R
ci_for_prr.Rd
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
) inprr
. Ifsgn_lvl = .95
inprr
, quantiles of the normal distribution will be extracted atsgn_lvl_probs
of 0.025 and 0.975.