Learn R Programming

latrend (version 1.2.1)

nobs.lcModel: Extract the number of observations from a lcModel

Description

Extract the number of observations from a lcModel

Usage

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

Arguments

object

The lcModel object.

...

Additional arguments.

See Also

nIds nClusters

Other model-specific methods: clusterTrajectories(), coef.lcModel(), converged(), deviance.lcModel(), df.residual.lcModel(), fitted.lcModel(), fittedTrajectories(), lcModel-class, logLik.lcModel(), model.frame.lcModel(), postprob(), predict.lcModel(), predictAssignments(), predictForCluster(), predictPostprob(), residuals.lcModel(), sigma.lcModel(), time.lcModel()

Examples

Run this code
# NOT RUN {
data(latrendData)
method <- lcMethodKML("Y", id = "Id", time = "Time", nClusters = 3)
kml <- latrend(method, latrendData)
nobs(kml)
# }

Run the code above in your browser using DataLab