plotLR: Plot Weighted Distribution of Log10(LR)

View source: R/plotLRs.R

plotLRR Documentation

Plot Weighted Distribution of Log10(LR)

Description

This function plots the weighted distribution of the log10 of likelihood ratios (LR), using the probabilities provided in 'numerators' for H1 and 'f_h_s_y' for H2 as weights. The densities are shown for two hypotheses, H1 and H2.

Usage

plotLR(data)

Arguments

data

A dataframe that must contain the columns 'LR', 'numerators', and 'f_h_s_y'.

Value

A ggplot object showing the weighted density plot.

Examples

data <- forensicolors::simRef()
conditioned <- conditionedProp(data, 1, 1, 1, 0.01, 0.01, 0.01)
unconditioned <- forensicolors::refProp(data)
likelihoods <- forensicolors::compute_LRs(conditioned, unconditioned)
plotLR(likelihoods)

forensicolors documentation built on May 29, 2024, 7:53 a.m.