Learn R Programming

forensIT (version 1.1.1)

distKL: distKL: KL distribution obtained for specific relative contributor

Description

distKL: KL distribution obtained for specific relative contributor

Usage

distKL(ped, missing, relative, frequency, numsims = 100, cores = 1)

Value

An object of class data.frame with KLs.

Arguments

ped

Reference pedigree. It could be an input from read_fam() function or a pedigree built with pedtools. # nolint

missing

Missing person

relative

Selected relative.

frequency

Allele frequency database.

numsims

Number of simulated genotypes.

cores

Enables parallelization.

Examples

Run this code
library(forrel)
x = linearPed(2)
x = setMarkers(x, locusAttributes = NorwegianFrequencies[1:2])
x = profileSim(x, N = 1, ids = 2)
distKL(ped = x, missing = 5, relative = 1, cores = 1,
frequency = NorwegianFrequencies[1:2], numsims = 3)

Run the code above in your browser using DataLab