The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Nigeria » Grouping of ethnic groups Nigeria 2003, 2008 and 2013
Re: Grouping of ethnic groups Nigeria 2003, 2008 and 2013 [message #12539 is a reply to message #11726] Sun, 11 June 2017 17:41 Go to previous messageGo to previous message
AnvitaDixit is currently offline  AnvitaDixit
Messages: 7
Registered: June 2017
Location: usa
Member
Hi! I tried to do this in SAS, but am not able to replicate the DHS report. Please check and advise. Thanks.

data new3;
set new2;
if v131=91 then v131w=91;
if v131=109 then v131w=109;
if v131=130 then v131w=130;
if v131=133 then v131w=133;
if v131=137 then v131w=137;
if v131=140 then v131w=140;
if v131=179 then v131w=179;
if v131=276 then v131w=276;
if v131=298 then v131w=298;
if v131=998 then v131w=998;
else if v131=. then v131w=999;
else v131w=0;
run;
proc freq data=new3;
tables v131w;
run;
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calculating state-specific maternal mortality ratio and rate from the NDHS 2013
Next Topic: Calculating exclusive breastfeeding using Nigeria Demographic and Health Survey 2013
Goto Forum:
  


Current Time: Thu Jan 9 16:56:47 Coordinated Universal Time 2025