Description Usage Arguments Value
: Predicts the latent class probabilities, given observations Y
, covariates X
,
logit regression coefficients alpha
and a specified model
of expert functions.
1 2 3 4 5 6 7 8 | predict_class_posterior(
Y,
X,
alpha,
model,
exposure_past = list(),
exact_Y = F
)
|
Y |
A matrix of responses. |
X |
A matrix of covariates. |
alpha |
A matrix of logit regression coefficients. |
model |
A matrix specifying the expert functions. |
exposure_past |
A vector indicating the time exposure (past) of each observation. If nothing is supplied, it is set to 1.0 by default. |
exact_Y |
|
prob: A matrix of latent class probabilities.
max_prob_idx: A matrix of the most likely latent class for each observation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.