Learn R Programming

latrend (version 1.5.0)

nClusters: Number of clusters

Description

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

Usage

nClusters(object)

Value

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

Arguments

object

The lcModel object.

See Also

nIds nobs

Examples

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