summary_median function

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