The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » prelacteal feed (prelacteal feed)
prelacteal feed [message #16655] Tue, 12 February 2019 17:24 Go to previous message
Nfadl is currently offline  Nfadl
Messages: 7
Registered: February 2019
Member
I am using Egypt DHS 2014 (child file). I need some help to include last-born children born in the past two years who were ever breastfed as in Table 12.1. My target is to reach the percentage who received a prelacteal feed. Is the follwoing codes right? It gave me the same result but I did not specifiy last children in the analysis nor ever breastfeed!

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;
*prelacteal feed;
if M55Z =1 then prelacteal=0; *no given nothing;
else if M55Z=0 then prelacteal=1; *yes given something = 61.19% matching the report;
else prelacteal=.;
end;
run;


proc surveyfreq data = demo5;
cluster v021 ;*PSU;
strata v023;
weight sweight;
TABLES prelacteal;
RUN;




 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Initial breastfeeding codes using SAS Egypt DHS 2014
Next Topic: How to interpret HW70
Goto Forum:
  


Current Time: Fri Apr 19 16:04:29 Coordinated Universal Time 2024