lrpost
Posterior probability from a likelihood ratio
lrpost(lr, prior)crimlab.lrpost(lr, prior)crimlab lrpost --lr VALUE --prior VALUETurns a likelihood ratio into the probability of the first hypothesis,
which needs a prior. A large ratio with a small prior can still leave that
probability low; reading the ratio as the probability is the prosecutor’s
fallacy. See proof("lrpost").
Parameters
Section titled “Parameters”lrLikelihood ratios: positive numbers.
priorThe prior probability of the first hypothesis, strictly between 0 and 1: one value, or one per ratio, matched to
lrby name when both are named with unique names.
Returns
Section titled “Returns”The posterior probabilities.
Examples
Section titled “Examples”lrpost(lr = 1e6, prior = 1 / 5e6)Generated from the R help page: lrpost in the R reference.