logLik | R Documentation |
Calculates the log-likelihood, under the multinomial logit-Normal model.
logLik(v, y, ni, S, invSigma)
v |
The additive log-ratio transform of y |
y |
Compositional dataset |
ni |
The row sums of y |
S |
Covariance of |
invSigma |
The inverse of the Sigma matrix |
The estimated log-likelihood under the Multinomial logit-Normal distribution.
data(singlecell)
mle.sim <- mlePath(singlecell, tol=1e-4, tol.nr=1e-4, n.lambda = 2, n.cores = 1)
n <- NROW(singlecell)
logLik(mle.sim$est.min$v,
singlecell,
n,
cov(mle.sim$est.min$v),
mle.sim$est.min$Sigma.inv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.