Makes predictions from an LCMM model
Arguments
- x
An object of class
hlme
.- newdata
A data frame containing static covariates and individual IDs
- subject
Name of the column in newdata where individual IDs are stored.
- avg
Boolean indicating whether to make predictions based on the most likely cluster (FALSE, default) or averaging over clusters (TRUE).