In clinical trials, subject’s age is a critical demographic variable that needs to be collected. Age may be used in checking the inclusion/exclusion criteria, in sub-group analysis, in prognostic factor analysis, and so on. However, the Age variable is not directly collected on the case report form. Instead, the birth date is collected. Subject’s age will then need to be calculated based on the birth date and the date of screening visit. There are many ways in calculating the age and the results are slightly different. There seems to be no consensus in industry or CDISC indicating which method should be used. There was a paper discussing “How to Create Variables Related to Age”, some of the new functions were not included in the discussion.
Since we use SAS to analyze the clinical trial data, I listed the various ways to calculate the Age using SAS.
/*Macro AGE1 uses SAS INTCK function*/
intck ('year', &from, &to) -
((month(&to) < month(&from)) or
((month(&to) = month(&from)) and (day(&to) < day(&from))));
/*Macro AGE2 uses SAS INTCK function*/
floor ((intck('month',&from,&to) - (day(&to) < day(&from))) / 12)
input bdate date9. idate date9.;
age3=yrdif(bdate,idate, 'Age'); *This method uses SAS YRDIF function;
age365=(idate-bdate)/365; *This method uses 365 as divider;
age36525=(idate-bdate)/365.25; *This method uses 365.25 as divider;
age36525plus1=Floor(((idate-bdate)+1)/365.25); *This method adds 1 and the divide by 365.25;
01JAN12 31DEC12 /*this is one day short of one year*/
01JAN12 31DEC12 /*this is exactly one year*/
31DEC12 01JAN13 /*this is exactly one day, but cross the year*/
01JAN04 01JAN13 /*this is exactly nine years*/
01JUL12 01JAN13 /*this is 184 days*/
format bdate date9. idate date9.;
Based on the outputs, the calculation using YRDIF seems to be a good option. The use of YRDIF function is detailed in the SAS online document. The simple way using 365.25 as divider is actually a pretty good option. There is also an article in SAS blog discussing this. For an adult study, all of these approaches in calculating Age seem to be ok. However, for pediatric studies, different approaches could give quite bit different Age calculations.
On the regulatory side, there seems to be various ways in calculating the Age based on the documents submitted to FDA. In BLA 125145, Age in month was calculated as (1st vaccination date - Date of birth + 1) / (365.25/12). In SBA for EUFLEXXA approval, Age was calculated as: age = (date of informed consent - date of birth) / 365.25. In clinical review document for Actemra, the duration in study (in years) was calculated as:
Duration in study (years) = (date of last assessment – date of first TCZ dose +1) 365.25).