Specify a longitudinal k-means (KML) method
Specify a longitudinal k-means (KML) method
lcMethodKML(
response,
time = getOption("latrend.time"),
id = getOption("latrend.id"),
nClusters = 2,
...
)response |
The name of the response variable. |
time |
The name of the time variable. |
id |
The name of the trajectory identifier variable. |
nClusters |
The number of clusters to estimate. |
... |
Arguments passed to kml::parALGO and kml::kml. The following external arguments are ignored: object, nbClusters, parAlgo, toPlot, saveFreq |
Genolini C, Alacoque X, Sentenac M, Arnaud C (2015). “kml and kml3d: R Packages to Cluster Longitudinal Data.” Journal of Statistical Software, 65, 1–34. https://www.jstatsoft.org/v65/i04/.
Other lcMethod implementations:
lcMethod-class,
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodCustom,
lcMethodDtwclust,
lcMethodFeature,
lcMethodFunFEM,
lcMethodGCKM,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodLongclust,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
library(kml)
data(latrendData)
method <- lcMethodKML("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.