Calculates the marginal likelihood given the prediction under constant coefficient of variation (a), Fano factor (b), and variance (k).

calc.loglik.a(a, y, mu, sf)

calc.loglik.b(b, y, mu, sf)

calc.loglik.k(k, y, mu, sf)

Arguments

a, b, k

Prior parameter.

y

A vector of observed gene counts.

mu

A vector of predictions from expr.predict.

sf

Vector of normalized size factors.

Value

A shifted negative marginal log-likelihood.

Details

calc.loglik.a returns the shifted negative log-likelihood under constant coefficient of variation. calc.loglik.b returns the shifted negative log-likelihood under constant Fano factor. calc.loglik.k returns the shifted negative log-likelihood under constant variance.