Skip to content
Prev 245075 / 398503 Next

Reg : null values in kmeans

Hi Raji,

I am quite sure that kmeans in general is not able to handle missing 
values so most probably there wont be an option for this in R. Either 
you omit the observations with NAs as William proposed or you search for 
some algorithm that can handle missing values (not sure whether there is 
any).  Other alternatives would be to put mean values in the NA places. 
This, however, biases the results.


HTH
Jannis

raji sankaran schrieb: