Dear STATAlist,
I have a merge problem. My master dataset contains data on children, including the ID of the household in which they live (BSIntId). Some households contain more than one child. I have a using dataset that has a line for each household plus household level data - distance to clinic, etc.
. merge m:1 BSIntId using "arealunits.dta"
(note: variable BSIntId was int, now long to accommodate using data's values)
Result # of obs.
-----------------------------------------
not matched 15,366
from master 1 (_merge==1)
from using 15,365 (_merge==2)
matched 1,257 (_merge==3)
-----------------------------------------
This is what I expect to see - there are 1258 children and one child has missing BSIntId in the master dataset. However, when I look at the 'merged' dataset, it contains none of the variables from the using dataset. Any suggestions?
Thanks,
Tom
I have a merge problem. My master dataset contains data on children, including the ID of the household in which they live (BSIntId). Some households contain more than one child. I have a using dataset that has a line for each household plus household level data - distance to clinic, etc.
. merge m:1 BSIntId using "arealunits.dta"
(note: variable BSIntId was int, now long to accommodate using data's values)
Result # of obs.
-----------------------------------------
not matched 15,366
from master 1 (_merge==1)
from using 15,365 (_merge==2)
matched 1,257 (_merge==3)
-----------------------------------------
This is what I expect to see - there are 1258 children and one child has missing BSIntId in the master dataset. However, when I look at the 'merged' dataset, it contains none of the variables from the using dataset. Any suggestions?
Thanks,
Tom
Comment