View source: R/vem-magmaclust.R
update_mixture | R Documentation |
Update the mixture probabilities for each individual and each cluster
update_mixture(db, mean_k, cov_k, hp, kern, prop_mixture, pen_diag)
db |
A tibble or data frame. Columns required: |
mean_k |
A list of the K hyper-posterior mean parameters. |
cov_k |
A list of the K hyper-posterior covariance matrices. |
hp |
A named vector, tibble or data frame of hyper-parameters
associated with |
kern |
A kernel function, defining the covariance structure of the individual GPs. |
prop_mixture |
A tibble containing the hyper-parameters associated with each individual, indicating in which cluster it belongs. |
pen_diag |
A number. A jitter term, added on the diagonal to prevent numerical issues when inverting nearly singular matrices. |
Compute the hyper-posterior multinomial distributions by updating mixture probabilities.
TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.