Announcement

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

  • A question in "encode"

    Hello, I have a question about "encode". Why the "encode" don't present "English dummy" by defined.
    Moreover, the dummy number is wrong!!!
    I use STATA 14

    ///
    webuse hbp2, clear
    tostring city, gen(ncity)
    label define stata 1 "USA" 2 "JAPEN" 3 "UT" 5 "pp"
    encode ncity, gen(stata)

  • #2
    Duplicate. Please follow https://www.statalist.org/forums/for...tion-in-encode

    Comment

    Working...
    X