Announcement

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

  • getting all label values with encode

    Hello all
    Is there a way to get all the label values after encoding a string variable.

    I originally encoded a string variable - had around 1mill observations.
    I then had to drop some observations, leaving me with a final 17,000 observations.

    I then inserted
    Code:
    labelbook variable
    ///this gave me all the labels with encode when there were 1mill observations
    -tab- of course gives me text

    Is there a way to just see the labels with encode for just the 17,000 observations?

  • #2
    Code:
    levelsof variable, local(values)
    foreach v of local values {
        display `"`:label (variable) `v''"'
    }

    Comment


    • #3
      Code:
      label list

      Comment

      Working...
      X