N2Exact | R Documentation |
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.
N2Exact(p)
p |
vector of allele frequencies. Must sum to 1. Default: for uniformly distrubted alleles. |
Returns(P(N=i) for i=1,2,3,4
Thore Egeland Thore.Egeland@medisin.uio.no
## Not run: #Distribution for a marker with 20 alles of equal frequency N2Exact(p=rep(0.05,20)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.