The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » CALCULATION OF EXCLUSIVE BREASTFEEDING
Re: CALCULATION OF EXCLUSIVE BREASTFEEDING [message #14363 is a reply to message #14354] Tue, 27 March 2018 14:18 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3036
Registered: February 2013
Senior Member
Here is another response from DHS Technical Specialist, Rukundo Benedict:

The following syntax may help you to identify any issues with your code.

*// Breastfeeding status .
RECODE M4 (95 = 1) (ELSE = 2) INTO M4w.
VALUE LABELS M4w 1"Still breastfeedig" 2"Not breastfeeding" .
*// Plain water.
COMPUTE PlainW = 0.
IF (V409 = 1) PlainW = 1.
*// Non milk .
COMPUTE NonMilk = 0.
IF ( V410 = 1 | V412C=1 | V413 = 1) NonMilk = 1.
*// Milk .
COMPUTE Milk = 0.
IF ( V411 = 1 | V411A = 1) Milk = 1.
*// Complementary food .
COMPUTE Complem = 0.
IF ( V412A=1 | V414E=1 | V414F=1 | V414G=1 | V414H=1 | V414I=1 |
      V414J=1 | V414K=1 | V414L=1  | V414M=1 | V414N=1  | V414O= 1 | V414S = 1 | V414V = 1 ) Complem = 1.
*// Currently breastfeeding .
IF ( M4w = 1) CBreastF = 1.
VALUE LABELS CBreastF 1"Currently breastfeeding".

DO IF ( M4w = 1).
+ COMPUTE BFStatus = 9.
+ IF (                                                     Complem = 1) BFStatus = 5.
+ IF (                                       Milk=1 & Complem = 0) BFStatus = 4.
+ IF (                   NonMilk=1 & Milk=0 & Complem = 0) BFStatus = 3.
+ IF (PlainW=1 & NonMilk=0 & Milk=0 & Complem = 0) BFStatus = 2.
+ IF (PlainW=0 & NonMilk=0 & Milk=0 & Complem = 0) BFStatus = 1.
ELSE IF (M4w = 2).
+ COMPUTE BFStatus = 0.
END IF.

VALUE LABELS BFStatus 
 0"Not breastfeeding" 
 1"Exclusively breastfed" 
 2"Breastfeeding and consuming plain water only"
3"Breastfeeding and consuming non-milk liquids 1"
4"Breastfeeding and consuming other milk"
5"Breastfeeding and consuming complementary foods"
9"Missing".

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Srata for 1989 survey
Next Topic: Domestic violence
Goto Forum:
  


Current Time: Tue Apr 23 05:13:24 Coordinated Universal Time 2024