Learn R Programming

latrend (version 1.2.1)

sigma.lcModel: Extract residual standard deviation from a lcModel

Description

Extracts or estimates the residual standard deviation. If sigma() is not defined for a model, it is estimated from the residual error vector.

Usage

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

Arguments

object

The lcModel object.

...

Additional arguments.

Value

A numeric indicating the residual standard deviation.

See Also

coef.lcModel metric

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

Examples

Run this code
# NOT RUN {
data(latrendData)
model <- latrend(lcMethodLcmmGMM(fixed = Y ~ Time, mixture = ~ Time,
   id = "Id", time = "Time"), data = latrendData)
sigma(model)
# }

Run the code above in your browser using DataLab