Learn R Programming

idiolect (version 1.0.1)

posterior: Posterior prosecution probabilities and odds

Description

This function takes as input a value of the Log-Likelihood Ratio and returns a table that shows the impact on some simulated prior probabilities for the prosecution hypothesis.

Usage

posterior(LLR)

Value

A data frame containing some simulated prior probabilities/odds for the prosecution and the resulting posterior probabilities/odds after the LLR.

Arguments

LLR

One single numeric value corresponding to a Log-Likelihood Ratio (base 10).

Examples

Run this code
posterior(LLR = 0)
posterior(LLR = 1.8)
posterior(LLR = -0.5)
posterior(LLR = 4)

Run the code above in your browser using DataLab