p_all: Probability of drawing an allele n times in n draws

Description Usage Arguments Value

Description

Probability of drawing an allele n times in n draws. This is a helper function used in transmission modeling.

Usage

1
p_all(p, n)

Arguments

p

The probability (frequency of allele)

n

The number of draws. or a vector of draw values

Value

The probability of only drawing an allele at the given frequency. Or a vector of such probabilities


jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.