Calculate the optimal number of groups for a future Kmeans with classical intergoup / intragroup variance simulation. If the maximum number of groups declared <= 2, first calculate the maximum reasonable number of groups (can be very long) using a confirmatory logistic regression or dicriminant analysis for each kmeans simulation and retaining the number of groups generating the maximum leap in accuracy. In that last case the number of groups to span is firstly delimited from 2 to sqrt(nbrows)*3.
- Type: Tabletable with numeric variables