powered by
Update the cluster names
clusterNames(object) <- value
The updated lcModel object.
lcModel
The lcModel object to update.
The character with the new names.
character
data(latrendData) method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time") model <- latrend(method, latrendData, nClusters = 2) clusterNames(model) <- c("Group 1", "Group 2")
Run the code above in your browser using DataLab