Learn R Programming

mispitools (version 1.2.0)

Trates: Threshold rates: a function for computing error rates and Matthews correlation coefficient of a specific LR threshold.

Description

Threshold rates: a function for computing error rates and Matthews correlation coefficient of a specific LR threshold.

Usage

Trates(datasim, threshold)

Value

Values of false positive and false negative rates and MCC for a specific LR threshold.

Arguments

datasim

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

threshold

Likelihood ratio threshold selected for error rates calculation.

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)
Trates(datasim, 10)

Run the code above in your browser using DataLab