| merging PR with IR with mother's line missing in PR [message #31834] |
Tue, 31 March 2026 06:50 |
na
Messages: 1 Registered: March 2026
|
Member |
|
|
Hello
I need to merge the children in PR with their maternal characteristics in IR.
I usually use this code (in R) to create the caseid variable in the PR file:
ba2007pr<-ba2007pr%>%
mutate(caseid=paste(hhid,"",hv112))
It worked for Bangladesh DHS 2004 PR file and also for other surveys.
However, Bangladesh DHS 2007 PR file has only NA values for the variable hv112.
I do not know how to merge them without the mother's line number.
What should I do? Am I missing something?
Best
|
|
|
|