Learn R Programming

mispitools (version 1.2.0)

DeT: Decision Threshold: a function for computing likelihood ratio decision threshold.

Description

Decision Threshold: a function for computing likelihood ratio decision threshold.

Usage

DeT(datasim, weight)

Value

A value of Likelihood ratio suggested as threshold based on false positive-false negative trade-off.

Arguments

datasim

Input dataframe containing expected LRs for related and unrelated POIs. It should be the output from makeLRsims function.

weight

The differential weight between false positives and false negatives. A value of 10 is suggested.

Examples

Run this code
library(forrel)
x = linearPed(2)
x = setMarkers(x, locusAttributes = NorwegianFrequencies[1:5])
x = profileSim(x, N = 1, ids = 2)
datasim = simLRgen(x, missing = 5, 10, 123)
DeT(datasim, 10)

Run the code above in your browser using DataLab