The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Initial breastfeeding codes using SAS Egypt DHS 2014 (what is sas code for initial breastfeeding (Egypt DHS 2014))
Initial breastfeeding codes using SAS Egypt DHS 2014 [message #16629] Thu, 07 February 2019 16:28 Go to previous message
Nfadl is currently offline  Nfadl
Messages: 7
Registered: February 2019
Member
I am using Egypt DHS 2014 to analyze the initial breastfeeding practice (child file). Table 12.1 showed that percentage of mothers who started breastfeeding within 1 hour (27.1%). However, my results are not matching with the one in the report (mine is 29.6%). BTW, the table is based on last-born children born in the last 2 years preceding the survey.I would be grateful if you could help me to figure out the problem.
I used the following SAS codes:


options source2;
%include '/folders/myfolders/EDHS2014/EDHS2014/FLAT/EGKR61FL/EGKR61FL .SAS';
LIBNAME a '/folders/myfolders/EDHS2014/EDHS2014/FLAT/EGKR61FL';


data work.demo1;
set a.EGKR61FL;
run;

data demo5;
set work.demo1;

sweight = v005/1000000;


child_age=(V008-B3); * CHILD'S AGE IN MONTHS;
IF child_age < 24 then do; * ONLY CHILDREN AGED LESS THAN TWO YEARS OLD;
if V426 in (101:215) then lastchildintialBF=0; *No (late);
else if V426 in (0,100) then lastchildintialBF=1; *Yes;
else lastchildintialBF=.;
end;

run;



proc surveyfreq data = demo5;
cluster v021 ;*PSU;
strata v023;
weight sweight;
TABLES lastchildintialBF ;
RUN;
 
Read Message
Read Message
Previous Topic: MDD, MMF and MAD in 2005 EDHS
Next Topic: prelacteal feed
Goto Forum:
  


Current Time: Fri Aug 23 01:23:31 Eastern Daylight Time 2019