Returns the maximum likelihood estimates of multinomial logit-normal model parameters given a count-compositional dataset. The MLE procedure is based on the multinomial logit-Normal distribution, using the EM algorithm from Hoff (2003).
mleLR(
y,
max.iter = 10000,
max.iter.nr = 100,
tol = 1e-06,
tol.nr = 1e-06,
lambda.gl = 0,
gamma = 0.1,
lr.penalty = c("alr", "clr"),
verbose = FALSE
)The additive log-ratio of y (v); maximum likelihood estimates of
mu, Sigma, and Sigma.inv (e.g. the covariance and precision matrices)
on the ALR scale. The CLR scale versions are Sigma.clr and Sigma.inv.clr, respectively;
the log-likelihood (log.lik); the EBIC (extended Bayesian information criterion)
of the log-likelihood of the multinomial logit-Normal model with the
graphical lasso penalty (ebic); degrees of freedom of the Sigma.inv
matrix (df).
Matrix of counts; samples are rows and features are columns.
Maximum number of iterations
Maximum number of Newton-Raphson iterations
Stopping rule
Stopping rule for the Newton-Raphson algorithm
Penalization parameter lambda, for the graphical lasso penalty. Controls the sparsity of Sigma
Gamma value for EBIC calculation of the log-likelihood
Should the precision matrix be penalized on the ALR or CLR scale?
If TRUE, print information as the functions run
data(singlecell)
mle <- mleLR(singlecell)
mle$mu
mle$Sigma
mle$ebic
Run the code above in your browser using DataLab