summary_mean function

Builds a function to calculate the mean of a continuous variable for each level of an outcome.