Confidence intervals for Information Component (IC)
Source:R/lower_level_disprop_analysis.R
ci_for_ic.Rd
Mainly used in function ic
. Produces quantiles of the
posterior gamma distribution. Called twice in ic
to create
credibility intervals.
Arguments
- obs
A numeric vector with observed counts, i.e. number of reports for the selected drug-event-combination. Note that shrinkage (e.g. +0.5) is added inside the function and should not be included here.
- exp
A numeric vector with expected counts, i.e. number of reports to be expected given a comparator or background. Note that shrinkage (e.g. +0.5) is added inside the function and should not be included here.
- conf_lvl_probs
The probabilities of the posterior, based on a passed confidence level (
conf_lvl
) inic
. For instance, ifsgn_lvl = .95
inic
is used, quantiles will be extracted atsgn_lvl_probs
0.025 and 0.975.- shrinkage
A non-negative numeric value, to be added to observed and expected count. Default is 0.5.