Computes the posterior probability based on the provided (observed) data.
# S4 method for lcModel
predictAssignments(object, newdata = NULL, strategy = which.max, ...)The lcModel object.
Optional data.frame for which to compute the model predictions. If omitted, the model training data is used.
Cluster trajectory predictions are made when ids are not specified.
A function returning the cluster index based on the given vector of membership probabilities. By default, ids are assigned to the cluster with the highest probability.
Additional arguments.
A factor with length nrow(newdata) that indicates the posterior probability per trajectory per observation.
The default implementation uses predictPostprob to determine the cluster membership.
Other model-specific methods:
clusterTrajectories(),
coef.lcModel(),
converged(),
deviance.lcModel(),
df.residual.lcModel(),
fitted.lcModel(),
lcModel-class,
logLik.lcModel(),
model.frame.lcModel(),
nobs.lcModel(),
postprob(),
predict.lcModel(),
predictForCluster(),
predictPostprob(),
residuals.lcModel(),
sigma.lcModel(),
time.lcModel(),
trajectories()