powered by
Get the number of clusters estimated by the given lcModel object.
lcModel
nClusters(object)
The lcModel object.
An integer with the number of clusters identified by the lcModel.
integer
nIds nobs
# NOT RUN { 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