Children height and blood pressure z-scores

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.

Update – Nov 2013
https://github.com/nzcoops/r-code
The site I was hosting the code on closed, scripts are now available on my github.

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.

Advertisements

Child health metrics

In analysis of Child Health data, generally z-scores or percentile groupings are used as children do not growth is not linear.

The CDC (Center for Disease Control and Prevention) have released tables of data for calculating these z-scores and percentiles, and here are some scripts for R to calculate these in your sample.

Update – Nov 2013
https://github.com/nzcoops/r-code
The site I was hosting the code on closed, scripts are now available on my github.

Note: these are reasonably straight forward, please check the code. Age can be a ‘tricky one’, given rounding and cut points etc so you’re encouraged to double check your results.