Learn R Programming

latrend (version 1.0.1)

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.

Usage

confusionMatrix(object, strategy = which.max, scale = TRUE)

Arguments

object

The object.

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.

Examples

Run this code
# NOT RUN {
data(latrendData)
model = latrend(method=lcMethodLcmmGMM(Y ~ CLUSTER * Time + (1 | Id), id = "Id", time = "Time"),
  data=latrendData)
confusionMatrix(model)
# }

Run the code above in your browser using DataLab