Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Recategorizing labels

    Hi! I am trying to take data from a category and group the categories into groups of smaller categories. Can anyone offer guidance on the best command path?

  • #2
    It's unclear exactly what you want to do. You might start by looking at the group() -egen- function. See:

    Code:
    help egen
    then scroll down to group.

    Comment


    • #3
      I agree that it is unclear where you are starting and what you want (please read the FAQ), but have a different suggestion (assuming the starting variable is numeric):
      Code:
      h recode

      Comment


      • #4
        I agree with Rich Goldstein here.

        The egen function group() has just one use, to map already distinct values (which could be distinct numeric or string values) to integers 1 up.

        It doesn't help in mapping several categories to fewer at all.

        Comment

        Working...
        X