View source: R/methodDtwclust.R
| lcMethodDtwclust | R Documentation |
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. |
sardaespinosa2019timelatrend
Other lcMethod implementations:
getArgumentDefaults(),
getArgumentExclusions(),
lcMethod-class,
lcMethodAkmedoids,
lcMethodCrimCV,
lcMethodFeature,
lcMethodFunFEM,
lcMethodFunction,
lcMethodGCKM,
lcMethodKML,
lcMethodLMKM,
lcMethodLcmmGBTM,
lcMethodLcmmGMM,
lcMethodMclustLLPA,
lcMethodMixAK_GLMM,
lcMethodMixtoolsGMM,
lcMethodMixtoolsNPRM,
lcMethodRandom,
lcMethodStratify
data(latrendData)
if (require("dtwclust")) {
method <- lcMethodDtwclust("Y", id = "Id", time = "Time", nClusters = 3)
# reduced sample size to lower runtime
model <- latrend(method, latrendData[1:500, ])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.