Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals.lcModel

Extract lcModel residuals


Description

Extract lcModel residuals

Usage

## S3 method for class 'lcModel'
residuals(object, ..., clusters = trajectoryAssignments(object))

Arguments

object

The lcModel object.

...

Additional arguments.

clusters

Optional cluster assignments per id. If unspecified, a matrix is returned containing the cluster-specific predictions per column.

Value

A vector of residuals for the cluster assignments specified by clusters. If clusters is unspecified, a matrix of cluster-specific residuals per observations is returned.

See Also


latrend

A Framework for Clustering Longitudinal Data

v1.1.2
GPL (>= 2)
Authors
Niek Den Teuling [aut, cre] (<https://orcid.org/0000-0003-1026-5080>), Steffen Pauws [ctb], Edwin van den Heuvel [ctb], Copyright © 2021 Koninklijke Philips N.V. [cph]
Initial release
2021-04-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.