Pattern recognition with discrete and mixed data : theory and practice