Announcement

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

  • Reclink error

    I am trying to merge two datasets using reclink. This is my command:
    Code:
    reclink state_name constituency_name candidate using `vote_share19', gen(myscore) idmaster(id_master) idusing(id_vote) required(state_name constituency_name)
    But I am getting this error:
    HTML Code:
    5857 perfect matches found
    
    Going through 2080 observation to assess fuzzy matches, each .=5% complete
    type mismatch
    post:  above message corresponds to expression 1, variable id_master
    What's the issue ?. All variables are string here.

  • #2
    Welcome to Statalist, niruj and thanks for posting your code in CODE blocks, which makes it easy to read. To troubleshoot, it would help to also have a small sample of both your datasets (the one in memory and the one in the using file). Please use the dataex command to provide these samples.

    Comment


    • #3
      I did some testing, and it seems to me that there is a bug in the code for reclink (I have this version: *! v 1.7 14-Jan-2010 M. Blasnik: Record Linkage).

      It appears to produce an error if the idmaster variable is a string, but not when it is numeric.

      Incidentally, as you are requested to specify in the Statalist FAQ, reclink is a community-contributed program that is available by doing:
      Code:
      net describe reclink, from(http://fmwww.bc.edu/RePEc/bocode/r)

      Comment


      • #4
        Thank you Hemanshu. It solves the issue.

        Comment

        Working...
        X