ci_for_ic {pvda}R Documentation

Confidence intervals for Information Component (IC)

Description

Mainly used in function ic. Produces quantiles of the posterior gamma distribution. Called twice in ic to create credibility intervals.

Usage

ci_for_ic(obs, exp, conf_lvl_probs, shrinkage)

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) in ic. For instance, if sgn_lvl = .95 in ic is used, quantiles will be extracted at sgn_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.

Value

The credibility interval specified by input parameters.

See Also

ic


[Package pvda version 0.0.3 Index]