N2Exact: Calculates exact allele distribution for 2 contributors

Description Usage Arguments Value Author(s) Examples

View source: R/N2Exact.R

Description

The distribution of N, the number of alleles showing is calculated exactly assuming 2 contributors. Theta-correction is not implemented. The function may be used to check accuracy of simulations and indicate required number of simulations for one example.

Usage

1

Arguments

p

vector of allele frequencies. Must sum to 1. Default: for uniformly distrubted alleles.

Value

Returns(P(N=i) for i=1,2,3,4

Author(s)

Thore Egeland Thore.Egeland@medisin.uio.no

Examples

1
2
#Distribution for a marker with 20 alles of equal frequency
N2Exact(p=rep(0.05,20))

forensim documentation built on May 2, 2019, 6:09 p.m.

Related to N2Exact in forensim...