grad_offspring_mat: Gradient of 'obj_offspring_reparam' for each individual.

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Gradient of obj_offspring_reparam for each individual.

Usage

1
grad_offspring_mat(ocounts, osize, ploidy, prob_geno, s, ell, r)

Arguments

ocounts

The observed counts of the refernce allele for each individual.

osize

The observed number of reads for each individuals.

ploidy

An integer. The ploidy of the species. This is assumed to be the same for each individual.

prob_geno

The allele frequencies of the genotypes. See get_prob_geno.

s

We have s = exp(d), where exp(d) is the bias term.

ell

The logit of the sequencing error rate

r

We have r = log((1 - tau) / tau)

Author(s)

David Gerard


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