If your studies include historic data you may want to consider this-
One catch that I came across when speaking with clinicians here is that due to changes in reporting, around 2012 the calculations used for eGFR went from MDRD methodology to CKD-EPI.
Here’s the SAS code snippet that I use to make the calculations both ways. I implemented the most precise formulae that I could find. I am sorry that I don’t know how to preserve my indentation here.
Best,
Gerry
/* MDRD calculation (Before 2011)/
if Year(CrDate) <= 2011
then
do;
if gender_concept_ID=8507 / Male /
then gfr = 175(crvalue**-1.154)(testage**-0.203) ; * Male ;
else gfr = 175(crvalue**-1.154)(testage**-0.203)(0.742) ; * Female;
if race_concept_ID=8516 then gfr=gfr1.212; / Adjust if African American */
end;
/* CKD-EPI calculations (2012 and beyond) /
else
do;
if (race_concept_ID=8516) / African American /
then
select;
/ Female, low crvalue /
when((gender_concept_ID= 8532) & (crvalue <= 0.7)) gfr=166 ((crvalue/0.7)**-0.329)(0.993**testage);
/ Female, high crvalue*/
when((gender_concept_ID= 8532) & (crvalue > 0.7)) gfr=166 ((crvalue/0.7)**-1.209)(0.993testage);
/* Male, low crvalue */
when((gender_concept_ID= 8507) & (crvalue <= 0.9)) gfr=163 *((crvalue/0.9)-0.411)(0.993**testage);
/ Male, high crvalue*/
when((gender_concept_ID= 8507) & (crvalue > 0.9)) gfr=163 ((crvalue/0.9)**-1.209)(0.993testage);
otherwise Error “GFI Calculation - Black” Race_concept_ID= gender_concept_ID= testage= crvalue= ;
end;
else /* Not African American /
select;
/ Female, low crvalue */
when((gender_concept_ID=8532) & (crvalue <= 0.7)) gfr=144 *((crvalue/0.7)-0.329)(0.993**testage);
/ Female, high crvalue*/
when((gender_concept_ID=8532) & (crvalue > 0.7)) gfr=144 ((crvalue/0.7)**-1.209)(0.993testage);
/* Male, low crvalue */
when((gender_concept_ID=8507) & (crvalue <= 0.9)) gfr=141 *((crvalue/0.9)-0.411)(0.993**testage);
/ Male, high crvalue*/
when((gender_concept_ID=8507) & (crvalue > 0.9)) gfr=141 ((crvalue/0.9)**-1.209)(0.993**testage);
otherwise Error “GFR Calculation - Not Black” Race_concept_ID= gender_concept_ID= testage= crvalue= ;
end;
end;
run;