The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » Creating Nutritional intake
Creating Nutritional intake [message #14204] Sun, 04 March 2018 07:29 Go to previous message
anikhpg42@gmail.com is currently offline  anikhpg42@gmail.com
Messages: 38
Registered: December 2017
Location: Bangladesh
Member

Hi,

In BDKR14 database, I want to create a new variable named "Nutritious food given to child" by combining 12 binary variables. What can
I do in the next level? I have done recoding upto the following commands,

******Foods given to the child
*Plain water
recode v409 (0 = 0 "No") (1 = 1 "Yes"), gen(water)
label variable water "Plain water"
label values water water
ta water

*juice
recode v410 (0 8 = 0 "No") (1 = 1 "Yes"), gen(juice)
label variable juice "juice"
label values juice juice
ta juice

*Tinned/powdered milk
recode v411 (0 8 = 0 "No") (1 = 1 "Yes"), gen(tmilk)
label variable tmilk "Tinned/powdered milk"
label values tmilk tmilk
ta tmilk

*Baby formula
recode v411a (0 = 0 "No") (1 = 1 "Yes"), gen(bf)
label variable bf "Baby formula"
label values bf bf
ta bf

*Bread, noodles & other foods from grains
recode v414e (0 = 0 "No") (1 = 1 "Yes"), gen(grains)
label variable grains "Bread, noodles & other foods from grains"
label values grains grains
ta grains

*Potatoes, cassava or other tubers
recode v414f (0 = 0 "No") (1 = 1 "Yes"), gen(tubers)
label variable tubers "Potatoes, cassava or other tubers"
label values tubers tubers
ta tubers

*Eggs
recode v414g (0 = 0 "No") (1 = 1 "Yes"), gen(eggs)
label variable eggs "Eggs"
label values eggs eggs
ta eggs

*Meat
recode v414h (0 8 = 0 "No") (1 = 1 "Yes"), gen(meat)
label variable meat "Meat"
label values meat meat
ta meat

*Pumpkin, carrots or squash
recode v414i (0 = 0 "No") (1 = 1 "Yes"), gen(pumpkin)
label variable pumpkin "Pumpkin, carrots or squash"
label values pumpkin pumpkin
ta pumpkin

*Mangoes, papayas, other vitamin a fruits
recode v414k (0 = 0 "No") (1 = 1 "Yes"), gen(fruits)
label variable fruits "Mangoes, papayas, other vitamin a fruits"
label values fruits fruits
ta fruits

*Mineral rich foods
recode v414m (0 8 = 0 "No") (1 = 1 "Yes"), gen(mineral)
label variable mineral "Mineral rich foods"
label values mineral mineral
ta mineral

*Fish
recode v414n (0 8 = 0 "No") (1 = 1 "Yes"), gen(fish)
label variable fish "Fish"
label values fish fish
ta fish


What should be the next commands to create a binary variable named "Nutritious food given to child" (Given properly, Not given properly) by combining
these 12 variables.?
Can anyone help me?

Thank you very much.


ASIBUL ISLAM ANIK
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BDHS2014-bdkr data set- Children nutrition- table 11.6 in BDHS report, 4+food group
Next Topic: child mortality rate per women's empowerment indicator
Goto Forum:
  


Current Time: Thu Dec 12 00:29:49 Coordinated Universal Time 2024