get_line1_2_13_subid: calculate line 1 and 2 and 13 of ELBO to assess convergence...

View source: R/RcppExports.R

get_line1_2_13_subidR Documentation

calculate line 1 and 2 and 13 of ELBO to assess convergence and choose among converged estimates from many restarts

Description

calculate line 1 and 2 and 13 of ELBO to assess convergence and choose among converged estimates from many restarts

Usage

get_line1_2_13_subid(
  psi,
  g_psi,
  phi,
  g_phi,
  rmat,
  E_beta,
  E_beta_sq,
  E_eta,
  E_eta_sq,
  X,
  v_lookup
)

Arguments

psi, g_psi, phi, g_phi

see update_hyperparams

rmat

a matrix of variational probabilities of all observations belong to K classes; N by K; each row sums to 1

E_beta, E_beta_sq, E_eta, E_eta_sq

moments during VI updates from get_moments_cpp

X

transformed data: 2Y-1

v_lookup

a vector of indicators; of size N, each indicating the leaf id (from 1 to pL) for each sample.

Value

line 1, 2, 13 of the ELBO


zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.