Skip to contents

Makes predictions from an LCMM model

Usage

predict_lcmm_(x, newdata, subject, avg = FALSE)

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).

Value

A vector of predictions.