Create a lcModel with pre-defined weighted partitioning
lcModelWeightedPartition(
data,
response,
weights,
center = weighted.meanNA,
clusterNames = colnames(weights),
time = getOption("latrend.time"),
id = getOption("latrend.id"),
name = "wpart"
)
The data on which the cluster result is based, a data.frame.
The name of the response variable.
A numIds
x numClusters
matrix of partition probabilities.
The function
for computing the longitudinal cluster centers, used for representing the cluster trajectories.
The names of the clusters, or a function with input n
outputting a character vector
of names.
The name of the time variable.
The name of the trajectory identification variable.
The name of the method.