lcMethodAkmedoids {latrend} | R Documentation |
Specify AKMedoids method
Description
Specify AKMedoids method
Usage
lcMethodAkmedoids(
response,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 3,
clusterCenter = median,
crit = "Calinski_Harabasz",
...
)
Arguments
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 |
References
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.
See Also
Other lcMethod implementations:
getArgumentDefaults()
,
getArgumentExclusions()
,
lcMethod-class
,
lcMethodCrimCV
,
lcMethodDtwclust
,
lcMethodFeature
,
lcMethodFunFEM
,
lcMethodFunction
,
lcMethodGCKM
,
lcMethodKML
,
lcMethodLMKM
,
lcMethodLcmmGBTM
,
lcMethodLcmmGMM
,
lcMethodMclustLLPA
,
lcMethodMixAK_GLMM
,
lcMethodMixtoolsGMM
,
lcMethodMixtoolsNPRM
,
lcMethodRandom
,
lcMethodStratify
Examples
data(latrendData)
if (rlang::is_installed("akmedoids")) {
method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3)
model <- latrend(method, data = latrendData)
}