predict_new_ind_group_model: function used to predict the group for new individuals based...

Description Usage Arguments Value

View source: R/functions.R

Description

function used to predict the group for new individuals based on the latent states and the fitted gAR models

Usage

1
predict_new_ind_group_model(i, l, p, models_ls, s_mat_test, static_test = NA)

Arguments

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

Value

Predicted probability of being in group l for the new individuals


acweisha/gFPCAClassif documentation built on Dec. 18, 2021, 10:23 p.m.