Learn R Programming

updog (version 1.1.3)

get_bivalent_probs: Returns segregation probabilities, pairing representation and number of ref alleles given the ploidy.

Description

Returns segregation probabilities, pairing representation and number of ref alleles given the ploidy.

Usage

get_bivalent_probs(ploidy)

Arguments

ploidy

The ploidy of the individual. Should be even and greater than 0.

Value

A list of three elements

probmat

The rows index the pairing configuration and the columns index the number of reference alleles segregating. The elements are the probability of segregating the given number of reference alleles in a given category.

pmat

The pairing representation of the configuration.

lvec

The number of reference alleles an individual has given their pairing configuration in pmat.

Examples

Run this code
# NOT RUN {
get_bivalent_probs(4)

# }

Run the code above in your browser using DataLab