mchtoolbox to calculate percentiles and z-scores for a child’s sex and age for BMI, weight, height, and head circumference based on CDC growth charts.
Reference data from nationally representative populations is used in maternal and child health research and public health surveillance to calculate percentiles, z-scores, and related values. This is important for measures that naturally change over the lifespan, such as body mass index and blood pressure. It can be difficult to calculate these variables and incorporate them into a tidy workflow because published code is often not available in the R language (or in any language), or in the same place. The motivation for this project is it create a package that contains functions compatible with the
tidyverse to calculate commonly used measures in maternal child health. We are also working on a shiny app for EDA and so that users can easily load a CSV and calculate these measures in the app.
cdc_growth() takes as input a data.frame with the following columns (units):
mchtoolbox from Github:
# install.packages("devtools") devtools::install_github("ropenscilabs/mchtoolbox")
This is a basic example which shows you how to solve a common problem:
## NHANES example data is included with package create_cdc_growth(nhanes_data)
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
A special thank you to:
Link to original issue from unconf18.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.