pharmaverse / admiralpeds

Admiral Package Extension for Pediatric Clinical Trials
https://pharmaverse.github.io/admiralpeds/
Apache License 2.0
13 stars 3 forks source link

General Issue: Recreate CDC growth-chart data using code #15

Closed zdz2101 closed 6 months ago

zdz2101 commented 7 months ago

Background Information

From discussion #13:

If anyone wants to re-create the reference files, the reference data for the CDC charts are at
https://www.cdc.gov/growthcharts/percentile_data_files.htm
You'd only need the data in numbers 6 (wt), ht (7), and 8 (BMI). You only need that data for sex, age, L, M, and S. But having some of the calculated percentiles might be a good check on the calculations.
[L M S are the 3 smoothing parameters to transform the data to approximate a normal distribution - they're the L (Box-Cox transformation for normality), M (median), and S (coefficient of variation)

Recreate the data using tribble() for replicability as data source may change overtime and its easier to track than floating csv's Use snapshots for testthat

Definition of Done