calcAfreq | R Documentation |
Calculates population allele frequencies from data, adjusting for COI.
calcAfreq(dsmp, coi, tol = 1e-04, qstart = 0.5)
dsmp |
a list with each element corresponding to one sample. |
coi |
a vector containing complexity of infection for each sample. |
tol |
convergence tolerance for frequency estimates. |
qstart |
a starting value for frequencies. |
A list of allele frequencies, where each element is a numeric vector containing frequencies for a single locus.
coi <- getCOI(dsmp, lrank = 2) # estimate COI first
afreq <- calcAfreq(dsmp, coi, tol = 1e-5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.