kinidx
Kinship index
kinidx(g1, g2, freq, rel = "parent")crimlab.kinidx(g1, g2, freq, rel=None)crimlab kinidx --g1 VALUE --g2 VALUE --freq VALUE [--rel VALUE]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").
Parameters
Section titled “Parameters”g1, g2The two genotypes: two-column matrices of allele labels, one row per locus (row names name the loci), or two alleles for one locus.
freqThe 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.relThe 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.
Returns
Section titled “Returns”A list: locus, a data frame with locus and idx; log10idx,
the base-10 logarithm of the combined index; and post, the probability
of the relationship at even prior odds.
Examples
Section titled “Examples”kinidx(g1 = c(12, 14), g2 = c(12, 14), freq = c(0.1, 0.2), rel = "sibling")Generated from the R help page: kinidx in the R reference.