powered by
Obtain the size of each cluster, where the size is determined by the number of assigned trajectories to each cluster.
clusterSizes(object, ...)
The lcModel object.
lcModel
Arguments passed on to trajectoryAssignments
trajectoryAssignments
A named integer vector of length nClusters(object) with the number of assigned trajectories per cluster.
integer vector
nClusters(object)
The cluster sizes are computed from the trajectory cluster membership as decided by the trajectoryAssignments() function.
trajectoryAssignments()
clusterProportions trajectoryAssignments
# NOT RUN { 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