compute_LRs_colors: Compute Likelihood Ratios based con color characteristics

View source: R/compute_LRs_colors.R

compute_LRs_colorsR Documentation

Compute Likelihood Ratios based con color characteristics

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_colors(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_colors(conditioned, unconditioned)

mispitools documentation built on Sept. 11, 2024, 8:29 p.m.