added grouping option for multinom logistic