90 Seconds to Master 1:1 Merging in Stata

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Sunday Stata Tip | Merging 1:1
    The first of 2 videos on merging in Stata. Here I talk about how to merge 1 row from a secondary dataset onto a single row in the dataset already in use.

Комментарии • 5

  • @Tallungs
    @Tallungs 2 года назад +1

    The question I'd like answered is when to merge 1:1 or 1:m or m:1. And what to do if you have multiple key variables.
    So a longer merge vid with multiple examples is needed.

    • @InCaseofEconStruggles
      @InCaseofEconStruggles  2 года назад

      Totally makes sense! Currently the plan is to do a small video on each of the three (so one is coming soon on 1:m and m:1) and then a video on when to use each so I can keep the videos on the shorter side and keep them short and sweet

    • @Tallungs
      @Tallungs 2 года назад +1

      @@InCaseofEconStruggles sweet. I did find some good vids about it. If I can make a request, there are only really bad videos about ipolate. If you'd do one you get to the top of search in no time.

  • @alihussien7935
    @alihussien7935 6 месяцев назад +1

    Thanks for your videos.
    I have a problem with merge I won't to merge 1:1 sam key variable . At all I have 7 dataset I like to merge. I get error says variable _merge already defined stata. How can we solve that problem?

    • @InCaseofEconStruggles
      @InCaseofEconStruggles  6 месяцев назад +1

      Great question I’m glad you like them and they are helpful!
      You have two options
      Option 1: rename _merge after you merge to something like _merge_Xxx to track which data you merged on
      Option 2: specify the nogen option in the merge command I.e. merge 1:1 VAR using DATA, nogen
      This will not create the merge variable