predict_class_prior.Rd
: Predicts the latent class probabilities, given covariates X
and logit regression coefficients alpha
.
predict_class_prior(X, alpha)
A matrix of covariates.
A matrix of logit regression coefficients.
prob A matrix of latent class probabilities. max_prob_idx A matrix of the most likely latent class for each observation.