powered by
Get the number of clusters estimated by the given lcModel object.
lcModel
nClusters(object)
An integer with the number of clusters identified by the lcModel.
integer
The lcModel object.
nIds nobs
data(latrendData) method <- lcMethodRandom("Y", id = "Id", time = "Time", nClusters = 3) model <- latrend(method, latrendData) nClusters(model) # 3
Run the code above in your browser using DataLab