anthro_api_compute_prevalence: Compute prevalence of zscores

anthro_api_compute_prevalenceR Documentation

Compute prevalence of zscores

Description

Compute prevalence of zscores

Usage

anthro_api_compute_prevalence(data, zscores_to_compute, survey_subsets)

Arguments

data

a data frame containing the underlying data

zscores_to_compute

a list of zscore indicators that should be computed. The list needs to have 4 named values:

name

The name or abbreviation of the indicator. This will appear in the column names of the output.

column

The column name without the 'z' of the zscore that shall be used.

with_cutoffs

TRUE iff cutoffs for the indicator shall be computed.

with_auxiliary_zscore_column

TRUE iff z-score should be set to -3.1 if oedema = "y" for prevalence estimates.

auxiliary_zscore_condition

optional function to define a special condition when the z-score should be set to -3.1

survey_subsets

subsets for which the prevalence values should be computed. It is a named list of characters, where the values correspond to columns and the names to labels in the output.

Note

This function is meant to be used by other anthro related packages. It is not advised to use this in you own packages or analysis. If you must use it, prepare for potential breaking changes in the future.


dirkschumacher/anthro documentation built on Sept. 18, 2023, 5:34 a.m.