Learn R Programming

updog (version 1.2.0)

get_inner_weights: Compute inner weights for updating the mixing proportions when using ash model.

Description

The (i,k)th element is \(1(k \in F(a, i)) / |F(a,i)|\).

Usage

get_inner_weights(ploidy, mode)

Arguments

ploidy

The ploidy of the species. Assumed to be the same for each individual.

mode

The mode if model = "ash". If not provided, flexdog will estimate the mode. This is the starting point of the allele frequency if model = "hw". This should be NULL for all other options of model.

Value

A matrix of numerics. The weights used for the weighted EM algorithm in flexdog_full.