powered by
Obtain the size of each cluster, where the size is determined by the number of assigned trajectories to each cluster.
clusterSizes(object, ...)
A named integer vector of length nClusters(object) with the number of assigned trajectories per cluster.
integer vector
nClusters(object)
The lcModel object.
lcModel
Additional arguments passed to trajectoryAssignments().
trajectoryAssignments()
The cluster sizes are computed from the trajectory cluster membership as decided by the trajectoryAssignments() function.
clusterProportions trajectoryAssignments
data(latrendData) method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time") model <- latrend(method, latrendData, nClusters = 2) clusterSizes(model)
Run the code above in your browser using DataLab