estimate_k: estimate_k

View source: R/enterotype.R

estimate_kR Documentation

estimate_k

Description

To estimate the optimal cluster number , 'estimate_k' takes advantage of two measures, Calinski-Harabasz (CH) Index and silhouette coefficients.

Usage

estimate_k(b, verK = 2:10)

Arguments

b

bacterial abundance matrix

verK

number vector of cluster

Value

list

Examples

data(iris)
b <- bSet(b = data.table::as.data.table(t(iris[1:6, 1:4])),
          Features = letters[1:4],
          Samples = LETTERS[1:6])
ret <- estimate_k(b = b, 2:3)

gongcongcong/mbOmic documentation built on July 1, 2023, 1:47 p.m.