compute_LRs {forensicolors}R Documentation

Compute Likelihood Ratios (LRs)

Description

This function calculates the Likelihood Ratios (LRs) for each combination of hair colour, skin colour, and eye colour between two datasets. It assumes one dataset (conditioned) contains numerators and the other (unconditioned) contains denominators.

Usage

compute_LRs(conditioned, unconditioned)

Arguments

conditioned

A dataframe with at least the columns 'hair_colour', 'skin_colour', 'eye_colour', and 'numerators'.

unconditioned

A dataframe with at least the columns 'hair_colour', 'skin_colour', 'eye_colour', and 'f_h_s_y'.

Value

A dataframe with the merged data and computed LRs.

Examples

data <- simRef()
conditioned <- conditionedProp(data, 1, 1, 1, 0.01, 0.01, 0.01) 
unconditioned <- refProp(data)
compute_LRs(conditioned, unconditioned)

[Package forensicolors version 1.0.0 Index]