simPop | R Documentation |
Simulates data using user defined theta value and allele probabilities in the reference population, pi.
simPop(J=10, K=20, n, pi, theta)
J |
The number of subpopulations sampled. |
K |
Number of different alleles. If argument |
n |
The number of alleles sampled in each subpopulation. If
scalar repeated for all subpopulations, otherwise a vector of length
|
pi |
Vector of allele probabilities. If missing a random vector
of length |
theta |
The theta-value used for simulations. |
Return an J x K matrix with allelic counts.
dirmult
simPop(n=100, theta=0.03)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.