Learn R Programming

latrend (version 1.3.0)

nClusters: Number of clusters

Description

Get the number of clusters estimated by the given lcModel object.

Usage

nClusters(object)

Arguments

object

The lcModel object.

Value

An integer with the number of clusters identified by the lcModel.

See Also

nIds nobs

Examples

Run this code
# 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