confusionMatrix: Compute the posterior confusion matrix
Description
Compute a nClusters x nClusters posterior confusion matrix (PCM). The entry (i,j) represents the probability of a trajectory belonging to class i is assigned to class j under a given assignment strategy.
The trajectoryAssignments strategy to compute the PCM under.
If strategy = NULL, weighted random assignment is assumed (analogous to a repeated [which.weight] strategy evaluation).
scale
Whether to express the confusion in probabilities (scale = TRUE), or in 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)
# }