Skip to contents

Calculate a weighted prevalence estimate of MUAC by adding the proportion of children under 2 years to twice the proportion of children over 2 and then dividing by 3.

Usage

apply_cdc_age_weighting(muac, age, .edema = NULL, status = c("sam", "mam"))

Arguments

muac

A vector of class integer of MUAC values (in mm).

age

A vector of class double of child's age in months.

.edema

A vector of class character of edema. Code should be "y" for presence and "n" for absence of bilateral edema. Default is NULL.

status

A choice of the form of wasting to be defined.

Value

A vector of class numeric of length and size 1.

Details

This function is informed by the output of mw_stattest_ageratio().