profiles function

Profiles by level of a categorical variable