-
Notifications
You must be signed in to change notification settings - Fork 0
Weight-for-height charts for preterms #2
Description
User request.
JAMES currently lacks weight-for-height charts for preterms. The references have already been calculated, and are available as preterm in the clopus packages, but the charts have yet to be designed and integrated into JAMES.
Actions needed:
-
Define 24 Dutch A4 charts per week (
PJBANww,PMBANww). We need charts per week here because height depends on week. Define square chartsPJBRNandPMBRN. The chart cover ages 0-4 years. We do not have data to create wfh charts for age period 1-21 years. -
Use
chartdesignerto create a chart inspired on design B (0-4 years, A4). The chart for different weeks can be identical. Also, design square charts, borrowing fromNJBAanddefine_preterm_solo.R. Both horizontal and vertical axes need to start at lower values, but their upper values should coincide with graph created for terms. Be aware that some settings are done in deeper functions, likechartdesigner::set_axes_design()andchartdesigner::make.viewports(). In the end, thechartdesigner::growthchart()function should be able to accept chart codePJBANwwand friends. -
Extend the chart generation script and regenerate all preterms charts with the new charts included. Store the result in the
chartboxpackage. -
Extend the script that creates the chart lookup table in the
chartcatalogpackage. -
Update the
chartcatalog::create_chartcode()andchartcatalog::parse_chartcodefunctions. A new problem is thatPJBRNandPMBRNdo not have week codes. If it turns out to be too complex to solve this, an alternative is to create 24 instead of 2 charts, with week codes attached. This is, however, a waste of precious memory, and should only be done as a last resort. -
Extend the user interface with additional choice in the menu for preterms.
-
Test, test, test..
Sorry that it can't be any simpler, but this should do it.