update_alpha_subid_doubletree | R Documentation |
Update alpha's variational distribution.
update_alpha_subid_doubletree(
u,
v1,
g_phi,
tau_2_t_u,
E_eta,
E_xi_u,
X,
rmat,
emat,
h_pau,
levels,
subject_ids,
v2_lookup
)
u |
node id; internal or leaf node in tree1 |
v1 |
leaf node id in tree1. |
g_phi |
g of local variational parameters |
tau_2_t_u |
variational Gaussian variances for gamma |
E_eta, E_xi_u |
moment updates produced by |
X |
transformed data: |
rmat |
a matrix of variational probabilities of all observations belong to K classes; N by K; each row sums to 1 |
emat |
a matrix of variational probability for all observations belonging to pL1 leaf nodes; N by pL1; each row sums to 1. Importantly, for rows with obsered leaf nodes in tree1, we just have an one-hot representation. of that cause. |
h_pau |
a numeric vector of length p indicating the branch length between a node and its parent; for tree2 |
levels |
a vector of possibly repeating integers from 1 to Fg2 |
subject_ids |
integer ids for subjects nested under node |
v2_lookup |
a vector of length equal to the total number of rows in X; each element is an integer, indicating which leaf does the observation belong to in tree2. |
a list
actually 1/C in the paper, this is variance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.