up_bb_obj: Objective function for overdispersed binomial mixture model

Description Usage Arguments Author(s)

View source: R/updog_bb.R

Description

Objective function for overdispersed binomial mixture model

Usage

1
2
up_bb_obj(pival, p1geno, p2geno, rho, out_mu, out_rho, ocounts, osize, qarray,
  r1vec, r2vec, pk)

Arguments

pival

A fudge factor. The probability of not begin a mistake. Estimated if est_fudge = TRUE. Set to 0.99. Only used if est_fudge = TRUE.

p1geno

The genotype of parent 1. From 0 to ploidy.

p2geno

The genotype of parent 2. From 0 to ploidy.

rho

The overdispersion parameter.

out_mu

The outlier mean.

out_rho

The outlier overdispersion parameter.

ocounts

A vector of non-negative integers. The observed number of A's.

osize

A vector of positive integers. The observed total counts.

qarray

An three-way array of proportions. The (i, j, k)th element is the probability of an offspring having k - 1 reference alleles given that parent 1 has i - 1 refrerence alleles and parent 2 has j - 1 reference alleles. Each dimension of the array is ploidy + 1.

r1vec

A vector of prior probabilities whose ith element is the prior probability that parent 1 has i -1 copies of allele A.

r2vec

A vector of prior probabilities whose ith element is the prior probability that parent 2 has i -1 copies of allele A.

pk

The parameter space. Should all be between 0 and 1.

Author(s)

David Gerard


dcgerard/updogAlpha documentation built on May 14, 2019, 3:10 a.m.