DetermineK: A kmeans and Silhouette Analysis to determine the best K for...

View source: R/DetermineK.R

DetermineKR Documentation

A kmeans and Silhouette Analysis to determine the best K for your data

Description

This function estimates the best K (number of clusters) for your data set using Kmeans and a Silhouette Analysis

Usage

DetermineK(
  mydata,
  kmax = 20,
  desiredK = 4,
  num_iter = 100,
  plotrepress = FALSE
)

Arguments

mydata

a data frame or matrix of data

kmax

the maximum number of k groups to estimate

desiredK

the the number of k clusters you want to have

num_iter

the number of iterations used in the kmeans analysis

plotrepress

default is to plot the data (FALSE), set to TRUE to repress the plot

Examples

DetermineK()

hughesevoanth/moosefun documentation built on Aug. 22, 2022, 7:04 a.m.