calc_loglik: Calculates marginal likelihood

Description Usage Arguments Details Value

Description

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

Usage

1
2
3
4
5
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.

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.


SAVER documentation built on Nov. 14, 2019, 1:06 a.m.