So I have a category named "Code" and there are 5 subgroups. I want to find the following:
  1. For variable CODE, calculate median and SD by each code, but only for codes that have > 4 cases in them
  2. For each CODE category, calculate frequencies of cases by (median +/- [x*SD]) categories, where x=1,2,3. For example, Group 1 = median +/- 1*SD; Group 2 = median +/- 2*SD; etc.