Get Centers for Partitioning
get_centers(data, K, cluster_args, cluster_on_indicators)
Matrix of cluster centers
Matrix of predictor data
Number of partitions minus 1 (\(K\))
List with custom centers and kmeans args
Include binary predictors in clustering
Returns partition centers via:
1. Custom supplied centers if provided as a valid \(K \times q\) matrix
2. kmeans clustering on all non-spline variables if cluster_on_indicators=TRUE
3. kmeans clustering excluding binary variables if cluster_on_indicators=FALSE