Learn R Programming

updog (version 1.1.3)

pivec_from_segmats: Function to get the segregation probabilities from the distributions of each component and the weights of each component.

Description

Function to get the segregation probabilities from the distributions of each component and the weights of each component.

Usage

pivec_from_segmats(p1segmat, p2segmat, p1weight, p2weight)

Arguments

p1segmat

The matrix of segregation probabilities for each component for parent 1. The rows index the components and the columns index the number of alleles to segregate.

p2segmat

The matrix of segregation probabilities for each component for parent 2. The rows index the components and the columns index the number of alleles to segregate.

p1weight

A vector of weights for each component (row) of p1segmat.

p2weight

A vector of weights for each component (row) of p2segmat.

Value

A vector. The ith element is the probability of segregating i+1 total A alleles.

See Also

This is mostly used in update_pp_f1.