residuals.lcModel | R Documentation |
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))
object |
The |
... |
Additional arguments. |
clusters |
Optional cluster assignments per id. If unspecified, a |
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.
fitted.lcModel trajectories
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.