calculate_nut_health_indicators: Calculate Nutrition Health Composite Indicators and Indices

View source: R/calculate_nut_health_indicators.R

calculate_nut_health_indicatorsR Documentation

Calculate Nutrition Health Composite Indicators and Indices

Description

Function to create new columns for calculated nutrition and health indicators. This function is intended to be a helper function and to be called from within the format_nut_health_indicators function after column names and values have been standardized. This function will calculate anthropometric indicis, Washington Group Short Set indicators, infant and young child feeding indicators, food security outcome indicators, and a few other MSNA relevant health indicators.

Usage

calculate_nut_health_indicators(
  df,
  monthly_expenditures = NULL,
  period_expenditures = NULL,
  num_period_months = NULL
)

Arguments

df

Inputs a data frame that has already been processed and checked by the format_nut_health_indicators and reformat_nut_health_indicators functions.

monthly_expenditures

Inputs a character vector of column names for columns of various household expenses in the previous 30 days.

period_expenditures

Inputs a character vector of column names for columns of various household expenses in a previous, recall period, specified in the num_period_months paramater.

num_period_months

Inputs a whole integer for the number of months of the period expenditures reported.

Value

Returns a data frame with additional columns for new nutrition and health indicators.

Examples

## Not run: calculate_nut_health_indicators(df)

#' @importFrom rlang .data

SaeedR1987/healthyr documentation built on July 4, 2023, 11:17 p.m.