The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging individual record to couples record
Re: Merging individual record to couples record [message #13412 is a reply to message #13334] Thu, 02 November 2017 15:31 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member

Following is a response from DHS Senior Sampling Specialist, Mahmoud Elkasabi:

Below is the needed SAS code

data MWIR;
set 'C:\Users\......................\MWIR7HFL.sas7bdat';
RUN;

proc sort data=MWIR;
by V001 V002 V003; run;

data MWCR;
set 'C:\Users\.......................\MWCR7HFL.sas7bdat';
RUN;

proc sort data=MWCR;
by V001 V002 V003; run;

Data MWMI;
merge MWIR MWCR;
by V001 V002 V003;
run;
 
Read Message
Read Message
Previous Topic: urban/rural variable with education data in dhs in stata
Next Topic: merging household data with female data
Goto Forum:
  


Current Time: Mon Dec 23 12:13:06 Coordinated Universal Time 2024