Composite mixture of log-linear models with application to psychiatric studies