Announcement

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

  • Encode - how to change assigned numbers?

    Hi,


    I had a list of non-numerical variables, that I wished to change to numerical variables as a rank.

    I used
    encode literacy, generate(education)

    However I wish to change the numbers that they were assigned. How do I do this?

    Thanks in advance

  • #2
    You could try a recode.

    Alternatively, encode has a label() option to use specified labels. You would then define the number-label correspondence you wanted and do a fresh encode.

    It's impossible for me to guess which would be easier in the absence of details. Which is easier depends also on your experience, e.g. in using recodes in some different software.

    Comment


    • #3
      or you could try strrec (ssc inst strrec)

      Comment

      Working...
      X