Extract the residuals for a fitted lcModel
object.
By default, residuals are computed under the most likely cluster assignment for each trajectory.
# S3 method for class 'lcModel'
residuals(object, ..., clusters = trajectoryAssignments(object))
A numeric vector
of residuals for the cluster assignments specified by clusters.
If the clusters
argument is unspecified, a matrix
of cluster-specific residuals per observations is returned.
Other lcModel functions:
clusterNames()
,
clusterProportions()
,
clusterSizes()
,
clusterTrajectories()
,
coef.lcModel()
,
converged()
,
deviance.lcModel()
,
df.residual.lcModel()
,
estimationTime()
,
externalMetric()
,
fitted.lcModel()
,
fittedTrajectories()
,
getCall.lcModel()
,
getLcMethod()
,
ids()
,
lcModel-class
,
metric()
,
model.frame.lcModel()
,
nClusters()
,
nIds()
,
nobs.lcModel()
,
plot-lcModel-method
,
plotClusterTrajectories()
,
plotFittedTrajectories()
,
postprob()
,
predict.lcModel()
,
predictAssignments()
,
predictForCluster()
,
predictPostprob()
,
qqPlot()
,
sigma.lcModel()
,
strip()
,
time.lcModel()
,
trajectoryAssignments()