View source: R/main_wrappers.R
get_hyperparameters | R Documentation |
This is the fourth and final step of CLIMB. For a list of candidate latent classes, this function computes all necessary prior hyperparameters for the Bayesian analysis of the constrained normal mixture model.
get_hyperparameters(z, fits, reduced_classes, prior_weights)
z |
n by D matrix or data frame of appropriately pre-processed observations. |
fits |
Output from get_pairwise_fits |
reduced_classes |
Final list of candidate latent classes, after eliminating classes whose prior weights are too small. |
prior_weights |
Prior weights for a given delta, as output from get_prior_weights |
Psi0 |
D by D by M array of prior cluster covariance matrices. |
mu0 |
M by D matrix of prior cluster means. |
alpha |
M-vector of prior cluster mixing weights. |
kappa0 |
alpha * n – this controls the informativity of the prior, and can be changed by the user. |
data(sim) data(fits) data(true_association) p <- rep(1/nrow(true_assoc), times = nrow(true_assoc)) hyp <- get_hyperparameters(sim$data, fits, true_assoc, p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.