Extracts the number of observations that contributed information towards fitting the cluster trajectories of the respective lcModel object. Therefore, only non-missing response observations count towards the number of observations.

# S3 method for class 'lcModel'
nobs(object, ...)

Arguments

object

The lcModel object.

...

Additional arguments.

Examples

data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData)
nobs(model)
#> [1] 2000