mk_fun: A function for newton update of m This function calculate the...

View source: R/mk_fun.R

mk_funR Documentation

A function for newton update of m This function calculate the first derivative of the elbo with respect to m for it's kth element.

Description

A function for newton update of m This function calculate the first derivative of the elbo with respect to m for it's kth element.

Usage

mk_fun(x, W_i, iSig, mu, vsquare, M, xi)

Arguments

x

kth element of m, variable of this function

W_i

ith observation.

iSig

inverse matrices of the variance parameter for the latent Gaussian variable.

mu

mean parameter for the latent Gaussian variable.

vsquare

diagonal elements of the variational parameter V.

M

sum of counts in K taxa for one observation.

xi

variational parameter xi, vector of n.

Examples

mk_fun()

yuanfang90/LNMVGA documentation built on Jan. 29, 2024, 8:24 a.m.