Learn R Programming

useful (version 1.2.6.1)

ComputeHartigan: Compute Hartigan's Number

Description

Runs the computation found in http://www.stat.columbia.edu/~madigan/DM08/descriptive.ppt.pdf

Usage

ComputeHartigan(FitActualWSS, FitPlus1WSS, nrow)

Value

The computed Hartigan Number

Arguments

FitActualWSS

the WSS from a kmeans fit

FitPlus1WSS

the WSS from a kmeans fit

nrow

the number of rows in the original dataset

Author

Jared P. Lander www.jaredlander.com

Details

Not exported, only used by FitKMeans

References

http://www.stat.columbia.edu/~madigan/DM08/descriptive.ppt.pdf

See Also

kmeans FitKMeans

Examples

Run this code
data(iris)
hartiganResults <- FitKMeans(iris[, -ncol(iris)])
PlotHartigan(hartiganResults)

Run the code above in your browser using DataLab