Specify time series clustering via dtwclust
Specify time series clustering via dtwclust
lcMethodDtwclust(
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 |
Number of clusters. |
... |
Arguments passed to dtwclust::tsclust. The following arguments are ignored: series, k, trace. |
Sardá-Espinosa A (2019). “Time-Series Clustering in R Using the dtwclust Package.” The R Journal. doi: 10.32614/RJ-2019-023.
Other lcMethod implementations:
lcMethod-class,
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodCustom,
lcMethodFeature,
lcMethodFunFEM,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodLongclust,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
library(dtwclust)
data(latrendData)
method <- lcMethodDtwclust("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.