Learn R Programming

updog (version 1.1.3)

xi_fun: Adjusts allele dosage p by the sequencing error rate eps and the allele bias h.

Description

Adjusts allele dosage p by the sequencing error rate eps and the allele bias h.

Usage

xi_fun(p, eps, h)

Arguments

p

A vector of allele dosages.

eps

The sequencing error rate. Must either be of length 1 or the same length as p.

h

The allele bias. Must either be of length 1 or the same length as p.

Value

A vector of probabilities of the reference read adjusted by both the sequencing error rate and the allele bias.