GroupConditions function

Conditions for observation grouping