refCat function

summaryFunction that finds reference level for factor variables