Predicts the expected trajectory observations at the given time under the assumption that the trajectory belongs to the specified cluster.
# S4 method for lcModel
predictForCluster(object, newdata = NULL, cluster, ..., what = "mu")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.
The cluster name (as character) to predict for.
Additional arguments.
The distributional parameter to predict. By default, the mean response 'mu' is predicted. The cluster membership predictions can be obtained by specifying what = 'mb'.
A vector with the predictions per newdata observation, or a data.frame with the predictions and newdata alongside.
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(),
predictAssignments(),
predictPostprob(),
residuals.lcModel(),
sigma.lcModel(),
time.lcModel(),
trajectories()