grad_offspring_weights_original: Gradient of 'obj_offspring_weights' using original...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Gradient of obj_offspring_weights using original parameterization

Usage

1
2
grad_offspring_weights_original(ocounts, osize, weight_vec, ploidy, prob_geno,
  d, eps, tau)

Arguments

ocounts

The observed counts of the refernce allele for each individual.

osize

The observed number of reads for each individuals.

weight_vec

A vector of weights between 0 and 1 (do not need to add up to 1).

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.

d

The sequencing bias parameter.

eps

The sequencing error rate

tau

The overdisperion parameter.

Value

A NumericVector of length three with the partial derivatives of d, eps, and tau, in that order.


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