View source: R/compute_LRs_colors.R
compute_LRs_colors | R Documentation |
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.
compute_LRs_colors(conditioned, unconditioned)
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'. |
A dataframe with the merged data and computed LRs.
data <- simRef()
conditioned <- conditionedProp(data, 1, 1, 1, 0.01, 0.01, 0.01)
unconditioned <- refProp(data)
compute_LRs_colors(conditioned, unconditioned)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.