predict_class_posterior.Rd: Predicts the latent class probabilities, given observations Y, covariates X,
logit regression coefficients alpha and a specified model of expert functions.
predict_class_posterior(
Y,
X,
alpha,
model,
exposure_past = list(),
exact_Y = F
)A matrix of responses.
A matrix of covariates.
A matrix of logit regression coefficients.
A matrix specifying the expert functions.
A vector indicating the time exposure (past) of each observation. If nothing is supplied, it is set to 1.0 by default.
true or false (default), indicating if Y is observed exactly or with censoring and truncation.
prob: A matrix of latent class probabilities. max_prob_idx: A matrix of the most likely latent class for each observation.