Predict the cluster assignments for new trajectories
Computes the posterior probability based on the provided (observed) data.
## S4 method for signature 'lcModel' predictAssignments(object, newdata = NULL, strategy = which.max, ...)
object |
The |
newdata |
Optional |
strategy |
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. |
The default implementation uses predictPostprob to determine the cluster membership.
A factor with length nrow(newdata) that indicates the posterior probability per trajectory per observation.
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()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.