Learn R Programming

updog (version 1.1.3)

get_wik_mat_out: E-step in flexdog where we now allow an outlier distribution.

Description

E-step in flexdog where we now allow an outlier distribution.

Usage

get_wik_mat_out(probk_vec, out_prop, refvec, sizevec, ploidy, seq, bias, od)

Arguments

probk_vec

The vector of current prior probabilities of each genotype.

out_prop

The probability of being an outlier.

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

Same as get_wik_mat but the last column is for the outlier class.

See Also

flexdog for the full EM algorithm. get_wik_mat for the equivalent function without outliers. doutdist for the outlier density function.