Project

General

Profile

Actions

Support #2148

open

link children's birth year and month with parents

Added by Eve Liu 17 days ago. Updated 10 days ago.

Status:
Feedback
Priority:
High
Category:
Data documentation
Start date:
09/10/2024
% Done:

80%


Description

Dear staff from Understanding Society,

I am currently doing a research which requires to link the parents and children's birthday. I mainly use the two data file "xwavedat_protect", "xwaveid_bh_protect" (although I don't know what's the difference between two datasets) and also "xhhrel_protect". Based on previous issues, I tried to follow your "do file" by firstly rename the pidp. My code is like:

using "xwavedat_protect"

gen bcx_pidp_1 = pidp //bcx_pidp_1 means the first biological child

save "xwavedat_protect", replace

using "xhhrel_protect"

merge 1:m bcx_pidp_1 using "xwavedat_protect"

Then it shows errors, variable bcx_pidp_1 does not uniquely identify observations in the master data

I would be really appreciate if you could help me solve this issue.

Actions

Also available in: Atom PDF