confusionMatrix: Compute the posterior confusion matrix
Description
Compute the posterior confusion matrix (PCM).
The entry \((i,j)\) represents the probability (or number, in case of scale = TRUE) of a trajectory
belonging to cluster \(i\) is assigned to cluster \(j\) under the specified trajectory cluster assignment strategy.
The strategy for assigning trajectories to a specific cluster, see trajectoryAssignments().
If strategy = NULL, the posterior probabilities are used as weights (analogous to a repeated evaluation of strategy = which.weight).
scale
Whether to express the confusion in probabilities (scale = TRUE), or in terms of the number of trajectories.
# NOT RUN {data(latrendData)
model = latrend(lcMethodLcmmGMM(
fixed = Y ~ Time, mixture = ~ Time, random = ~ 1,
id = "Id", time = "Time"),
data=latrendData)
confusionMatrix(model)
# }