Announcement

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

  • gsoundex

    I would like to use the old handwritten soundex command that allows to specify the length. To copied the code from http://fmwww.bc.edu/repec/bocode/_/_gsoundex.ado and saved it from an editor as _gsoundex.ado and copied the file into C:\ado\plus\_ However when I try to use the command egen newvar= soundex(oldvar), [Length(int 4)] it doesn't work. Stata says the option [ is not allowed. I also tried to add _gsoundex.pkg into C:\ado\plus\_ Is it possible that the old command does not work with stata 14?

  • #2
    You have a couple of syntax elements wring. With few exceptions, you do not type the square brackets; these denote optional arguments. Type

    Code:
    egen newwar = soundex(oldvar) , length(4)

    Comment

    Working...
    X