Learn R Programming

latrend (version 1.6.1)

postprobFromAssignments: Create a posterior probability matrix from a vector of cluster assignments.

Description

For each trajectory, the probability of the assigned cluster is 1.

Usage

postprobFromAssignments(assignments, k)

Arguments

assignments

Integer vector indicating cluster assignment per trajectory

k

The number of clusters.