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
[ ] Render each necessary CDC dataset as specified above into an .rda object using tibble::tribble()
[ ] Use testthat::expect_snapshot() so we can track changes in the feature
Background Information
From discussion #13:
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 testthatDefinition of Done
tibble::tribble()
testthat::expect_snapshot()
so we can track changes in the feature