knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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).
You can install whozr from github with:
# install.packages("remotes") remotes::install_github("simisc/whozr")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.