Learn R Programming

updog (version 1.1.3)

get_wik_mat: E-step in flexdog.

Description

E-step in flexdog.

Usage

get_wik_mat(probk_vec, refvec, sizevec, ploidy, seq, bias, od)

Arguments

probk_vec

The vector of current prior probabilities of each genotype.

refvec

A vector of counts of reads of the reference allele.

sizevec

A vector of total counts.

ploidy

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

seq

The starting value of the sequencing error rate.

bias

The starting value of the bias.

od

The starting value of the overdispersion parameter.

Value

A matrix of numerics. The rows index the individuals and the columns index the genotype. These weights are used in the EM algorithm (and is indeed the E-step) in flexdog_full.

See Also

flexdog for the full EM algorithm.