Hi again -- I have a categorical variable with 57 categories and would like to create a new variable that brings the number of categories down based on a rule that if a category has less than 10 observations, it will become a new "other" category. Please see my data below. Thank you for any guidance.
Code:
tab big_publishers big_publishers | Freq. Percent Cum. -----------------------------+----------------------------------- 2K Sports | 1 0.19 0.19 3DO | 1 0.19 0.37 Acclaim Entertainment | 25 4.63 5.00 Activision | 42 7.78 12.78 Atari | 14 2.59 15.37 Atlus | 2 0.37 15.74 BAM! Entertainment | 6 1.11 16.85 Bandai | 5 0.93 17.78 Buena Vista | 2 0.37 18.15 Capcom | 19 3.52 21.67
Comment