Announcement

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

  • Problem with Merger command

    Hi everyone! I Have a problem with the command merge because I need to merge two-panel datasets that have the same three variables (ISO codes origin and destination and year) but when I merge my using into the master, the result comes with no observations matched. I do not know what is wrong with the script because I think I did all right.
    Please help me, I am desperate because I need it for doing my master's thesis.
    Thank you so much,
    Valentina
    Last edited by Valentina Mantoan; 05 Nov 2019, 08:10.

  • #2
    Are you variables in both datasets stored in the same way? If one is string and the other numeric that could be a problem.

    If you simply want to add observations for the same variables, you might need append instead of merge.

    It could be helpful if you provide examples of your datasets with dataex, a couple if observations is enough.

    Comment


    • #3
      Valentina:
      welcome to this forum.
      Despite being symphatetic with methodological hiccups, crying for help and describing one's state as desperate don't help interested listers reply positively to your query.
      As recommended by FAQ, it would be more useful if you could post what you typed and what Stata gave you back and/or share an example/extract of your dataset(s) via -dataex-.
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment

      Working...
      X