Calculates the posterior probabilities of group membership for each individual based on a fitted multivariate trajectory model. It assigns each individual to the most likely joint trajectory group and provides the specific sub-group assignments across all dimensions.
get_group_probabilities(
object,
lY,
lA,
Risk = NULL,
lymin = NULL,
lymax = NULL,
lTCOV = NULL,
ldelta = NULL,
lnw = NULL
)A list containing the following components:
post_probA matrix of posterior probabilities for each individual and each joint group.
joint_groupA numeric vector indicating the most likely joint group for each individual.
group_assignmentsA matrix showing the sub-group assignment for each joint group.
An object of class trajectory.mult returned by the trajeR_mult function.
List of matrices representing the longitudinal responses (one matrix per model). Must match the data used for fitting.
List of matrices representing the time or age of observation (one matrix per model). Must match the data used for fitting.
An optional one-sided formula for global risk factors, matching the one used for fitting.
An optional list of minimum boundaries for censoring. If NULL, it is calculated automatically.
An optional list of maximum boundaries for censoring. If NULL, it is calculated automatically.
**(Not implemented)** List of time-dependent covariates.
**(Not implemented)** List of matrices indicating the presence of time-dependent covariates.
**(Not implemented)** List of integers representing weights.