predict.kmodes_gower: Predict KModes Gower Object on New Data

Description Usage Arguments

Description

Predict KModes Gower Object on New Data

Usage

1
2
3
## S3 method for class 'kmodes_gower'
predict(object, newdata, type = c("cluster",
  "distance"), normalize = TRUE)

Arguments

object

kmodes_gower object produces by kmodes_gower function.

newdata

data.frame on which to predict.

type

What to predict on the new data. Either the assigned cluster or the distance matrix containining the distance for each objservation to each cluster mode.

normalize

a logical value for whether rowSums(dists) should all equal one.


Zelazny7/alamode documentation built on May 17, 2019, 6:09 a.m.