View source: R/fragility_tools.R
| calibrate_concentration_cutoff | R Documentation |
Simulates the distribution of the inclusion-fragility concentration
index C_W^+ under the prosecution hypothesis H_p for a
given pedigree and marker panel, and returns the chosen upper
quantile as a case-flagging cutoff. Profiles whose observed
C_W^+ exceeds the cutoff should trigger a leave-one-out
review before reporting.
calibrate_concentration_cutoff(
reference,
missing,
numsims = 1500,
probs = 0.9,
seed = 123,
numCores = 1
)
reference |
A |
missing |
Character or numeric. ID of the missing person in the pedigree. |
numsims |
Integer. Number of |
probs |
Numeric in |
seed |
Integer. Random seed passed through to
|
numCores |
Integer. Cores for the underlying
|
The calibration uses only the H_p branch of
sim_lr_genetic: for each simulated matching profile,
the per-marker LR vector is extracted and passed to
concentration_index_positive. Simulations with no
positive per-marker support (empty numerator) are dropped before
taking the quantile.
The default probs = 0.90 matches the cutoff convention used
in Marsico & Egeland (in preparation): a 10\
H_p is deemed acceptable in exchange for catching concentrated
cases where the combined LR depends heavily on a single marker.
A list with elements
cutoffThe probs-quantile of C_W^+
under H_p.
probsThe quantile level used.
distributionNumeric vector of simulated
C_W^+ values, length numsims.
total_log10_lrNumeric vector of simulated
\log_{10}\mathrm{LR} totals under H_p.
numsimsThe number of simulations actually used (profiles with non-positive total support are discarded).
Marsico, F. L. & Egeland, T. (in preparation). Belief dynamics during the investigative process.
sim_lr_genetic,
concentration_index_positive,
fragility_report.
## Not run:
library(pedtools); library(forrel)
x <- linearPed(2)
x <- setMarkers(x, locusAttributes = NorwegianFrequencies[1:15])
x <- profileSim(x, N = 1, ids = 2)
cal <- calibrate_concentration_cutoff(x, missing = 5,
numsims = 500, probs = 0.90)
cal$cutoff
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.