Description Usage Arguments Value Examples
View source: R/04-calculate_mddw.R
Function to recode 18 food items into 10 food groups specific to MDDW.
1 2 3 4 | calculate_mddw(
df,
vars = c("mddw1", "mddw2", "mddw3", "mddw4", "mddw5", "mddw6")
)
|
df |
Dataframe containing Maternal Dietary Diversity for Women variables. |
vars |
Variable names of MDDW-relevant information. |
A dataframe with number of rows equal to number of rows of df
and columns for each of the 10 food groups relevent to MDDW recoded into 1
(consumed) or 0 (not consumed), for total number of food groups consumed,
and whether a minimum of 5 food groups have been consumed.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.