The weight of two DNA profiles for a stated relationship against no
relationship, locus by locus and overall. Loci are taken as independent;
there is no allowance for mutation or coancestry. See proof("kinidx").
Arguments
- g1, g2
The two genotypes: two-column matrices of allele labels, one row per locus (row names name the loci), or two alleles for one locus.
- freq
The population frequencies of the alleles of
g1, same shape. Wheng1,g2andfreqall have row names, their rows are matched tog1by locus name (an error lists loci that differ); otherwise by position, so only names protect against a mismatch.- rel
The relationship:
"parent","sibling","half"(half siblings, grandparent or uncle) or"cousin", or the three probabilities of sharing 0, 1 and 2 alleles by descent. Names are matched exactly, in lower case.