Learn R Programming

updog (version 1.2.0)

update_pp_f1: Function to update the parameters in the preferential pairing F1 model.

Description

Function to update the parameters in the preferential pairing F1 model.

Usage

update_pp_f1(weight_vec, control)

Arguments

weight_vec

colSums(wik_mat) from flexdog. This is the sum of current posterior probabilities of each individual having genotype k.

control

A list of anything else needed to be passed. E.g. if model = "ash", then inner_weights needs to be passed through control (see get_inner_weights for how to get this matrix).

Value

A list with the following elements:

p1_pair_weights

A list with the mixing weights for the bivalent components of parent 1.

p2_pair_weights

A list with the mixing weights for the bivalent components of parent 2.

obj

The maximized objective.

p1geno

The estimated genotype for parent 1.

p2geno

The estimated genotype for parent 2.

pivec

The estimated genotype distribution for the offspring.

See Also

update_dr