find_child_wasting: Find children with acute wasting from an anthropometric...

View source: R/find_undernutrition.R

find_child_wastingR Documentation

Find children with acute wasting from an anthropometric dataset

Description

Find children with acute wasting from an anthropometric dataset

Usage

find_child_wasting(
  df,
  index = c("whz", "muac"),
  zscore = "whz",
  muac = "muac",
  flag = NULL,
  add = TRUE
)

Arguments

df

A data.frame containing anthropometric z-score indices for weight-for-height

index

A character vector of anthropometric measurements to use to determine acute wasting. Default is for both whz and muac.

zscore

A character value for variable name for weight-for-height z-score in df. Default is whz. Ignored if index is set to muac only.

muac

A character value for variable name for mid-upper arm circumference (MUAC) in df. Default is muac. Ignored if index is set to whz only

flag

A character value for variable name of coded flags applied to weight-for-height z-score values in df. Default is NULL indicating that flags have already been applied and flagged values have been censored.

add

Logical. Should recode values for acute undernutrition be added to df? Default is TRUE

Value

if add TRUE, returns df with recode values indicating acute wasting cases.

Examples


find_child_wasting(df = zscorer::anthro1, zscore = "whz", muac = "muac",
                   flag = NULL, add = TRUE)

find_child_wasting(df = zscorer::anthro1, muac = "muac")


nutriverse/nutricheckr documentation built on April 1, 2022, 7:44 p.m.