Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logLik.kmeans

Log-Likelihood for k-means clustering (for calculating AIC and BIC)


Description

Log-Likelihood for k-means clustering (for calculating AIC and BIC)

Usage

## S3 method for class 'kmeans'
logLik(object, ...)

Arguments

object

a kmeans object

...

unused

Author(s)

Neal Fultz, inspired by Sherry Towers and Andy Clifton,

References

See Also

Examples

cl <- kmeans(iris[-5], 3)
AIC(cl)

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.