The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Exclusive Breastfeeding (I didn't have the same prevalence of EBF for both 0-5 month and 4-5 months)
Re: Exclusive Breastfeeding [message #29468 is a reply to message #29439] Mon, 24 June 2024 09:43 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:
Users are asked to give the table number for the table you are trying to match. However, I found that it is table 11.3 in the SL2019 report. The table is restricted to the youngest child under 24 months of age who is living with the mother. Here are the lines to get the n of 969 children for EBF during age 0-5 months.

Open the KR file with Stata. Then:
keep if b9==0 & b19<24

sort v001 v002 v003 bidx

egen sequence=seq(), by(v001 v002 v003)

tab sequence [iweight=v005/1000000] if b19<6

keep if b19<6 & sequence=1

There are other ways to do this that do not involve "keep", and you can drop the "tab" line, which I include just to confirm the 969 (a weighted frequency of 968.73, which rounds to 969). The "egen seq" line is crucial (after the "keep" and "sort" lines) to get the youngest child under 24 months living with the mother. You would apply the routine to calculate "diet" and the percentage with diet=0 to these cases, and I believe you will then match the percent EBF in the table.
 
Read Message
Read Message
Read Message
Previous Topic: Mozambique: Standard DHS, 2022-23, KR Dataset
Next Topic: Sao Tome and Principe: MICS, 2014 - Are there any GPS datasets available?
Goto Forum:
  


Current Time: Sat Nov 30 05:02:08 Coordinated Universal Time 2024