Skip to contents

Apply the CDC/SMART prevalence weighting approach on MUAC data

Usage

compute_weighted_prevalence(df, .edema = NULL, .summary_by = NULL)

Arguments

df

An already wrangled dataset object of class data.frame to use.

.edema

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

.summary_by

A vector of class character of the geographical areas where the data was collected and for which the analysis should be performed.

Value

A table of class data.frame of dimensions that vary based on .summary_by, containing the results.