Finite mixture approach to ecological regression