View source: R/multiple_model.R
| get_group_probabilities | R Documentation |
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
)
object |
An object of class |
lY |
List of matrices representing the longitudinal responses (one matrix per model). Must match the data used for fitting. |
lA |
List of matrices representing the time or age of observation (one matrix per model). Must match the data used for fitting. |
Risk |
An optional one-sided formula for global risk factors, matching the one used for fitting. |
lymin |
An optional list of minimum boundaries for censoring. If |
lymax |
An optional list of maximum boundaries for censoring. If |
lTCOV |
**(Not implemented)** List of time-dependent covariates. |
ldelta |
**(Not implemented)** List of matrices indicating the presence of time-dependent covariates. |
lnw |
**(Not implemented)** List of integers representing weights. |
A list containing the following components:
post_prob |
A matrix of posterior probabilities for each individual and each joint group. |
joint_group |
A numeric vector indicating the most likely joint group for each individual. |
group_assignments |
A matrix showing the sub-group assignment for each joint group. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.