View source: R/lower_level_disprop_analysis.R
ci_for_ic | R Documentation |
Mainly used in function ic
. Produces quantiles of the
posterior gamma distribution. Called twice in ic
to create
credibility intervals.
ci_for_ic(obs, exp, conf_lvl_probs, shrinkage)
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 ( |
shrinkage |
A non-negative numeric value, to be added to observed and expected count. Default is 0.5. |
The credibility interval specified by input parameters.
ic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.