Skip to content

Using kmeans given cluster centroids and data with NAs

1 message · Mulholland, Tom

#
Does ?na.omit help

x <- kmeans(na.omit(data),centres)

of course if you have too many NAs you need to be sure that their removal does not unduly influence the results.

Although I am a bit confused as I thought that agnes did not allow NAs. I assume that you are running an alternative clustering method using the results of the first process as the starting point for the partitioning process and are thus using the same initial data.

Tom