LRdist: Likelihood ratio distribution: a function for plotting...

View source: R/LRdist.R

LRdistR Documentation

Likelihood ratio distribution: a function for plotting expected log10(LR) distributions under relatedness and unrelatedness.

Description

Likelihood ratio distribution: a function for plotting expected log10(LR) distributions under relatedness and unrelatedness.

Usage

LRdist(datasim, type = 1)

Arguments

datasim

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

type

Select between a density plot (type = 1, default) or a violin plot (type = 2).

Value

A plot showing likelihood ratio distributions under relatedness and unrelatedness hypothesis.

Examples

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)
LRdist(datasim)

mispitools documentation built on Sept. 8, 2023, 6:13 p.m.