If I have a dataset of continuous variables (that I can assume are normally distributed), I can identify subgroups using a Gaussian mixture model and implement. Likewise if I have binary data I can model it as a mixture of Bernoulli.
I can implement either of these models using likelihood EM approach, or MCMC (typically Gibbs) sampling.
However, if my dataset comprises both continuous and binary data, can a mixture model be defined? If so, how?
flexmix
does; its functionFLXMVcombi
says that "This model driver can be used to cluster mixed-mode binary and Gaussian data. It checks which columns of a matrix contain only zero and ones, and does the same asFLXMCmvbinary
for them. For the remaining columns of the data matrix independent Gaussian distributions are used ..." $\endgroup$flexmix
implementation, thanks! $\endgroup$