plotLR {forensicolors}R 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)

[Package forensicolors version 1.0.0 Index]