powered by
Specify AKMedoids method
lcMethodAkmedoids( response, time = getOption("latrend.time"), id = getOption("latrend.id"), nClusters = 3, clusterCenter = median, ... )
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.
Arguments passed to akmedoids::akmedoids.clust. The following external arguments are ignored: traj, id_field, k
adepeju2020akmedoidslatrend
Other lcMethod implementations: lcMethod-class, lcMethodCrimCV, lcMethodCustom, lcMethodDtwclust, lcMethodFeature, lcMethodFunFEM, lcMethodGCKM, lcMethodKML, lcMethodLMKM, lcMethodLcmmGBTM, lcMethodLcmmGMM, lcMethodLongclust, lcMethodMclustLLPA, lcMethodMixAK_GLMM, lcMethodMixtoolsGMM, lcMethodMixtoolsNPRM, lcMethodRandom, lcMethodStratify
lcMethod-class
lcMethodCrimCV
lcMethodCustom
lcMethodDtwclust
lcMethodFeature
lcMethodFunFEM
lcMethodGCKM
lcMethodKML
lcMethodLMKM
lcMethodLcmmGBTM
lcMethodLcmmGMM
lcMethodLongclust
lcMethodMclustLLPA
lcMethodMixAK_GLMM
lcMethodMixtoolsGMM
lcMethodMixtoolsNPRM
lcMethodRandom
lcMethodStratify
# NOT RUN { library(akmedoids) data(latrendData) method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3) model <- latrend(method, data = latrendData) # }
Run the code above in your browser using DataLab