Specify Longclust method
Specify Longclust method
lcMethodLongclust(
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 longclust::longclustEM. The following external arguments are ignored: data, x, Gmin, Gmax, userseed. |
McNicholas PD, Jampani KR, Subedi S (2019). longclust: Model-Based Clustering and Classification for Longitudinal Data. R package version 1.2.3, https://CRAN.R-project.org/package=longclust.
Other lcMethod implementations:
lcMethod-class,
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodCustom,
lcMethodDtwclust,
lcMethodFeature,
lcMethodFunFEM,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
library(longclust)
data(latrendData)
method <- lcMethodLongclust("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.