Announcement

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

  • problem with merge m:1

    I tried to merge two data sets with unique variables called "Name" and "lan". Data set 1 consists of the two variables called "Name", "Lan" and "komm" and data set 2 consists of the variables called "Name", "lan", "harad", NAMN", "LAN", "parid", "LMn1", "SNID_4" and "city".

    Code:
    merge m:1 Name lan using "XXX"
    This is the result:
    Code:
     
    Name lan komm harad NAMN LAN parid LMn1 SNID_4 city _merge
    abild 13 1 matched (3)
    adelöv 6 1 matched (3)
    agnetorp 16 1 matched (3)
    agunnaryd 7 1 matched (3)
    akebäck 9 1 matched (3)

    The problem that occurs is that the merge takes place but the values were not adopted.

    Does anyone know how to fix this problem?

  • #2
    are you sure that your first data set has only the two variables? if yes, are you sure that your second data actually has non-missing values? my guess is that the variables already exist in the first data set and you need the "update" option; if this is not the issue, please use -dataex- (see the FAQ) to provide examples of each of your two data sets

    Comment

    Working...
    X