View source: R/makeWellBehaved.R
makeWellBehaved | R Documentation |
Replace q_ij by min(q_ij,p_j)
makeWellBehaved(Q, afreq)
Q |
a mutation model |
afreq |
A numeric vector of allele frequencies. |
A reversible stepwise mutation model.
Thore Egeland.
## Not run:
# Not well behaved:
p = c(0.4, 0.6)
Q = stepwiseReversible(alleles = 1:2, afreq = p, rate = 0.6, range = 0.1)
makeWellBehaved(Q, afreq = p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.