* EBF syntax DHS V Recode *Calculations for Exclusive breastfeeding status. *TO DETERMINE IF CHILD IS GIVEN water, SUGAR water, JUICE, TEA OR OTHER. gen water=0. if (v409 ge 1 and v409 le 7) water=1. freq water. compute liquids=0. if (v409A ge 1 and v409A le 7) liquids=1. if (v410 ge 1 and v410 le 7) liquids=1. if (v410A ge 1 and v410A le 7) liquids=1. if (v413a ge 1 and v413a le 7) liquids=1. if (v413b ge 1 and v413b le 7) liquids=1. if (v413c ge 1 and v413c le 7) liquids=1. if (v413d ge 1 and v413d le 7) liquids=1. if (v413 ge 1 and v413 le 7) liquids=1. freq liquids. *IF GAVE POWDER/TINNED milk, FORMULA OR FRESH milk. compute milk=0. if (v411 ge 1 and v411 le 7) milk=1. if (v411A ge 1 and v411A le 7) milk=1. if (v412 ge 1 and v412 le 7 ) milk=1. if (v414P ge 1 and v414P le 7 ) milk=1. *Country specific food item - classify appropriately. *if (M37xx ge 1 and M37xx le 7 ) milk=1. var label milk "Milk and milk products". freq milk. *IF STILL breastFEEDING. compute breast=0. if (m4=95) breast=1. var label breast "Children still breastfeeding". freq breast. *IF WAS EVER bottle FED. compute bottle=0. if (m38=1) bottle=1. var label bottle "Children who were ever given bottle". freq bottle. *IF GAVE ANY SOLID FOOD. *This is different than analyzing recode M39. *Look for country specific foods. compute solids=0. if (v414A ge 1 and v414A le 7) solids=1. if (v414B ge 1 and v414B le 7) solids=1. if (v414C ge 1 and v414C le 7) solids=1. if (v414D ge 1 and v414D le 7) solids=1. if (v414E ge 1 and v414E le 7) solids=1. if (v414F ge 1 and v414F le 7) solids=1. if (v414G ge 1 and v414G le 7) solids=1. if (v414H ge 1 and v414H le 7) solids=1. if (v414I ge 1 and v414I le 7) solids=1. if (v414J ge 1 and v414J le 7) solids=1. if (v414K ge 1 and v414K le 7) solids=1. if (v414L ge 1 and v414L le 7) solids=1. if (v414M ge 1 and v414M le 7) solids=1. if (v414N ge 1 and v414N le 7) solids=1. if (v414O ge 1 and v414O le 7) solids=1. if (v414P ge 1 and v414P le 7) solids=1. if (v414Q ge 1 and v414Q le 7) solids=1. if (v414R ge 1 and v414R le 7) solids=1. if (v414S ge 1 and v414S le 7) solids=1. if (v414T ge 1 and v414T le 7) solids=1. if (v414U ge 1 and v414U le 7) solids=1. if (v412a=1) solids=1. if (v412b=1) solids=1. freq solids. compute diet=7. *not given water, liquids, milk or solids (excl bf). if (water=0 and liquids=0 and milk=0 and solids=0) diet=0. *given only water (full bf). if (water=1 and liquids=0 and milk=0 and solids=0) diet=1. *given only liquids (bf & liquids). if (liquids=1 and milk=0 and solids=0) diet=2. *given only milks (bf & milk). if (milk=1 and solids=0) diet=3. *given only solids (bf & solids). if (milk=0 and solids=1) diet=4. *given only milk and solids (bf & milk & solids). if (milk=1 and solids=1) diet=5. *not still breastfeeding (weaned). if (breast=0) diet=6. value labels diet 0 'Breastfed Only' 1 'Breastmilk and Water' 2 'Breastmilk and Liquids' 3 'Breastmilk and Other Milk' 4 'Breastmilk and Solids' 5 'Breastmilk, Milk and Solids' 6 'Weaned'. freq diet.