Learn R Programming

bnpsd (version 1.1.1)

draw_p_anc: Draw random uniform ancestral allele frequencies

Description

This is simply a wrapper around runif with different defaults and additional validations.

Usage

draw_p_anc(m_loci, p_min = 0.01, p_max = 0.5)

Arguments

m_loci

Number of loci to draw

p_min

Minimum allele frequency to draw

p_max

Maximum allele frequency to draw

Value

A length-\(m\) vector of random ancestral allele frequencies

Examples

Run this code
# NOT RUN {
p_anc <- draw_p_anc(m_loci = 10)

# }

Run the code above in your browser using DataLab