statist7 / LMSgrowth2

MIT License
2 stars 2 forks source link

allow age or birth/measurement date input #25

Closed tamuri closed 5 years ago

tamuri commented 5 years ago

also replaced generation of multiple measurement form to use conditionalPanel, which seems like the proper way to do that

statist7 commented 4 years ago

I’m sorry I’m way behind, trying to run master. It still gives an error with test_that, obviously not finding uk90, how do I fix it?

tamuri commented 4 years ago

Please check you have pulled the latest version of master - it should be working!

statist7 commented 4 years ago

You’re right!

statist7 commented 4 years ago

I've finally got round to finding a suitable file to test the multiple tab. It uses the ukwhopt reference. sample z scores3 csv.txt

Separately we need an option to adjust age for gestational age in preterm babies. The calculation is:

adjusted age = postnatal age + gestational age - 40 weeks

Preterm is gestational age < 37 weeks, while term is 37 to <42 weeks, with 40 weeks the expected term gestational age.

The adjustment is applied up to 2 years postnatal age but not beyond. As an example, a baby born at 27 weeks and measured at 52 postnatal weeks has an adjusted (or post-term) age of 39 weeks.