# Children height and blood pressure z-scores

September 20, 2011
By

[This article was first published on Matt's Stats n stuff » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Following on from some of my earlier posts, this is purely about, hopefully, saving some other people some time in putting this together. Height z-scores are required to then calculate the blood pressure z-scores. The CDC (Center for Disease Control and Prevention) have (growth) charts available for using an LMS Box Cox transformation to calculate age and sex specific z-scores. These are available here. Blood pressure z-scores are calculated by a different method which is published by NIH (National Institute of Health). A pdf (307KB) containing the method is available here.

These scripts have information in the first few rows which explain a bit about how the variables are required to be set up. These scripts could be made a lot more efficient, however I’ve tried to keep them clean so those using them can (very) easily follow what is going on, and efficiency for something straight forward like this shouldn’t be an issue no matter how large the dataset.

NOTE: Age is rounded down, as in the charts are every month on the half month (24.5, 25.5, 26.5 etc) so a 3 year old is 36 months, half way between 35.5 and 36.5. In that instance the values for 35.5 are used in the calculation.

I do aim to one day, hopefully soon, put all these functions together into 1, including BMI (indicator and z-score), height (percentile and z-score), waist circumference (percentile and z-score) and blood pressure (percentile and z-score), with options for rounding and what not.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.