powered by
This is simply a wrapper around runif with different defaults and additional validations.
runif
draw_p_anc(m_loci, p_min = 0.01, p_max = 0.5)
Number of loci to draw
Minimum allele frequency to draw
Maximum allele frequency to draw
A length-\(m\) vector of random ancestral allele frequencies
# NOT RUN { p_anc <- draw_p_anc(m_loci = 10) # }
Run the code above in your browser using DataLab