Specify a model based on a pre-computed result.
lcModelCustom(
data,
response,
trajectoryAssignments = NULL,
clusterTrajectories = mean,
trajectories = data,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
clusterNames = NULL,
converged = TRUE,
postprob = NULL,
model = NULL,
name = "custom",
predict = NULL,
predictPostprob = NULL,
method = new("lcMethod")
)
The data on which the cluster result is based, a data.frame.
The response variable.
A vector indicating cluster membership per strata. Either a numeric
vector with range 1:numClus
, or a factor
.
The cluster trajectories as a data.frame, or a function computing the center trajectory based on the strata of the respective cluster.
The fitted trajectories.
The time variable.
The id variable.
The names of the clusters. Optional.
Convergence state of the model. TRUE by default.
Optional posterior probability matrix.
An optional object representing the internal model.
The name of the model.
Predict function for the response.
Predict function for the posterior probability.
The method used to create this lcModelCustom instance. Optional.