View source: R/loglik.approx.R
loglik.approx | R Documentation |
This function calculate approximated log-likelihood using the elbo.
loglik.approx(W, m, V, Vmat, mu, Sig, red_sig, pi_g, G, it)
W |
observation data: the count data, n*(K+1) matrix where K is the number of taxa. |
m |
variational parameter m, vector of n. |
V |
variational parameter V, list of n matrices, each element is a (K+1)*(K+1) matrix. |
Vmat |
internal parameter, a matrix of n rows as n being number of observations; each row is the diagonal element of the variational parameter V. |
mu |
mean parameter for the latent Gaussian variable, list of g vectors of (K+1). |
Sig |
variance parameter for the latent Gaussian variable, list of g (K+1)*(K+1) matrices. |
red_sig |
internal parameter, a list of G K*K dimensional matrices from the variance parameter. |
pi_g |
proportion vector of each component. |
G |
number of component. |
it |
number of iteration, keep track of iterations for condition checking |
xi |
variational parameter xi, vector of n. |
loglik.approx()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.