knitr::opts_chunk$set(
    collapse = TRUE,
    comment = "#>",
    fig.path = "README-"
)

whozr

check-standard DOI Licence Lifecycle codecov

Convert raw anthropometric measurement (weight, height, length, BMI, MUAC, head circumeference, tricep skinfold and subscapular skinfold) to z-scores, using the WHO growth standards (0-5 years) and/or references (5-19 years).

Also allows the 'reverse' calculation of original anthropometry measures from z-scores (requires further testing).

Installation

You can install whozr from github with:

# install.packages("remotes")
remotes::install_github("simisc/whozr")

Example

library(dplyr) # tibble(), mutate()
library(knitr) # kable()
library(whozr) # zwa(), zla(), zwl()
tibble(
    sex = c("F", "M", "M", "F"),
    age_days = c(120, 310, 370, 460),
    weight_kg = c(5.98, 8.09, 8.40, 8.46),
    length_cm = c(60.2, 70.7, 72.6, 74.9)
) |>
    mutate(
        waz = zwa(weight_kg, age_days, sex),
        laz = zla(length_cm, age_days, sex),
        wlz = zwl(weight_kg, length_cm, sex)
    ) |>
    kable(digits = 3)


simisc/whozr documentation built on March 24, 2023, 5:14 p.m.