lcMethodAkmedoids: Specify AKMedoids method

View source: R/methodAKMedoids.R

lcMethodAkmedoidsR Documentation

Specify AKMedoids method

Description

Specify AKMedoids method

Usage

lcMethodAkmedoids(
  response,
  time = getOption("latrend.time"),
  id = getOption("latrend.id"),
  nClusters = 3,
  clusterCenter = median,
  crit = "Calinski_Harabasz",
  ...
)

Arguments

response

The name of the response variable.

time

The name of the time variable.

id

The name of the trajectory identification variable.

nClusters

The number of clusters to estimate.

clusterCenter

A function for computing the cluster center representation.

crit

Criterion to apply for internal model selection. Not applicable.

...

Arguments passed to akmedoids::akclustr. The following external arguments are ignored: traj, id_field, k

References

\insertRef

adepeju2020akmedoidslatrend

See Also

Other lcMethod implementations: getArgumentDefaults(), getArgumentExclusions(), lcMethod-class, lcMethodCrimCV, lcMethodDtwclust, lcMethodFeature, lcMethodFunFEM, lcMethodFunction, lcMethodGCKM, lcMethodKML, lcMethodLMKM, lcMethodLcmmGBTM, lcMethodLcmmGMM, lcMethodMclustLLPA, lcMethodMixAK_GLMM, lcMethodMixtoolsGMM, lcMethodMixtoolsNPRM, lcMethodRandom, lcMethodStratify

Examples

data(latrendData)
if (require("akmedoids")) {
  method <- lcMethodAkmedoids(response = "Y", time = "Time", id = "Id", nClusters = 3)
  model <- latrend(method, data = latrendData)
}

latrend documentation built on March 31, 2023, 5:45 p.m.