calculate_mddw: Function to recode 18 food items into 10 food groups specific...

Description Usage Arguments Value Examples

View source: R/04-calculate_mddw.R

Description

Function to recode 18 food items into 10 food groups specific to MDDW.

Usage

1
2
3
4
calculate_mddw(
  df,
  vars = c("mddw1", "mddw2", "mddw3", "mddw4", "mddw5", "mddw6")
)

Arguments

df

Dataframe containing Maternal Dietary Diversity for Women variables.

vars

Variable names of MDDW-relevant information.

Value

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.

Examples

1

validmeasures/wfpKenya documentation built on Feb. 12, 2020, 7:14 p.m.