Calculation of MDD included three main steps: (1) identification of
food groups that were consumed by the children 6-23 months of age in the
previous days, (2) calculation of the total number of food groups (out
of total 8 food groups) consumed in the previous day and (3)
identification of children who meet the minimum requirement of food
groups (at least 5 food groups) in their previous day’s consumption.
Individual food group consumption: dummy variables
As the first step of MDD, we will now identify the food group the
children consumed the previous day. We will use the
get_dummy
function to generate the dummy variable for each
8 food groups:
- breast milk;
- grains, white/pale starchy roots, tubers and plantains;
- beans, peas, lentils, nuts and seeds;
- dairy products (milk, infant formula, yogurt, cheese);
- flesh foods (meat, fish, poultry, organ meats);
- eggs;
- vitamin A-rich fruits and vegetables; and
- other fruits and vegetables.
Please note that the input parameter of the get_dummy
function is the list
, not vector
. We need to
prepare the list of variables for the food items we would like to
include in each food group dummy variable calculation. In this article,
I used the same variables applied in 2021 WHO IYCF indicators guideline.
The detailed description of the input variables used for each food group
calculation can be checked using the following syntax in the sample
dataset description file.
For the breastfeeding dummy variable, the guideline-recommended to
using the Question 4
: breastfed yesterday during the day
or at night.
df$breastmilk <- get_dummy(var_list = list(df$child_bfyest))
For grains-related food groups, including grains, white/pale starchy
roots, tubers and plantains, we used Question 7B
and
Question 7D
from the WHO IYCF sample questionnaires.
df$grains <- get_dummy(var_list = list(df$child_rice, df$child_potatoes))
For pulses food groups which include beans, peas, lentils, nuts, and
seeds, we only need to use one variable, Question 7N
.
df$pulses <- get_dummy(var_list = list(df$child_beans))
In the dairy products food group, the following foods items are
included; milk, infant formula, yogurt, and cheese) and the following
questions from WHO guidelines provide that information;
Question 6B
, Question 6C
,
Question 6D
, Question 7A
, and
Question 7O
.
dairy_list <- list(df$child_bms, df$child_milk, df$child_mproduct, df$child_yogurt, df$child_yogurt)
df$dairy <- get_dummy(var_list = dairy_list)
The information about flesh foods, meat, fish, poultry, and organ
meats, is available from the following four questions from the
guideline; Question 7I
, Question 7J
,
Question 7K
, and Question 7M
.
meat_list <- list(df$child_organ, df$child_insects, df$child_beef, df$child_fish)
df$meat <- get_dummy(var_list = meat_list)
Only one variable requires for the Eggs food group, which is
Question 7L
.
df$eggs <- get_dummy(var_list = list(df$child_eggs))
We will use the following questions from the guideline for
calculating vitamin A-rich fruits and vegetables;
Question 7C
, Question 7E
, and
Question 7G
.
vita_fruveg_list <- list(df$child_pumpkin, df$child_leafyveg, df$child_mango)
df$vita_fruveg <- get_dummy(var_list = vita_fruveg_list)
We used the following two variables for other fruits and vegetable
food groups; Question 7F
and Question 7H
.
df$oth_fruveg <- get_dummy(var_list = list(df$child_fruit, df$child_fruit))