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)
a, b, k | Prior parameter. |
---|---|
y | A vector of observed gene counts. |
mu | A vector of predictions from |
sf | Vector of normalized size factors. |
A shifted negative marginal log-likelihood.
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.