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