Description Usage Arguments Value
function used to predict the group for new individuals based on the latent states and the fitted gAR models
1 | predict_new_ind_group_model(i, l, p, models_ls, s_mat_test, static_test = NA)
|
i |
index of the current individual |
l |
the group which is currently being used |
p |
the lag of the current models |
models_ls |
Fitted gAR models for the various groups |
s_mat_test |
estimated latent state data used to predict the gAR model |
static_test |
dataframe containing the information of covariates which one would like to include in the gAR model |
Predicted probability of being in group l for the new individuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.