Guys

I need to use binary variables( values 0 & 1) in K means. But K means works with only continuous variables.

I know some people still use these binary variables in K means ignoring the fact that k means is only designed for continuous variables. This is unacceptable to me.

**Questions**

1)So what is the statistically/mathematically correct way of using binary variables in K means/Hierarchical clustering?

2)How to implement the solution in SAS/R?

Thanks