update_mixture {MagmaClustR} | R Documentation |
Update the mixture probabilities for each individual and each cluster
Description
Update the mixture probabilities for each individual and each cluster
Usage
update_mixture(db, mean_k, cov_k, hp, kern, prop_mixture, pen_diag)
Arguments
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. |
Value
Compute the hyper-posterior multinomial distributions by updating mixture probabilities.
Examples
TRUE