update_vi_params_doubletree: update variational parameters

View source: R/update.R

update_vi_params_doubletreeR Documentation

update variational parameters

Description

Used by fit_nlcm_doubletree(); followed by update_hyperparams_doubletree()

Usage

update_vi_params_doubletree(
  leaf_ids_units,
  leaf_ids_nodes,
  ancestors,
  h_pau,
  levels,
  v_units,
  subject_id_list,
  ind_obs_i,
  ind_obs_j,
  scenario,
  X,
  n,
  J,
  p1,
  p2,
  pL1,
  pL2,
  Fg1,
  Fg2,
  cardanc1,
  cardanc2,
  prob1,
  prob2,
  mu_gamma,
  mu_alpha,
  rmat,
  emat,
  dirich_mat,
  sigma_gamma,
  sigma_alpha,
  tau_1_t,
  tau_2_t,
  a1_t,
  b1_t,
  a2_t,
  b2_t,
  psi,
  g_psi,
  phi,
  g_phi,
  tau_1,
  tau_2,
  a1,
  b1,
  a2,
  b2,
  dmat,
  K,
  LD,
  s1_u_zeroset,
  s1_u_oneset,
  s2_cu_zeroset,
  s2_cu_oneset,
  do_tree1_update
)

Arguments

leaf_ids_units, leaf_ids_nodes, ancestors, h_pau, levels, v_units, subject_id_list, ind_obs_i, ind_obs_j, scenario

outputs from design_doubletree(). Among them, subject_id_list is currently not used in the initialization function initialize_nlcm_doubletree(), but are useful for updating functions here.

X, n, J, p1, p2, pL1, pL2, Fg1, Fg2, cardanc1, cardanc2

data and design information computed from the outputs of initialize_nlcm_doubletree(); we use R.utils::do.Call to get their values from dsgn.

prob1, prob2, mu_gamma, mu_alpha, rmat, emat, dirich_mat, sigma_gamma, sigma_alpha, tau_1_t, tau_2_t, a1_t, b1_t, a2_t, b2_t

variational parameters

psi, g_psi, phi, g_phi, tau_1, tau_2

parameters updated by update_hyperparams_doubletree()

do_tree1_update

TRUE to update mu_gamma,sigma_gamma, prob1,tau_1 fixed hyperparameters

See Also

Other Internal VI functions: update_hyperparams_doubletree()


zhenkewu/doubletree documentation built on Oct. 21, 2023, 7:04 a.m.