Specify AKMedoids method
Specify AKMedoids method
lcMethodAkmedoids(
response,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 3,
clusterCenter = median,
crit = "Calinski_Harabasz",
...
)response |
The name of the response variable. |
time |
The name of the time variable. |
id |
The name of the trajectory identification variable. |
nClusters |
The number of clusters to estimate. |
clusterCenter |
A function for computing the cluster center representation. |
crit |
Criterion to apply for internal model selection. Not applicable. |
... |
Arguments passed to akmedoids::akclustr. The following external arguments are ignored: traj, id_field, k |
Adepeju M, Langton S, Bannister J (2020). akmedoids: Anchored Kmedoids for Longitudinal Data Clustering. R package version 0.1.5, https://CRAN.R-project.org/package=akmedoids.
Other lcMethod implementations:
lcMethod-class,
lcMethodCrimCV,
lcMethodCustom,
lcMethodDtwclust,
lcMethodFeature,
lcMethodFunFEM,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodLongclust,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
library(akmedoids) data(latrendData) method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3) model <- latrend(method, data = latrendData)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.