calc.loglik.a {SAVER} | R Documentation |
Calculates marginal likelihood
Description
Calculates the marginal likelihood given the prediction under constant coefficient of variation (a), Fano factor (b), and variance (k).
Usage
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 |
sf |
Vector of normalized size factors. |
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.
Value
A shifted negative marginal log-likelihood.
[Package SAVER version 1.1.2 Index]