Specify AKMedoids method
The name of the response variable.
The name of the time variable.
The name of the trajectory identification variable.
The number of clusters to estimate.
A function for computing the cluster center representation.
Criterion to apply for internal model selection. Not applicable.
Arguments passed to akmedoids::akclustr
.
The following external arguments are ignored: traj, id_field, k
adepeju2020akmedoidslatrend
Other lcMethod implementations:
getArgumentDefaults()
,
getArgumentExclusions()
,
lcMethod-class
,
lcMethodCrimCV
,
lcMethodDtwclust
,
lcMethodFeature
,
lcMethodFunFEM
,
lcMethodFunction
,
lcMethodGCKM
,
lcMethodKML
,
lcMethodLMKM
,
lcMethodLcmmGBTM
,
lcMethodLcmmGMM
,
lcMethodMclustLLPA
,
lcMethodMixAK_GLMM
,
lcMethodMixtoolsGMM
,
lcMethodMixtoolsNPRM
,
lcMethodRandom
,
lcMethodStratify
data(latrendData)
if (rlang::is_installed("akmedoids")) {
method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3)
model <- latrend(method, data = latrendData)
}